/* ==================== THEME SYSTEM ==================== */
/* Light and Dark theme support for TelcoRecord Web Portal */

/* Default Theme: Dark Mode */
:root,
[data-theme="dark"] {
    /* Backgrounds */
    --primary: #000000;
    --secondary: #0a0a0a;
    --accent: #0f3460;
    --surface: #1a1a1a;
    --surface-light: #2d2d2d;
    --glass: rgba(26, 26, 26, 0.6);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #8a8a8a;
    
    /* Borders */
    --border: #3a3a5c;
    
    /* Status Colors */
    --highlight: #e94560;
    --success: #00d4aa;
    --warning: #ffa726;
    --error: #ef5350;
    
    /* Button Colors */
    --btn-primary-start: #3b82f6;
    --btn-primary-end: #2563eb;
    --btn-success: #10b981;
    --btn-danger: #ef4444;
    --btn-warning: #f59e0b;
    
    /* Waveform Colors */
    --wave-base: #22324f;
    --wave-prog1: #90b7ff;
    --wave-prog2: #68a8ff;
    --wave-bg-start: #0f1a2d;
    --wave-bg-end: #0c1423;
}

/* Light Mode */
[data-theme="light"] {
    /* Backgrounds */
    --primary: #ffffff;
    --secondary: #f8f9fa;
    --accent: #e9ecef;
    --surface: #ffffff;
    --surface-light: #f1f3f5;
    --glass: rgba(255, 255, 255, 0.8);
    
    /* Text Colors */
    --text-primary: #000000;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    
    /* Borders */
    --border: #dee2e6;
    
    /* Status Colors - Same as dark */
    --highlight: #e94560;
    --success: #00d4aa;
    --warning: #ffa726;
    --error: #ef5350;
    
    /* Button Colors - Same as dark */
    --btn-primary-start: #3b82f6;
    --btn-primary-end: #2563eb;
    --btn-success: #10b981;
    --btn-danger: #ef4444;
    --btn-warning: #f59e0b;
    
    /* Waveform Colors - Adjusted for light mode */
    --wave-base: #4a5568;
    --wave-prog1: #90b7ff;
    --wave-prog2: #68a8ff;
    --wave-bg-start: #f8f9fa;
    --wave-bg-end: #f8f9fa;
}

/* Body background gradient adjustment for light mode */
[data-theme="light"] body {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Theme Toggle Button Styles */
.theme-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.theme-btn:hover {
    background: var(--glass);
    color: var(--text-primary);
    transform: translateX(4px);
}

.theme-btn .material-icons {
    font-size: 20px;
}

/* Smooth transition for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

