/* ============================================
   LIGHT THEME
   ICT Analyzer Pro V3.1.0
   Clean, professional light theme
============================================ */

/* Light theme variables */
[data-theme="light"] {
    /* Background Colors */
    --bg-primary: #f8f9fa;
    --bg-primary-rgb: 248, 249, 250;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --bg-hover: #dee2e6;

    /* Text Colors */
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;

    /* Trading Colors - Slightly adjusted for light background */
    --buy-green: #0d9668;
    --buy-hover: #0b8059;
    --sell-red: #dc3545;
    --sell-hover: #c82333;

    /* Accent Colors */
    --accent-yellow: #f59f00;
    --accent-blue: #0d6efd;
    --gold: #f59f00;

    /* Border & Shadow */
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Light theme body */
[data-theme="light"] body {
    color-scheme: light;
}

/* Selection colors */
[data-theme="light"] ::selection {
    background: var(--accent-yellow);
    color: #ffffff;
}

[data-theme="light"] ::-moz-selection {
    background: var(--accent-yellow);
    color: #ffffff;
}

/* Focus states */
[data-theme="light"] *:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Scrollbar styling for light theme */
[data-theme="light"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #868e96;
}

/* Chart background for light theme */
[data-theme="light"] .chart-container {
    background: #ffffff;
}

/* Modal backdrop */
[data-theme="light"] .modal-backdrop {
    background: rgba(0, 0, 0, 0.3);
}

/* Toast notifications */
[data-theme="light"] .toast {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Table rows */
[data-theme="light"] .table-row:hover {
    background: var(--bg-tertiary);
}

/* Input fields */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Buttons */
[data-theme="light"] .btn-icon {
    color: var(--text-secondary);
}

[data-theme="light"] .btn-icon:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="light"] .btn-icon.active {
    background: var(--accent-yellow);
    color: #ffffff;
}

/* Loading overlay */
[data-theme="light"] .loading-overlay {
    background: rgba(248, 249, 250, 0.9);
}

/* Skeleton loading */
[data-theme="light"] .skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, #f1f3f5 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
}

/* Logo in light theme */
[data-theme="light"] .logo {
    color: var(--accent-yellow);
}

/* Panel styling */
[data-theme="light"] .right-panel {
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
}

/* Dropdown menus */
[data-theme="light"] .dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Status indicators */
[data-theme="light"] .status-online {
    color: var(--buy-green);
}

[data-theme="light"] .status-offline {
    color: var(--sell-red);
}

/* Grade badges */
[data-theme="light"] .grade-a-plus,
[data-theme="light"] .grade-a {
    background: rgba(13, 150, 104, 0.15);
    color: var(--buy-green);
}

[data-theme="light"] .grade-b {
    background: rgba(245, 159, 0, 0.15);
    color: var(--accent-yellow);
}

[data-theme="light"] .grade-c,
[data-theme="light"] .grade-d {
    background: rgba(220, 53, 69, 0.15);
    color: var(--sell-red);
}

/* Print styles */
@media print {
    [data-theme="light"] body {
        background: white;
        color: black;
    }
}
