/**
 * Style Extensions
 * 
 * Filename: style-extended.css
 * Extends: assets/css/style.css
 * 
 * Extension files use "-extended" suffix to clearly distinguish them
 * from core plugin files and indicate they extend core functionality.
 * 
 * Add new styles or override existing styles here for development.
 * When ready, manually copy changes to assets/css/style.css.
 * 
 * @package Seadream AppOne Assistant Extensions
 * @since 1.0.0
 */

/* ========================================
   DEVELOPMENT MODE INDICATOR
   ======================================== */

/**
 * Visual indicator that dev mode is active
 * Helps distinguish development from production
 */
/* body::after { */
    /* content: "🔧 DEV MODE"; */
    /* position: fixed; */
    /* bottom: 10px; */
    /* right: 10px; */
    /* background: #ff6b6b; */
    /* color: white; */
    /* padding: 8px 12px; */
    /* border-radius: 4px; */
    /* z-index: 999999; */
    /* font-size: 11px; */
    /* font-weight: bold; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); */
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; */
    /* letter-spacing: 0.5px; */
/* } */

/* ========================================
   EXTENDED TRACKING INDICATORS
   ======================================== */

/**
 * Visual feedback for tracked elements during development
 */
.appone-portal-tracked-extended {
    outline: 2px dashed #0073aa !important;
    outline-offset: 2px;
}

.appone-portal-tracked-extended:hover {
    outline-color: #005177 !important;
    background-color: rgba(0, 115, 170, 0.05);
}

/* ========================================
   EXTENDED FORM STYLES
   ======================================== */

/**
 * Enhanced form element styling for development testing
 */
.seadream-extended-form-field {
    position: relative;
}

.seadream-extended-form-field::before {
    content: "📊";
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.5;
}

/* ========================================
   EXTENDED DEBUG PANEL
   ======================================== */

/**
 * Debug panel for development (toggle visibility with JS)
 */
.seadream-debug-panel {
    position: fixed;
    bottom: 50px;
    right: 10px;
    width: 300px;
    max-height: 400px;
    background: white;
    border: 2px solid #0073aa;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    overflow-y: auto;
    z-index: 999998;
    font-family: monospace;
    font-size: 12px;
    display: none;
}

.seadream-debug-panel.active {
    display: block;
}

.seadream-debug-panel h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #0073aa;
}

.seadream-debug-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.seadream-debug-panel li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

/* ========================================
   EXTENDED BUTTON STYLES
   ======================================== */

/**
 * Special styling for extended/development buttons
 */
.button-extended {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button-extended:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    body::after {
        bottom: 5px;
        right: 5px;
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .seadream-debug-panel {
        width: 90%;
        right: 5%;
        bottom: 45px;
    }
}

/* ========================================
   SMART ADDRESS PARSER - MINIMAL STYLE
   ======================================== */

/**
 * Minimal smart address interface
 */
.smart-address-wrapper-minimal {
	margin: 15px 0;
	position: relative;
	flex-grow: 1;
	width: 100%;
}

.smart-address-input-container {
	position: relative;
}

.smart-address-input {
	width: 100%;
	padding: 10px 35px 10px 10px;
	font-size: 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	transition: border-color 0.3s;
}

.smart-address-input:focus {
	border-color: #0066cc;
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.smart-address-clear-icon {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: #dc3545;
	color: white;
	border: none;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	z-index: 10;
}

.smart-address-clear-icon:hover {
	background: #c82333;
	transform: translateY(-50%) scale(1.1);
}

.smart-address-loading-indicator {
	position: absolute;
	right: 40px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
}

.smart-address-loading-indicator .spinner {
	width: 16px;
	height: 16px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #0066cc;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.smart-address-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid #0066cc;
	border-top: none;
	border-radius: 0 0 4px 4px;
	max-height: 300px;
	overflow-y: auto;
	z-index: 1000;
	display: none;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	margin-top: -1px;
}

.smart-address-suggestion-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.smart-address-suggestion-item {
	padding: 12px;
	cursor: pointer;
	border-bottom: 1px solid #eee;
	transition: background-color 0.2s;
}

.smart-address-suggestion-item:last-child {
	border-bottom: none;
}

.smart-address-suggestion-item:hover {
	background-color: #f0f8ff;
}

.suggestion-address {
	font-weight: bold;
	color: #333;
	margin-bottom: 4px;
	font-size: 13px;
}

.suggestion-details {
	font-size: 11px;
	color: #666;
}

.smart-address-no-results {
	padding: 15px;
	text-align: center;
	color: #666;
	font-style: italic;
	font-size: 13px;
}

/* Locked field styling */
.smart-address-locked {
	background-color: #f0f8ff !important;
	border-color: #b3d9ff !important;
	cursor: pointer !important;
}

.smart-address-locked:hover {
	background-color: #e0f0ff !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.smart-address-input {
		font-size: 16px; /* Prevent zoom on iOS */
		padding: 12px 40px 12px 12px;
	}
	
	.smart-address-loading-indicator {
		right: 45px;
	}
	
	.smart-address-clear-icon {
		width: 28px;
		height: 28px;
		right: 10px;
	}
}