:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-sidebar: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --accent: #14b8a6;
    --accent-hover: #0d9488;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-sidebar: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #2dd4bf;
    --accent-hover: #14b8a6;
    --border: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.login-modal[style*="none"] {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.login-container {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #fecaca;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

[data-theme="dark"] .error-message {
    background: #7f1d1d;
    color: #fca5a5;
    border-color: #991b1b;
}

.btn-login {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(20, 184, 166, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(20, 184, 166, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.3);
}

/* Ensure main app is hidden when login modal is shown */
#mainApp {
    display: none;
}

body.authenticated #mainApp {
    display: block !important;
}

body.authenticated .login-modal {
    display: none !important;
}

body:not(.authenticated) .login-modal {
    display: flex !important;
}

body:not(.authenticated) #mainApp,
.main-app-hidden {
    display: none !important;
}

/* Top Bar */
.top-bar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.top-bar-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-icon svg {
    flex-shrink: 0;
}

/* Developer Mode Toggle */
.developer-toggle {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border);
}

.developer-toggle.active,
.developer-toggle:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.developer-toggle.active:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Developer-only elements - hidden by default */
body:not(.developer-mode) .developer-only,
body:not(.developer-mode) .sidebar-section.developer-only,
body:not(.developer-mode) .btn-icon.developer-only {
    display: none !important;
}

/* When developer mode is ON, show all elements */
body.developer-mode .developer-only {
    display: block !important;
}

body.developer-mode .btn-icon.developer-only {
    display: flex !important;
}

body.developer-mode .sidebar-section.developer-only {
    display: flex !important;
}

/* Main Layout */
.main-container {
    display: flex;
    height: calc(100vh - 60px);
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* View Mode Tabs */
.view-mode-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.tab-button {
    flex: 1;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tab-button:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .tab-button:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
    background: var(--accent);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.tab-button.active:hover {
    background: var(--accent-hover);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-secondary);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.slider-value {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
    color: var(--accent);
    font-size: 0.875rem;
}

.select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select:hover {
    border-color: var(--accent);
}

.select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.input-text {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.input-text:hover {
    border-color: var(--accent);
}

.input-text:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.input-text::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.ap-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.ap-control-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.ap-control-item label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ap-control-item .slider-container {
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ap-control-item .slider-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 2.5rem;
    text-align: left;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-secondary {
    padding: 0.625rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    padding: 0.625rem 1rem;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.manual-only {
    display: none;
}
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Legend */
.legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-scale {
    height: 24px;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Canvas Area */
.canvas-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: auto;
    background: var(--bg-secondary);
}

.canvas-container {
    position: relative;
    display: inline-block;
    box-shadow: var(--shadow-xl);
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    max-width: 100%;
    max-height: 100%;
}

#floorplanCanvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.ap-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

/* WiFi Access Point */
.wifi-ap {
    position: absolute;
    width: 28px;
    height: 28px;
    cursor: move;
    pointer-events: all;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, filter 0.2s ease;
    z-index: 10;
}

.wifi-ap:hover {
    transform: translate(-50%, -50%) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.wifi-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.user-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.wifi-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.125rem 0.25rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    min-width: 1.25rem;
    text-align: center;
    line-height: 1;
}

.ap-label {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 5;
}

/* AP Delete Button (Manual Placement Mode) */
.ap-delete-btn {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 20;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.ap-delete-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.ap-delete-btn svg {
    width: 10px;
    height: 10px;
    stroke-width: 2.5;
}

/* Manual Placement Cursor */
.canvas-container[style*="crosshair"] {
    cursor: crosshair !important;
}

/* QOO Meter */
.qoo-meter {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    margin-bottom: 0.25rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 2px solid rgba(34, 197, 94, 0.6);
    border-radius: 0.5rem;
    padding: 0.5rem 0.625rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 
                0 2px 8px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    min-width: 90px;
    z-index: 20;
    pointer-events: auto;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

/* Different border colors for QoO meters based on application type */
.wifi-ap:nth-child(odd) .qoo-meter {
    border-color: rgba(239, 68, 68, 0.6); /* Red for odd APs */
}

.wifi-ap:nth-child(even) .qoo-meter {
    border-color: rgba(59, 130, 246, 0.6); /* Blue for even APs */
}

/* Alternative: per-item colored borders */
.qoo-item:nth-child(1) {
    border-left: 3px solid #ef4444; /* Red */
    padding-left: 0.5rem;
    margin-left: -0.5rem;
}

.qoo-item:nth-child(2) {
    border-left: 3px solid #3b82f6; /* Blue */
    padding-left: 0.5rem;
    margin-left: -0.5rem;
}

.qoo-item:nth-child(3) {
    border-left: 3px solid #22c55e; /* Green */
    padding-left: 0.5rem;
    margin-left: -0.5rem;
}

.ap-container {
    overflow: visible !important;
}

[data-theme="dark"] .qoo-meter {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wifi-ap:hover .qoo-meter {
    opacity: 1;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 
                0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .wifi-ap:hover .qoo-meter {
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 
                0 4px 12px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.qoo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.625rem;
    flex-wrap: nowrap;
    position: relative;
}

.qoo-item:last-child {
    margin-bottom: 0;
}

.qoo-label {
    font-weight: 700;
    color: var(--text-primary);
    min-width: 0.875rem;
    font-size: 0.5625rem;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.qoo-app-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.625rem;
    line-height: 1;
    white-space: nowrap;
    opacity: 0.85;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.qoo-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    min-width: 1.5rem;
    flex-shrink: 0;
}

.qoo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    flex-shrink: 0;
    color: var(--text-primary);
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.qoo-app-name {
    font-size: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1;
    white-space: nowrap;
    opacity: 0.75;
    text-align: center;
}

.qoo-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.qoo-icon-googlemeet {
    color: #00832D;
}

.qoo-icon-microsoft365 {
    color: #F25022;
}

.qoo-icon-slack {
    color: #4A154B;
}

.qoo-icon-msteams {
    color: #6264A7;
}

.qoo-icon-salesforce {
    color: #00A1E0;
}

.qoo-icon-github {
    color: #181717;
}

[data-theme="dark"] .qoo-icon-github {
    color: #ffffff;
}

.qoo-item:hover .qoo-icon {
    opacity: 1;
    transform: scale(1.1);
}

.qoo-signal-wrapper {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.qoo-signal-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
                inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .qoo-signal-indicator {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4),
                inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.qoo-item:hover .qoo-signal-indicator {
    transform: scale(1.2);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3),
                inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .qoo-item:hover .qoo-signal-indicator {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5),
                inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.qoo-label-small {
    font-size: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-right: 0.3rem; /* extra gap before number */
    text-transform: lowercase;
}

.qoo-value {
    font-weight: 500;
    color: var(--text-primary);
    min-width: 1.75rem;
    text-align: left;
    font-size: 0.5rem;
    line-height: 1;
    letter-spacing: 0.25px;
    opacity: 0.85;
}

.qoo-annotation {
    font-weight: 600;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
    display: none;
    pointer-events: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.5rem);
    transform: translateX(-50%);
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.qoo-item:hover .qoo-annotation {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.qoo-annotation-bad {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

.qoo-annotation-good {
    background: rgba(234, 179, 8, 0.95);
    color: white;
}

.qoo-annotation-excellent {
    background: rgba(34, 197, 94, 0.95);
    color: white;
}

/* Heatmap */
.heatmap-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar,
.ap-controls::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.ap-controls::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.sidebar::-webkit-scrollbar-thumb,
.ap-controls::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.ap-controls::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}
