/* Custom Styles and Theme Variables */
:root {
    --bg-primary: #0b0f19;
    --bg-card: rgba(18, 24, 38, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --accent-secondary: #ec4899;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

/* Themes */
body.theme-cyberpunk {
    --bg-primary: #05050a;
    --bg-card: rgba(15, 15, 25, 0.9);
    --border-color: rgba(0, 240, 255, 0.2);
    --accent: #00f0ff;
    --accent-hover: #00c8d6;
    --accent-glow: rgba(0, 240, 255, 0.5);
    --accent-secondary: #ffe600;
    --text-main: #ffffff;
    --text-muted: #8892b0;
}

body.theme-light {
    --bg-primary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(0, 0, 0, 0.03);
    --border-color: rgba(0, 0, 0, 0.08);
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.3);
    --accent-secondary: #f97316;
    --text-main: #0f172a;
    --text-muted: #64748b;
}

body.theme-sunset {
    --bg-primary: #120716;
    --bg-card: rgba(30, 15, 36, 0.9);
    --border-color: rgba(244, 63, 94, 0.25);
    --accent: #f43f5e;
    --accent-hover: #e11d48;
    --accent-glow: rgba(244, 63, 94, 0.45);
    --accent-secondary: #fb923c;
    --text-main: #fff1f2;
    --text-muted: #fda4af;
}

body.theme-emerald {
    --bg-primary: #061712;
    --bg-card: rgba(10, 32, 26, 0.9);
    --border-color: rgba(16, 185, 129, 0.25);
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-glow: rgba(16, 185, 129, 0.45);
    --accent-secondary: #34d399;
    --text-main: #ecfdf5;
    --text-muted: #a7f3d0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glassmorphism */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 35px -8px var(--accent-glow);
}

.glass-pill {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

/* Glowing buttons */
.btn-glow {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glow:active {
    transform: scale(0.97);
}

.btn-glow:hover {
    box-shadow: 0 6px 25px var(--accent-glow);
    filter: brightness(1.1);
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px var(--accent-glow); }
    50% { box-shadow: 0 0 30px var(--accent-glow); }
}

.animate-glow {
    animation: pulse-glow 2.5s infinite;
}

@keyframes scan-line {
    0% { transform: translateY(0%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

.scan-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan-line 2s infinite linear;
}

/* Custom Checkbox */
.custom-checkbox {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    background: var(--bg-glass);
}

.custom-checkbox:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
