/* Launis v3 Dashboard — Theme (CSS Custom Properties) */

:root[data-theme="dark"] {
    --bg-primary: #2d2a2e;
    --bg-secondary: #221f22;
    --bg-tertiary: #363437;
    --bg-hover: #403e41;
    --bg-active: #5b595c;
    --text-primary: #fcfcfa;
    --text-secondary: #c1c0c0;
    --text-muted: #727072;
    --border: #403e41;
    --border-light: #5b595c;
    --accent: #78dce8;
    --accent-hover: #6ccbd7;
    --accent-subtle: rgba(120, 220, 232, 0.12);
    --success: #a9dc76;
    --success-bg: rgba(169, 220, 118, 0.12);
    --warning: #fc9867;
    --warning-bg: rgba(252, 152, 103, 0.12);
    --error: #ff6188;
    --error-bg: rgba(255, 97, 136, 0.12);
    --info: #ab9df2;
    --info-bg: rgba(171, 157, 242, 0.12);
    --muted-bg: rgba(114, 112, 114, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --code-bg: #19181a;
    --scrollbar-track: #221f22;
    --scrollbar-thumb: #5b595c;
}

:root[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-hover: #f1f3f5;
    --bg-active: #e2e6ea;
    --text-primary: #1a1a2e;
    --text-secondary: #5a6070;
    --text-muted: #8b919e;
    --border: #dee2e6;
    --border-light: #e9ecef;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-subtle: rgba(37, 99, 235, 0.08);
    --success: #059669;
    --success-bg: rgba(5, 150, 105, 0.08);
    --warning: #d97706;
    --warning-bg: rgba(217, 119, 6, 0.08);
    --error: #dc2626;
    --error-bg: rgba(220, 38, 38, 0.08);
    --info: #2563eb;
    --info-bg: rgba(37, 99, 235, 0.08);
    --muted-bg: rgba(107, 114, 128, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --code-bg: #f6f8fa;
    --scrollbar-track: #f0f0f0;
    --scrollbar-thumb: #c1c1c1;
}

/* Base reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.2s ease, color 0.2s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Theme toggle icon visibility */
[data-theme="dark"] .icon-sun { display: inline; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: inline; }

/* Selection */
::selection {
    background: var(--accent);
    color: #fff;
}
