/* ============================================
   DESAKU ONLINE - SISTEM TEMA
   Theme Switcher: Default / Gelap / Alternatif
   ============================================ */

/* === TEMA DEFAULT (Light Blue) === */
:root,
[data-theme="default"] {
    /* Primary Colors */
    --primary: #1e88e5;
    --primary-hover: #1565c0;
    --primary-light: #e3f2fd;
    --primary-dark: #0d47a1;
    
    /* Secondary Colors */
    --secondary: #546e7a;
    --secondary-hover: #37474f;
    --secondary-light: #eceff1;
    
    /* Accent */
    --accent: #00acc1;
    --accent-hover: #00838f;
    
    /* Status Colors */
    --success: #43a047;
    --success-light: #e8f5e9;
    --warning: #fb8c00;
    --warning-light: #fff3e0;
    --danger: #e53935;
    --danger-light: #ffebee;
    --info: #039be5;
    --info-light: #e1f5fe;
    
    /* Background */
    --bg-body: #f5f7fa;
    --bg-sidebar: #1e293b;
    --bg-sidebar-hover: #334155;
    --bg-topbar: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-table-header: #f8fafc;
    --bg-table-row-hover: #f1f5f9;
    --bg-modal: #ffffff;
    --bg-dropdown: #ffffff;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-sidebar: #e2e8f0;
    --text-sidebar-active: #ffffff;
    --text-topbar: #1e293b;
    --text-link: #1e88e5;
    --text-inverse: #ffffff;
    
    /* Border Colors */
    --border-color: #e2e8f0;
    --border-input: #cbd5e1;
    --border-focus: #1e88e5;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px 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-card: 0 1px 3px rgba(0,0,0,0.08);
    
    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    
    /* Topbar */
    --topbar-height: 60px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Transition */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;
}

/* === TEMA GELAP (Dark Mode) === */
[data-theme="dark"] {
    /* Primary Colors */
    --primary: #42a5f5;
    --primary-hover: #64b5f6;
    --primary-light: #1e3a5f;
    --primary-dark: #1565c0;
    
    /* Secondary Colors */
    --secondary: #90a4ae;
    --secondary-hover: #b0bec5;
    --secondary-light: #37474f;
    
    /* Accent */
    --accent: #26c6da;
    --accent-hover: #4dd0e1;
    
    /* Status Colors */
    --success: #66bb6a;
    --success-light: #1b3d2f;
    --warning: #ffa726;
    --warning-light: #3d2e1a;
    --danger: #ef5350;
    --danger-light: #3d1f1f;
    --info: #29b6f6;
    --info-light: #1a3d4d;
    
    /* Background */
    --bg-body: #0f172a;
    --bg-sidebar: #020617;
    --bg-sidebar-hover: #1e293b;
    --bg-topbar: #1e293b;
    --bg-card: #1e293b;
    --bg-input: #0f172a;
    --bg-table-header: #0f172a;
    --bg-table-row-hover: #334155;
    --bg-modal: #1e293b;
    --bg-dropdown: #1e293b;
    
    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-sidebar: #94a3b8;
    --text-sidebar-active: #ffffff;
    --text-topbar: #f1f5f9;
    --text-link: #42a5f5;
    --text-inverse: #0f172a;
    
    /* Border Colors */
    --border-color: #334155;
    --border-input: #475569;
    --border-focus: #42a5f5;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3);
}

/* === TEMA ALTERNATIF (Green Nature) === */
[data-theme="nature"] {
    /* Primary Colors */
    --primary: #2e7d32;
    --primary-hover: #1b5e20;
    --primary-light: #e8f5e9;
    --primary-dark: #1b5e20;
    
    /* Secondary Colors */
    --secondary: #5d4037;
    --secondary-hover: #4e342e;
    --secondary-light: #efebe9;
    
    /* Accent */
    --accent: #00897b;
    --accent-hover: #00695c;
    
    /* Status Colors */
    --success: #388e3c;
    --success-light: #e8f5e9;
    --warning: #f57c00;
    --warning-light: #fff3e0;
    --danger: #d32f2f;
    --danger-light: #ffebee;
    --info: #0288d1;
    --info-light: #e1f5fe;
    
    /* Background */
    --bg-body: #f1f8e9;
    --bg-sidebar: #33691e;
    --bg-sidebar-hover: #558b2f;
    --bg-topbar: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-table-header: #f1f8e9;
    --bg-table-row-hover: #dcedc8;
    --bg-modal: #ffffff;
    --bg-dropdown: #ffffff;
    
    /* Text Colors */
    --text-primary: #1b5e20;
    --text-secondary: #558b2f;
    --text-muted: #7cb342;
    --text-sidebar: #c5e1a5;
    --text-sidebar-active: #ffffff;
    --text-topbar: #1b5e20;
    --text-link: #2e7d32;
    --text-inverse: #ffffff;
    
    /* Border Colors */
    --border-color: #c5e1a5;
    --border-input: #aed581;
    --border-focus: #2e7d32;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(27,94,32,0.08);
    --shadow-md: 0 4px 6px -1px rgba(27,94,32,0.12);
    --shadow-lg: 0 10px 15px -3px rgba(27,94,32,0.15);
    --shadow-card: 0 1px 3px rgba(27,94,32,0.1);
}

/* === TEMA PROFESIONAL (Purple Corporate) === */
[data-theme="corporate"] {
    /* Primary Colors */
    --primary: #5e35b1;
    --primary-hover: #4527a0;
    --primary-light: #ede7f6;
    --primary-dark: #311b92;
    
    /* Secondary Colors */
    --secondary: #455a64;
    --secondary-hover: #37474f;
    --secondary-light: #eceff1;
    
    /* Accent */
    --accent: #7c4dff;
    --accent-hover: #651fff;
    
    /* Status Colors */
    --success: #00c853;
    --success-light: #e8f5e9;
    --warning: #ff9100;
    --warning-light: #fff3e0;
    --danger: #ff1744;
    --danger-light: #ffebee;
    --info: #00b0ff;
    --info-light: #e1f5fe;
    
    /* Background */
    --bg-body: #fafafa;
    --bg-sidebar: #311b92;
    --bg-sidebar-hover: #4527a0;
    --bg-topbar: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-table-header: #f5f5f5;
    --bg-table-row-hover: #ede7f6;
    --bg-modal: #ffffff;
    --bg-dropdown: #ffffff;
    
    /* Text Colors */
    --text-primary: #212121;
    --text-secondary: #616161;
    --text-muted: #9e9e9e;
    --text-sidebar: #b39ddb;
    --text-sidebar-active: #ffffff;
    --text-topbar: #212121;
    --text-link: #5e35b1;
    --text-inverse: #ffffff;
    
    /* Border Colors */
    --border-color: #e0e0e0;
    --border-input: #bdbdbd;
    --border-focus: #5e35b1;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(94,53,177,0.08);
    --shadow-md: 0 4px 6px -1px rgba(94,53,177,0.12);
    --shadow-lg: 0 10px 15px -3px rgba(94,53,177,0.15);
    --shadow-card: 0 1px 3px rgba(94,53,177,0.1);
}
