/* ============================================================
   Employee Leave & Performance Management Portal
   Single CSS File - style.css
   Glassmorphism | Tailwind-inspired | Bootstrap Enhanced
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES & THEME SYSTEM
   ============================================================ */
:root {
  /* Default Theme — Royal Atelier (Senco Gold & Diamonds)
     Deep velvet-case espresso + champagne gold + ivory silk */
  --primary: #c9a24b;
  --primary-light: #e7c878;
  --primary-dark: #8f6e2e;
  --secondary: #6e1f2e;
  --secondary-light: #93374a;
  --accent: #d9b25f;
  --accent-light: #f1da9a;
  --bg-gradient-1: #16120d;
  --bg-gradient-2: #241c12;
  --bg-gradient-3: #2e2415;
  --sidebar-bg: rgba(18, 14, 9, 0.92);
  --sidebar-hover: rgba(201, 162, 75, 0.14);
  --sidebar-active: rgba(201, 162, 75, 0.24);
  --header-bg: rgba(18, 14, 9, 0.88);
  --card-bg: rgba(255, 246, 224, 0.055);
  --card-bg-hover: rgba(255, 246, 224, 0.09);
  --card-border: rgba(217, 178, 95, 0.28);
  --card-shadow: rgba(0, 0, 0, 0.35);
  --glass-bg: rgba(255, 246, 224, 0.05);
  --glass-bg-strong: rgba(255, 246, 224, 0.09);
  --glass-border: rgba(217, 178, 95, 0.32);
  --glass-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
  --glass-blur: blur(18px);
  --text-primary: #f7f1e3;
  --text-secondary: rgba(247, 241, 227, 0.86);
  --text-muted: rgba(247, 241, 227, 0.58);
  --text-dark: #221a0e;
  --input-bg: rgba(255, 246, 224, 0.06);
  --input-border: rgba(217, 178, 95, 0.35);
  --input-focus: rgba(231, 200, 120, 0.85);
  --input-text: #f7f1e3;
  --input-placeholder: rgba(247, 241, 227, 0.4);
  --btn-primary-bg: linear-gradient(120deg, #8f6e2e 0%, #c9a24b 30%, #f1da9a 50%, #c9a24b 70%, #8f6e2e 100%);
  --btn-primary-hover: linear-gradient(120deg, #a5813a 0%, #d9b25f 30%, #f7e5ae 50%, #d9b25f 70%, #a5813a 100%);
  --btn-success: linear-gradient(135deg, #1e7a55, #33b57f);
  --btn-danger: linear-gradient(135deg, #8e2f38, #c9525c);
  --btn-warning: linear-gradient(135deg, #a97c26, #dfb054);
  --btn-info: linear-gradient(135deg, #33517e, #5b8def);
  --table-header-bg: rgba(217, 178, 95, 0.12);
  --table-row-bg: rgba(255, 246, 224, 0.028);
  --table-row-hover: rgba(217, 178, 95, 0.1);
  --table-border: rgba(217, 178, 95, 0.14);
  --scrollbar-track: rgba(255, 246, 224, 0.04);
  --scrollbar-thumb: rgba(201, 162, 75, 0.35);
  --scrollbar-thumb-hover: rgba(217, 178, 95, 0.6);
  --success: #33b57f;
  --danger: #e05252;
  --warning: #e4b04a;
  --info: #5b8def;
  --modal-overlay: rgba(10, 8, 5, 0.72);
  --modal-bg: rgba(26, 20, 12, 0.96);
  --notification-new: rgba(51, 181, 127, 0.14);
  --badge-bg: #b03a3a;
  --sidebar-width: 264px;
  --sidebar-collapsed: 70px;
  --header-height: 68px;
  --dock-height: 60px;
  --border-radius: 14px;
  --border-radius-sm: 9px;
  --border-radius-xs: 5px;
  --transition-speed: 0.3s;
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --font-family: 'Jost', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --gold-hairline: rgba(217, 178, 95, 0.45);
  --gold-sheen: linear-gradient(90deg, transparent, rgba(241, 218, 154, 0.55), transparent);
  --metal-grad: linear-gradient(120deg, #8f6e2e 0%, #c9a24b 30%, #f1da9a 50%, #c9a24b 70%, #8f6e2e 100%);
  --bg-texture: none;
}

/* ============================================================
   2. THEME PRESETS (12 Themes)
   ============================================================ */

/* Theme 1: Ubuntu Aubergine (Default - defined in :root) */

/* Theme 2: Ubuntu Orange */
[data-theme="ubuntu-orange"] {
  --primary: #e95420;
  --primary-light: #f0764a;
  --primary-dark: #c34113;
  --secondary: #772953;
  --secondary-light: #a63d6f;
  --accent: #df4a16;
  --accent-light: #e8714a;
  --bg-gradient-1: #2c0b00;
  --bg-gradient-2: #e95420;
  --bg-gradient-3: #f0764a;
  --sidebar-bg: rgba(44, 11, 0, 0.88);
  --sidebar-hover: rgba(233, 84, 32, 0.5);
  --sidebar-active: rgba(240, 118, 74, 0.6);
  --header-bg: rgba(44, 11, 0, 0.78);
}

/* Theme 3: Deep Ocean */
[data-theme="deep-ocean"] {
  --primary: #0d47a1;
  --primary-light: #1565c0;
  --primary-dark: #0a3470;
  --secondary: #00838f;
  --secondary-light: #00acc1;
  --accent: #26c6da;
  --accent-light: #4dd0e1;
  --bg-gradient-1: #0a1628;
  --bg-gradient-2: #0d47a1;
  --bg-gradient-3: #1565c0;
  --sidebar-bg: rgba(10, 22, 40, 0.9);
  --sidebar-hover: rgba(13, 71, 161, 0.5);
  --sidebar-active: rgba(21, 101, 192, 0.6);
  --header-bg: rgba(10, 22, 40, 0.8);
}

/* Theme 4: Emerald Forest */
[data-theme="emerald-forest"] {
  --primary: #1b5e20;
  --primary-light: #2e7d32;
  --primary-dark: #0d3310;
  --secondary: #00695c;
  --secondary-light: #00897b;
  --accent: #4caf50;
  --accent-light: #66bb6a;
  --bg-gradient-1: #0a1f0c;
  --bg-gradient-2: #1b5e20;
  --bg-gradient-3: #2e7d32;
  --sidebar-bg: rgba(10, 31, 12, 0.9);
  --sidebar-hover: rgba(27, 94, 32, 0.5);
  --sidebar-active: rgba(46, 125, 50, 0.6);
  --header-bg: rgba(10, 31, 12, 0.8);
}

/* Theme 5: Royal Purple */
[data-theme="royal-purple"] {
  --primary: #4a148c;
  --primary-light: #6a1b9a;
  --primary-dark: #2a0a52;
  --secondary: #7b1fa2;
  --secondary-light: #9c27b0;
  --accent: #ce93d8;
  --accent-light: #e1bee7;
  --bg-gradient-1: #1a0533;
  --bg-gradient-2: #4a148c;
  --bg-gradient-3: #6a1b9a;
  --sidebar-bg: rgba(26, 5, 51, 0.9);
  --sidebar-hover: rgba(74, 20, 140, 0.5);
  --sidebar-active: rgba(106, 27, 154, 0.6);
  --header-bg: rgba(26, 5, 51, 0.8);
}

/* Theme 6: Crimson Night */
[data-theme="crimson-night"] {
  --primary: #b71c1c;
  --primary-light: #c62828;
  --primary-dark: #7f0000;
  --secondary: #d32f2f;
  --secondary-light: #e53935;
  --accent: #ff5252;
  --accent-light: #ff8a80;
  --bg-gradient-1: #1a0505;
  --bg-gradient-2: #b71c1c;
  --bg-gradient-3: #c62828;
  --sidebar-bg: rgba(26, 5, 5, 0.9);
  --sidebar-hover: rgba(183, 28, 28, 0.5);
  --sidebar-active: rgba(198, 40, 40, 0.6);
  --header-bg: rgba(26, 5, 5, 0.8);
}

/* Theme 7: Midnight Teal */
[data-theme="midnight-teal"] {
  --primary: #004d40;
  --primary-light: #00695c;
  --primary-dark: #002922;
  --secondary: #00897b;
  --secondary-light: #26a69a;
  --accent: #4db6ac;
  --accent-light: #80cbc4;
  --bg-gradient-1: #001a15;
  --bg-gradient-2: #004d40;
  --bg-gradient-3: #00695c;
  --sidebar-bg: rgba(0, 26, 21, 0.9);
  --sidebar-hover: rgba(0, 77, 64, 0.5);
  --sidebar-active: rgba(0, 105, 92, 0.6);
  --header-bg: rgba(0, 26, 21, 0.8);
}

/* Theme 8: Sunset Gold */
[data-theme="sunset-gold"] {
  --primary: #e65100;
  --primary-light: #ef6c00;
  --primary-dark: #bf360c;
  --secondary: #f57c00;
  --secondary-light: #fb8c00;
  --accent: #ffb300;
  --accent-light: #ffc107;
  --bg-gradient-1: #1a0f00;
  --bg-gradient-2: #e65100;
  --bg-gradient-3: #ef6c00;
  --sidebar-bg: rgba(26, 15, 0, 0.9);
  --sidebar-hover: rgba(230, 81, 0, 0.5);
  --sidebar-active: rgba(239, 108, 0, 0.6);
  --header-bg: rgba(26, 15, 0, 0.8);
}

/* Theme 9: Steel Blue */
[data-theme="steel-blue"] {
  --primary: #263238;
  --primary-light: #37474f;
  --primary-dark: #1a2327;
  --secondary: #455a64;
  --secondary-light: #546e7a;
  --accent: #78909c;
  --accent-light: #90a4ae;
  --bg-gradient-1: #0d1214;
  --bg-gradient-2: #263238;
  --bg-gradient-3: #37474f;
  --sidebar-bg: rgba(13, 18, 20, 0.92);
  --sidebar-hover: rgba(38, 50, 56, 0.5);
  --sidebar-active: rgba(55, 71, 79, 0.6);
  --header-bg: rgba(13, 18, 20, 0.82);
}

/* Theme 10: Cherry Blossom */
[data-theme="cherry-blossom"] {
  --primary: #ad1457;
  --primary-light: #c2185b;
  --primary-dark: #880e4f;
  --secondary: #d81b60;
  --secondary-light: #e91e63;
  --accent: #f48fb1;
  --accent-light: #f8bbd0;
  --bg-gradient-1: #1a0510;
  --bg-gradient-2: #ad1457;
  --bg-gradient-3: #c2185b;
  --sidebar-bg: rgba(26, 5, 16, 0.9);
  --sidebar-hover: rgba(173, 20, 87, 0.5);
  --sidebar-active: rgba(194, 24, 91, 0.6);
  --header-bg: rgba(26, 5, 16, 0.8);
}

/* Theme 11: White / Light */
[data-theme="light"] {
  --primary: #1565c0;
  --primary-light: #1976d2;
  --primary-dark: #0d47a1;
  --secondary: #42a5f5;
  --secondary-light: #64b5f6;
  --accent: #2196f3;
  --accent-light: #90caf9;
  --bg-gradient-1: #e8eaf6;
  --bg-gradient-2: #c5cae9;
  --bg-gradient-3: #e3f2fd;
  --sidebar-bg: rgba(255, 255, 255, 0.85);
  --sidebar-hover: rgba(21, 101, 192, 0.1);
  --sidebar-active: rgba(21, 101, 192, 0.2);
  --header-bg: rgba(255, 255, 255, 0.8);
  --card-bg: rgba(255, 255, 255, 0.6);
  --card-bg-hover: rgba(255, 255, 255, 0.8);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-bg-strong: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.8);
  --text-muted: rgba(26, 26, 46, 0.5);
  --input-bg: rgba(255, 255, 255, 0.7);
  --input-border: rgba(0, 0, 0, 0.15);
  --input-focus: rgba(21, 101, 192, 0.4);
  --input-text: #1a1a2e;
  --input-placeholder: rgba(26, 26, 46, 0.4);
  --table-header-bg: rgba(21, 101, 192, 0.1);
  --table-row-bg: rgba(255, 255, 255, 0.4);
  --table-row-hover: rgba(21, 101, 192, 0.08);
  --table-border: rgba(0, 0, 0, 0.08);
  --scrollbar-track: rgba(0, 0, 0, 0.03);
  --scrollbar-thumb: rgba(0, 0, 0, 0.15);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.3);
  --modal-bg: rgba(255, 255, 255, 0.92);
  --notification-new: rgba(0, 200, 83, 0.1);
}

/* Theme 12: Dark Mode */
[data-theme="dark"] {
  --primary: #bb86fc;
  --primary-light: #d0a4fc;
  --primary-dark: #9a67ea;
  --secondary: #03dac6;
  --secondary-light: #64ffda;
  --accent: #cf6679;
  --accent-light: #f48fb1;
  --bg-gradient-1: #121212;
  --bg-gradient-2: #1e1e2e;
  --bg-gradient-3: #252540;
  --sidebar-bg: rgba(18, 18, 30, 0.95);
  --sidebar-hover: rgba(187, 134, 252, 0.15);
  --sidebar-active: rgba(187, 134, 252, 0.25);
  --header-bg: rgba(18, 18, 30, 0.9);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-bg-hover: rgba(255, 255, 255, 0.1);
  --card-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --modal-bg: rgba(30, 30, 46, 0.95);
}

/* ============================================================
   LIGHT COLOR THEMES (5 New Pastel / Soft Light Themes)
   Objects (buttons, sidebar, cards, inputs) are tinted
   to match each theme's accent color.
   ============================================================ */

/* Light Theme 1: Sakura Pink */
[data-theme="light-sakura"] {
  --primary: #e91e8c;
  --primary-light: #f06292;
  --primary-dark: #c2185b;
  --secondary: #ff4081;
  --secondary-light: #ff80ab;
  --accent: #e91e8c;
  --accent-light: #f48fb1;
  --bg-gradient-1: #fff5f8;
  --bg-gradient-2: #fce4ec;
  --bg-gradient-3: #f8bbd0;
  --sidebar-bg: rgba(255, 245, 248, 0.92);
  --sidebar-hover: rgba(233, 30, 140, 0.1);
  --sidebar-active: rgba(233, 30, 140, 0.18);
  --header-bg: rgba(255, 255, 255, 0.88);
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-bg-hover: rgba(255, 255, 255, 0.85);
  --card-border: rgba(233, 30, 140, 0.12);
  --card-shadow: rgba(233, 30, 140, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(233, 30, 140, 0.15);
  --glass-shadow: 0 8px 32px rgba(233, 30, 140, 0.1);
  --text-primary: #3d0024;
  --text-secondary: rgba(61, 0, 36, 0.82);
  --text-muted: rgba(61, 0, 36, 0.5);
  --input-bg: rgba(255, 255, 255, 0.78);
  --input-border: rgba(233, 30, 140, 0.25);
  --input-focus: rgba(233, 30, 140, 0.35);
  --input-text: #3d0024;
  --input-placeholder: rgba(61, 0, 36, 0.4);
  --btn-primary-bg: linear-gradient(135deg, #e91e8c, #ff4081);
  --btn-primary-hover: linear-gradient(135deg, #ff4081, #e91e8c);
  --btn-success: linear-gradient(135deg, #00b09b, #96c93d);
  --btn-danger: linear-gradient(135deg, #e53935, #ff6f61);
  --btn-warning: linear-gradient(135deg, #f7971e, #ffd200);
  --btn-info: linear-gradient(135deg, #2196f3, #21cbf3);
  --table-header-bg: rgba(233, 30, 140, 0.08);
  --table-row-bg: rgba(255, 255, 255, 0.4);
  --table-row-hover: rgba(233, 30, 140, 0.06);
  --table-border: rgba(233, 30, 140, 0.1);
  --scrollbar-track: rgba(0, 0, 0, 0.03);
  --scrollbar-thumb: rgba(233, 30, 140, 0.25);
  --scrollbar-thumb-hover: rgba(233, 30, 140, 0.45);
  --modal-bg: rgba(255, 255, 255, 0.96);
  --modal-overlay: rgba(61, 0, 36, 0.35);
  --notification-new: rgba(233, 30, 140, 0.08);
}

/* Light Theme 2: Ocean Mint */
[data-theme="light-mint"] {
  --primary: #00897b;
  --primary-light: #26a69a;
  --primary-dark: #00695c;
  --secondary: #00acc1;
  --secondary-light: #26c6da;
  --accent: #00bcd4;
  --accent-light: #80deea;
  --bg-gradient-1: #f0fffc;
  --bg-gradient-2: #e0f7fa;
  --bg-gradient-3: #b2ebf2;
  --sidebar-bg: rgba(240, 255, 252, 0.93);
  --sidebar-hover: rgba(0, 137, 123, 0.1);
  --sidebar-active: rgba(0, 137, 123, 0.18);
  --header-bg: rgba(255, 255, 255, 0.88);
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-bg-hover: rgba(255, 255, 255, 0.85);
  --card-border: rgba(0, 137, 123, 0.12);
  --card-shadow: rgba(0, 137, 123, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 137, 123, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 137, 123, 0.1);
  --text-primary: #00261f;
  --text-secondary: rgba(0, 38, 31, 0.82);
  --text-muted: rgba(0, 38, 31, 0.5);
  --input-bg: rgba(255, 255, 255, 0.78);
  --input-border: rgba(0, 137, 123, 0.25);
  --input-focus: rgba(0, 137, 123, 0.35);
  --input-text: #00261f;
  --input-placeholder: rgba(0, 38, 31, 0.4);
  --btn-primary-bg: linear-gradient(135deg, #00897b, #00bcd4);
  --btn-primary-hover: linear-gradient(135deg, #00bcd4, #00897b);
  --btn-success: linear-gradient(135deg, #00b09b, #96c93d);
  --btn-danger: linear-gradient(135deg, #e53935, #ff6f61);
  --btn-warning: linear-gradient(135deg, #f7971e, #ffd200);
  --btn-info: linear-gradient(135deg, #2196f3, #21cbf3);
  --table-header-bg: rgba(0, 137, 123, 0.08);
  --table-row-bg: rgba(255, 255, 255, 0.4);
  --table-row-hover: rgba(0, 137, 123, 0.06);
  --table-border: rgba(0, 137, 123, 0.1);
  --scrollbar-track: rgba(0, 0, 0, 0.03);
  --scrollbar-thumb: rgba(0, 137, 123, 0.25);
  --scrollbar-thumb-hover: rgba(0, 137, 123, 0.45);
  --modal-bg: rgba(255, 255, 255, 0.96);
  --modal-overlay: rgba(0, 38, 31, 0.35);
  --notification-new: rgba(0, 137, 123, 0.08);
}

/* Light Theme 3: Amber Honey */
[data-theme="light-amber"] {
  --primary: #ef6c00;
  --primary-light: #fb8c00;
  --primary-dark: #e65100;
  --secondary: #f57c00;
  --secondary-light: #ffa726;
  --accent: #ff8f00;
  --accent-light: #ffcc02;
  --bg-gradient-1: #fffdf5;
  --bg-gradient-2: #fff8e1;
  --bg-gradient-3: #ffecb3;
  --sidebar-bg: rgba(255, 253, 245, 0.93);
  --sidebar-hover: rgba(239, 108, 0, 0.1);
  --sidebar-active: rgba(239, 108, 0, 0.18);
  --header-bg: rgba(255, 255, 255, 0.88);
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-bg-hover: rgba(255, 255, 255, 0.85);
  --card-border: rgba(239, 108, 0, 0.12);
  --card-shadow: rgba(239, 108, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(239, 108, 0, 0.15);
  --glass-shadow: 0 8px 32px rgba(239, 108, 0, 0.1);
  --text-primary: #3e1500;
  --text-secondary: rgba(62, 21, 0, 0.82);
  --text-muted: rgba(62, 21, 0, 0.5);
  --input-bg: rgba(255, 255, 255, 0.78);
  --input-border: rgba(239, 108, 0, 0.25);
  --input-focus: rgba(239, 108, 0, 0.35);
  --input-text: #3e1500;
  --input-placeholder: rgba(62, 21, 0, 0.4);
  --btn-primary-bg: linear-gradient(135deg, #ef6c00, #ffb300);
  --btn-primary-hover: linear-gradient(135deg, #ffb300, #ef6c00);
  --btn-success: linear-gradient(135deg, #00b09b, #96c93d);
  --btn-danger: linear-gradient(135deg, #e53935, #ff6f61);
  --btn-warning: linear-gradient(135deg, #f7971e, #ffd200);
  --btn-info: linear-gradient(135deg, #2196f3, #21cbf3);
  --table-header-bg: rgba(239, 108, 0, 0.08);
  --table-row-bg: rgba(255, 255, 255, 0.4);
  --table-row-hover: rgba(239, 108, 0, 0.06);
  --table-border: rgba(239, 108, 0, 0.1);
  --scrollbar-track: rgba(0, 0, 0, 0.03);
  --scrollbar-thumb: rgba(239, 108, 0, 0.25);
  --scrollbar-thumb-hover: rgba(239, 108, 0, 0.45);
  --modal-bg: rgba(255, 255, 255, 0.96);
  --modal-overlay: rgba(62, 21, 0, 0.35);
  --notification-new: rgba(239, 108, 0, 0.08);
}

/* Light Theme 4: Lavender Dream */
[data-theme="light-lavender"] {
  --primary: #7c4dff;
  --primary-light: #9c6fff;
  --primary-dark: #6200ea;
  --secondary: #651fff;
  --secondary-light: #9575cd;
  --accent: #7c4dff;
  --accent-light: #ce93d8;
  --bg-gradient-1: #faf5ff;
  --bg-gradient-2: #ede7f6;
  --bg-gradient-3: #d1c4e9;
  --sidebar-bg: rgba(250, 245, 255, 0.93);
  --sidebar-hover: rgba(124, 77, 255, 0.1);
  --sidebar-active: rgba(124, 77, 255, 0.18);
  --header-bg: rgba(255, 255, 255, 0.88);
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-bg-hover: rgba(255, 255, 255, 0.85);
  --card-border: rgba(124, 77, 255, 0.12);
  --card-shadow: rgba(124, 77, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(124, 77, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(124, 77, 255, 0.1);
  --text-primary: #1a0050;
  --text-secondary: rgba(26, 0, 80, 0.82);
  --text-muted: rgba(26, 0, 80, 0.5);
  --input-bg: rgba(255, 255, 255, 0.78);
  --input-border: rgba(124, 77, 255, 0.25);
  --input-focus: rgba(124, 77, 255, 0.35);
  --input-text: #1a0050;
  --input-placeholder: rgba(26, 0, 80, 0.4);
  --btn-primary-bg: linear-gradient(135deg, #7c4dff, #ab47bc);
  --btn-primary-hover: linear-gradient(135deg, #ab47bc, #7c4dff);
  --btn-success: linear-gradient(135deg, #00b09b, #96c93d);
  --btn-danger: linear-gradient(135deg, #e53935, #ff6f61);
  --btn-warning: linear-gradient(135deg, #f7971e, #ffd200);
  --btn-info: linear-gradient(135deg, #2196f3, #21cbf3);
  --table-header-bg: rgba(124, 77, 255, 0.08);
  --table-row-bg: rgba(255, 255, 255, 0.4);
  --table-row-hover: rgba(124, 77, 255, 0.06);
  --table-border: rgba(124, 77, 255, 0.1);
  --scrollbar-track: rgba(0, 0, 0, 0.03);
  --scrollbar-thumb: rgba(124, 77, 255, 0.25);
  --scrollbar-thumb-hover: rgba(124, 77, 255, 0.45);
  --modal-bg: rgba(255, 255, 255, 0.96);
  --modal-overlay: rgba(26, 0, 80, 0.35);
  --notification-new: rgba(124, 77, 255, 0.08);
}

/* Light Theme 5: Sky Azure */
[data-theme="light-sky"] {
  --primary: #1565c0;
  --primary-light: #1976d2;
  --primary-dark: #0d47a1;
  --secondary: #0288d1;
  --secondary-light: #03a9f4;
  --accent: #0288d1;
  --accent-light: #81d4fa;
  --bg-gradient-1: #f5f9ff;
  --bg-gradient-2: #e3f2fd;
  --bg-gradient-3: #bbdefb;
  --sidebar-bg: rgba(245, 249, 255, 0.93);
  --sidebar-hover: rgba(21, 101, 192, 0.1);
  --sidebar-active: rgba(21, 101, 192, 0.18);
  --header-bg: rgba(255, 255, 255, 0.88);
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-bg-hover: rgba(255, 255, 255, 0.85);
  --card-border: rgba(21, 101, 192, 0.12);
  --card-shadow: rgba(21, 101, 192, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(21, 101, 192, 0.15);
  --glass-shadow: 0 8px 32px rgba(21, 101, 192, 0.1);
  --text-primary: #001a3f;
  --text-secondary: rgba(0, 26, 63, 0.82);
  --text-muted: rgba(0, 26, 63, 0.5);
  --input-bg: rgba(255, 255, 255, 0.78);
  --input-border: rgba(21, 101, 192, 0.25);
  --input-focus: rgba(21, 101, 192, 0.35);
  --input-text: #001a3f;
  --input-placeholder: rgba(0, 26, 63, 0.4);
  --btn-primary-bg: linear-gradient(135deg, #1565c0, #0288d1);
  --btn-primary-hover: linear-gradient(135deg, #0288d1, #1565c0);
  --btn-success: linear-gradient(135deg, #00b09b, #96c93d);
  --btn-danger: linear-gradient(135deg, #e53935, #ff6f61);
  --btn-warning: linear-gradient(135deg, #f7971e, #ffd200);
  --btn-info: linear-gradient(135deg, #2196f3, #21cbf3);
  --table-header-bg: rgba(21, 101, 192, 0.08);
  --table-row-bg: rgba(255, 255, 255, 0.4);
  --table-row-hover: rgba(21, 101, 192, 0.06);
  --table-border: rgba(21, 101, 192, 0.1);
  --scrollbar-track: rgba(0, 0, 0, 0.03);
  --scrollbar-thumb: rgba(21, 101, 192, 0.25);
  --scrollbar-thumb-hover: rgba(21, 101, 192, 0.45);
  --modal-bg: rgba(255, 255, 255, 0.96);
  --modal-overlay: rgba(0, 26, 63, 0.35);
  --notification-new: rgba(21, 101, 192, 0.08);
}

/* ============================================================
   SHARED FIXES FOR ALL LIGHT THEMES
   Object colors (dropdown arrow, select options, section icons)
   are matched to each theme's dark text & primary color.
   ============================================================ */

/* Dark dropdown arrow for light backgrounds */
[data-theme="light-sakura"] select.form-control,
[data-theme="light-mint"] select.form-control,
[data-theme="light-amber"] select.form-control,
[data-theme="light-lavender"] select.form-control,
[data-theme="light-sky"] select.form-control,
[data-theme="light-sakura"] .month-selector,
[data-theme="light-mint"] .month-selector,
[data-theme="light-amber"] .month-selector,
[data-theme="light-lavender"] .month-selector,
[data-theme="light-sky"] .month-selector,
[data-theme="light-sakura"] .year-selector,
[data-theme="light-mint"] .year-selector,
[data-theme="light-amber"] .year-selector,
[data-theme="light-lavender"] .year-selector,
[data-theme="light-sky"] .year-selector {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.45)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Select option background for light themes */
[data-theme="light-sakura"] select option,
[data-theme="light-mint"] select option,
[data-theme="light-amber"] select option,
[data-theme="light-lavender"] select option,
[data-theme="light-sky"] select option {
  background-color: #ffffff;
  color: #1a1a2e;
}

/* Section icon matches primary color (already via --accent, but explicit fallback) */
[data-theme="light-sakura"] .section-title i { color: #e91e8c; }
[data-theme="light-mint"] .section-title i    { color: #00897b; }
[data-theme="light-amber"] .section-title i   { color: #ef6c00; }
[data-theme="light-lavender"] .section-title i{ color: #7c4dff; }
[data-theme="light-sky"] .section-title i     { color: #1565c0; }

/* Page-title icon color */
[data-theme="light-sakura"] .page-title i,
[data-theme="light-mint"] .page-title i,
[data-theme="light-amber"] .page-title i,
[data-theme="light-lavender"] .page-title i,
[data-theme="light-sky"] .page-title i {
  color: var(--primary);
}

/* Sidebar active indicator bar */
[data-theme="light-sakura"] .sidebar-link::before,
[data-theme="light-mint"] .sidebar-link::before,
[data-theme="light-amber"] .sidebar-link::before,
[data-theme="light-lavender"] .sidebar-link::before,
[data-theme="light-sky"] .sidebar-link::before {
  background: var(--primary);
}

/* Active dock item highlight */
[data-theme="light-sakura"] .dock-item:hover,
[data-theme="light-mint"] .dock-item:hover,
[data-theme="light-amber"] .dock-item:hover,
[data-theme="light-lavender"] .dock-item:hover,
[data-theme="light-sky"] .dock-item:hover {
  background: var(--primary);
  color: #fff;
}

/* Notification badge uses theme color */
[data-theme="light-sakura"] .notification-bell .badge { background: #e91e8c; }
[data-theme="light-mint"] .notification-bell .badge    { background: #00897b; }
[data-theme="light-amber"] .notification-bell .badge   { background: #ef6c00; }
[data-theme="light-lavender"] .notification-bell .badge{ background: #7c4dff; }
[data-theme="light-sky"] .notification-bell .badge     { background: #1565c0; }

/* Fix top glass-card/form shimmer line on light themes */
[data-theme="light-sakura"] .glass-card::before,
[data-theme="light-mint"] .glass-card::before,
[data-theme="light-amber"] .glass-card::before,
[data-theme="light-lavender"] .glass-card::before,
[data-theme="light-sky"] .glass-card::before,
[data-theme="light-sakura"] .glass-form::before,
[data-theme="light-mint"] .glass-form::before,
[data-theme="light-amber"] .glass-form::before,
[data-theme="light-lavender"] .glass-form::before,
[data-theme="light-sky"] .glass-form::before {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}

/* Profile button on light themes */
[data-theme="light-sakura"] .profile-btn,
[data-theme="light-mint"] .profile-btn,
[data-theme="light-amber"] .profile-btn,
[data-theme="light-lavender"] .profile-btn,
[data-theme="light-sky"] .profile-btn {
  border-color: rgba(0, 0, 0, 0.1);
}

/* Form focus glow matched to theme */
[data-theme="light-sakura"] .form-control:focus  { box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.12); border-color: #e91e8c; }
[data-theme="light-mint"] .form-control:focus     { box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.12);  border-color: #00897b; }
[data-theme="light-amber"] .form-control:focus    { box-shadow: 0 0 0 3px rgba(239, 108, 0, 0.12);  border-color: #ef6c00; }
[data-theme="light-lavender"] .form-control:focus { box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.12); border-color: #7c4dff; }
[data-theme="light-sky"] .form-control:focus      { box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12); border-color: #1565c0; }

/* Month chip active on light themes */
[data-theme="light-sakura"] .month-chip.selected,
[data-theme="light-mint"] .month-chip.selected,
[data-theme="light-amber"] .month-chip.selected,
[data-theme="light-lavender"] .month-chip.selected,
[data-theme="light-sky"] .month-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Score tile gradient text on light themes */
[data-theme="light-sakura"] .score-tile .score-value,
[data-theme="light-mint"] .score-tile .score-value,
[data-theme="light-amber"] .score-tile .score-value,
[data-theme="light-lavender"] .score-tile .score-value,
[data-theme="light-sky"] .score-tile .score-value {
  background: var(--btn-primary-bg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass tab active on light themes */
[data-theme="light-sakura"] .glass-tab.active,
[data-theme="light-mint"] .glass-tab.active,
[data-theme="light-amber"] .glass-tab.active,
[data-theme="light-lavender"] .glass-tab.active,
[data-theme="light-sky"] .glass-tab.active {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid var(--primary);
}

/* ============================================================
   ANTI-COLOR THEMES (Object colors contrast against background)
   ============================================================ */

/* Anti-Theme 1: Neon Voltage - Electric yellow/cyan on deep black */
[data-theme="anti-neon"] {
  --primary: #00ffcc;
  --primary-light: #66ffdd;
  --primary-dark: #00cc99;
  --secondary: #ff00ff;
  --secondary-light: #ff66ff;
  --accent: #ffff00;
  --accent-light: #ffff66;
  --bg-gradient-1: #000000;
  --bg-gradient-2: #0a0a0a;
  --bg-gradient-3: #1a1a1a;
  --sidebar-bg: rgba(0, 0, 0, 0.95);
  --sidebar-hover: rgba(0, 255, 204, 0.15);
  --sidebar-active: rgba(0, 255, 204, 0.25);
  --header-bg: rgba(0, 0, 0, 0.9);
  --card-bg: rgba(0, 255, 204, 0.05);
  --card-bg-hover: rgba(0, 255, 204, 0.1);
  --card-border: rgba(0, 255, 204, 0.3);
  --glass-bg: rgba(0, 0, 0, 0.7);
  --glass-bg-strong: rgba(0, 0, 0, 0.85);
  --glass-border: rgba(0, 255, 204, 0.4);
  --text-primary: #00ffcc;
  --text-secondary: #ccfffa;
  --text-muted: #66ffdd;
  --input-bg: rgba(0, 0, 0, 0.6);
  --input-border: #00ffcc;
  --input-focus: rgba(0, 255, 204, 0.5);
  --input-text: #00ffcc;
  --input-placeholder: #66ffdd;
  --btn-primary-bg: linear-gradient(135deg, #00ffcc, #ff00ff);
  --btn-primary-hover: linear-gradient(135deg, #ff00ff, #00ffcc);
  --btn-success: linear-gradient(135deg, #00ff66, #00ffcc);
  --btn-danger: linear-gradient(135deg, #ff0066, #ff00ff);
  --btn-warning: linear-gradient(135deg, #ffff00, #ffaa00);
  --btn-info: linear-gradient(135deg, #00ccff, #00ffcc);
  --table-header-bg: rgba(0, 255, 204, 0.1);
  --table-row-bg: rgba(0, 0, 0, 0.3);
  --table-row-hover: rgba(0, 255, 204, 0.08);
  --table-border: rgba(0, 255, 204, 0.2);
  --accent: #ffff00;
}

/* Anti-Theme 2: Hot Sunset - Orange/red/pink on dark grey */
[data-theme="anti-sunset"] {
  --primary: #ff6600;
  --primary-light: #ff9966;
  --primary-dark: #cc4400;
  --secondary: #ff0066;
  --secondary-light: #ff6699;
  --accent: #ffcc00;
  --accent-light: #ffdd66;
  --bg-gradient-1: #1a0a00;
  --bg-gradient-2: #2a1500;
  --bg-gradient-3: #3a2000;
  --sidebar-bg: rgba(20, 8, 0, 0.95);
  --sidebar-hover: rgba(255, 102, 0, 0.15);
  --sidebar-active: rgba(255, 102, 0, 0.25);
  --header-bg: rgba(20, 8, 0, 0.9);
  --card-bg: rgba(255, 102, 0, 0.05);
  --card-bg-hover: rgba(255, 102, 0, 0.1);
  --card-border: rgba(255, 102, 0, 0.3);
  --glass-bg: rgba(0, 0, 0, 0.6);
  --glass-bg-strong: rgba(0, 0, 0, 0.8);
  --glass-border: rgba(255, 102, 0, 0.4);
  --text-primary: #ff9966;
  --text-secondary: #ffccaa;
  --text-muted: #ffaa77;
  --input-bg: rgba(0, 0, 0, 0.5);
  --input-border: #ff6600;
  --input-text: #ffccaa;
  --btn-primary-bg: linear-gradient(135deg, #ff6600, #ff0066);
}

/* Anti-Theme 3: Arctic Freeze - Ice blue/white on dark navy */
[data-theme="anti-arctic"] {
  --primary: #00e5ff;
  --primary-light: #66ffff;
  --primary-dark: #00b3cc;
  --secondary: #ffffff;
  --secondary-light: #e0f7fa;
  --accent: #88ffff;
  --accent-light: #bbffff;
  --bg-gradient-1: #001a2c;
  --bg-gradient-2: #002a3c;
  --bg-gradient-3: #003a4c;
  --sidebar-bg: rgba(0, 26, 44, 0.95);
  --sidebar-hover: rgba(0, 229, 255, 0.12);
  --sidebar-active: rgba(0, 229, 255, 0.2);
  --header-bg: rgba(0, 26, 44, 0.9);
  --card-bg: rgba(0, 229, 255, 0.04);
  --card-bg-hover: rgba(0, 229, 255, 0.08);
  --card-border: rgba(0, 229, 255, 0.25);
  --glass-bg: rgba(0, 0, 0, 0.5);
  --glass-bg-strong: rgba(0, 0, 0, 0.7);
  --glass-border: rgba(0, 229, 255, 0.35);
  --text-primary: #b0ffff;
  --text-secondary: #d0ffff;
  --text-muted: #80ffff;
}

/* Anti-Theme 4: Magenta Dream - Purple/pink/magenta on dark violet */
[data-theme="anti-magenta"] {
  --primary: #ff44dd;
  --primary-light: #ff77ee;
  --primary-dark: #cc22aa;
  --secondary: #aa44ff;
  --secondary-light: #cc77ff;
  --accent: #ff88ff;
  --accent-light: #ffbbff;
  --bg-gradient-1: #1a0033;
  --bg-gradient-2: #2a0044;
  --bg-gradient-3: #3a0055;
  --sidebar-bg: rgba(26, 0, 51, 0.95);
  --sidebar-hover: rgba(255, 68, 221, 0.15);
  --sidebar-active: rgba(255, 68, 221, 0.25);
  --header-bg: rgba(26, 0, 51, 0.9);
  --card-bg: rgba(255, 68, 221, 0.05);
  --card-border: rgba(255, 68, 221, 0.3);
  --text-primary: #ffaaee;
  --text-secondary: #ffccee;
}

/* Anti-Theme 5: Toxic Waste - Acid green/lime on black */
[data-theme="anti-toxic"] {
  --primary: #39ff14;
  --primary-light: #66ff44;
  --primary-dark: #22cc00;
  --secondary: #ccff00;
  --secondary-light: #ddff33;
  --accent: #88ff00;
  --accent-light: #aaff33;
  --bg-gradient-1: #000a00;
  --bg-gradient-2: #001a00;
  --bg-gradient-3: #002a00;
  --sidebar-bg: rgba(0, 10, 0, 0.95);
  --sidebar-hover: rgba(57, 255, 20, 0.12);
  --sidebar-active: rgba(57, 255, 20, 0.2);
  --header-bg: rgba(0, 10, 0, 0.9);
  --card-bg: rgba(57, 255, 20, 0.04);
  --card-border: rgba(57, 255, 20, 0.25);
  --text-primary: #88ff66;
  --text-secondary: #aaff88;
}

/* Anti-Theme 6: Blood Moon - Deep red/crimson on almost black */
[data-theme="anti-blood"] {
  --primary: #ff2222;
  --primary-light: #ff5555;
  --primary-dark: #cc0000;
  --secondary: #ff4444;
  --secondary-light: #ff7777;
  --accent: #ff6666;
  --accent-light: #ff9999;
  --bg-gradient-1: #1a0000;
  --bg-gradient-2: #2a0000;
  --bg-gradient-3: #3a0000;
  --sidebar-bg: rgba(26, 0, 0, 0.95);
  --sidebar-hover: rgba(255, 34, 34, 0.15);
  --sidebar-active: rgba(255, 34, 34, 0.25);
  --header-bg: rgba(26, 0, 0, 0.9);
  --card-bg: rgba(255, 34, 34, 0.05);
  --card-border: rgba(255, 34, 34, 0.3);
  --text-primary: #ff8888;
  --text-secondary: #ffaaaa;
  --btn-primary-bg: linear-gradient(135deg, #ff2222, #ff4444);
}

/* Anti-Theme 7: Galaxy Nebula - Multi-color on deep space */
[data-theme="anti-galaxy"] {
  --primary: #ff00cc;
  --primary-light: #ff44dd;
  --primary-dark: #cc0099;
  --secondary: #00ffcc;
  --secondary-light: #44ffdd;
  --accent: #ffcc00;
  --accent-light: #ffdd44;
  --bg-gradient-1: #0a001a;
  --bg-gradient-2: #1a002a;
  --bg-gradient-3: #2a003a;
  --sidebar-bg: rgba(10, 0, 26, 0.95);
  --sidebar-hover: rgba(255, 0, 204, 0.12);
  --sidebar-active: rgba(0, 255, 204, 0.12);
  --header-bg: rgba(10, 0, 26, 0.9);
  --card-bg: rgba(255, 0, 204, 0.04);
  --card-border: rgba(255, 0, 204, 0.25);
  --glass-border: rgba(0, 255, 204, 0.35);
}

/* Anti-Theme 8: Retro Wave - 80s synthwave colors on dark magenta */
[data-theme="anti-retro"] {
  --primary: #ff00aa;
  --primary-light: #ff44cc;
  --primary-dark: #cc0088;
  --secondary: #00ffff;
  --secondary-light: #44ffff;
  --accent: #ffaa00;
  --accent-light: #ffcc44;
  --bg-gradient-1: #1a0033;
  --bg-gradient-2: #2a0044;
  --bg-gradient-3: #3a0055;
  --sidebar-bg: rgba(26, 0, 51, 0.95);
  --sidebar-hover: rgba(255, 0, 170, 0.15);
  --sidebar-active: rgba(0, 255, 255, 0.15);
  --header-bg: rgba(26, 0, 51, 0.9);
  --card-bg: rgba(255, 0, 170, 0.05);
  --card-border: rgba(255, 0, 170, 0.3);
  --text-primary: #ff88dd;
  --text-secondary: #88ffff;
}

/* Anti-Theme 9: Cobalt Strike - Bright blue on deep indigo */
[data-theme="anti-cobalt"] {
  --primary: #0066ff;
  --primary-light: #3388ff;
  --primary-dark: #0044cc;
  --secondary: #00ccff;
  --secondary-light: #33ddff;
  --accent: #66ffcc;
  --accent-light: #99ffee;
  --bg-gradient-1: #050520;
  --bg-gradient-2: #0a0a30;
  --bg-gradient-3: #0f0f40;
  --sidebar-bg: rgba(5, 5, 32, 0.95);
  --sidebar-hover: rgba(0, 102, 255, 0.12);
  --sidebar-active: rgba(0, 102, 255, 0.2);
  --header-bg: rgba(5, 5, 32, 0.9);
  --card-bg: rgba(0, 102, 255, 0.04);
  --card-border: rgba(0, 102, 255, 0.25);
  --text-primary: #88aaff;
  --text-secondary: #aaccff;
}

/* Anti-Theme 10: Lava Flow - Molten orange/red on volcanic black */
[data-theme="anti-lava"] {
  --primary: #ff4400;
  --primary-light: #ff6633;
  --primary-dark: #cc3300;
  --secondary: #ff8800;
  --secondary-light: #ffaa33;
  --accent: #ff2200;
  --accent-light: #ff5533;
  --bg-gradient-1: #1a0500;
  --bg-gradient-2: #2a0a00;
  --bg-gradient-3: #3a0f00;
  --sidebar-bg: rgba(26, 5, 0, 0.95);
  --sidebar-hover: rgba(255, 68, 0, 0.15);
  --sidebar-active: rgba(255, 68, 0, 0.25);
  --header-bg: rgba(26, 5, 0, 0.9);
  --card-bg: rgba(255, 68, 0, 0.05);
  --card-border: rgba(255, 68, 0, 0.3);
  --text-primary: #ffaa77;
  --text-secondary: #ffcc99;
  --btn-primary-bg: linear-gradient(135deg, #ff4400, #ff8800);
}

/* ============================================================
   3. BACKGROUND TEXTURES (10 Options)
   ============================================================ */
   /* ============================================================
   67. 20 NEW BACKGROUND TEXTURES
   ============================================================ */

/* Design 1: Floating Bubbles */
[data-texture="bubbles"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='4' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='30' cy='25' r='3' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='50' cy='15' r='5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='20' cy='45' r='2' fill='rgba(255,255,255,0.03)'/%3E%3Ccircle cx='45' cy='50' r='4' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
}

/* Design 2: Circuit Board */
[data-texture="circuit"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 20h20v10H10zM50 40h20v10H50zM30 60h20v10H30z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Ccircle cx='30' cy='20' r='3' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='50' cy='40' r='3' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='40' cy='60' r='3' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
}

/* Design 3: Coral Reef */
[data-texture="coral"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 80 Q30 60 40 70 T60 65' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Cpath d='M70 85 Q80 70 90 75' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Ccircle cx='30' cy='65' r='2' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
}

/* Design 4: Cyber Grid */
[data-texture="cyber"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='50' height='50' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='2' y='2' width='46' height='46' fill='none' stroke='rgba(0,255,255,0.08)' stroke-width='1'/%3E%3Ccircle cx='25' cy='25' r='2' fill='rgba(0,255,255,0.08)'/%3E%3C/svg%3E");
}

/* Design 5: Forest Leaves */
[data-texture="leaves"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 10 Q50 5 55 15 Q60 25 50 30 Z' fill='none' stroke='rgba(100,255,100,0.08)' stroke-width='1'/%3E%3Cpath d='M20 50 Q30 45 35 55 Q40 65 30 70 Z' fill='none' stroke='rgba(100,255,100,0.04)'/%3E%3C/svg%3E");
}

/* Design 6: Snowflakes */
[data-texture="snowflakes"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10v20M20 20l20-20M20 30l20 20' stroke='rgba(255,255,255,0.08)' stroke-width='0.8' fill='none'/%3E%3C/svg%3E");
}

/* Design 7: Spiral Galaxy */
[data-texture="spiral"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 60 Q70 40 80 60 T60 80 T40 60 T60 40' fill='none' stroke='rgba(255,100,200,0.08)' stroke-width='0.8'/%3E%3Ccircle cx='60' cy='60' r='3' fill='rgba(255,100,200,0.08)'/%3E%3C/svg%3E");
}

/* Design 8: Tech Hex */
[data-texture="tech-hex"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='40,8 66,20 66,44 40,56 14,44 14,20' fill='none' stroke='rgba(0,200,255,0.08)' stroke-width='1'/%3E%3Ccircle cx='40' cy='32' r='2' fill='rgba(0,200,255,0.08)'/%3E%3C/svg%3E");
}

/* Design 9: Mountain Peaks */
[data-texture="mountains"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='100' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='10,60 30,20 50,60' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Cpolygon points='40,60 60,30 80,60' fill='none' stroke='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
}

/* Design 10: Ocean Waves */
[data-texture="ocean-waves"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='100' height='30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 15 Q25 5 50 15 T100 15' fill='none' stroke='rgba(0,150,255,0.08)' stroke-width='1'/%3E%3Cpath d='M0 20 Q25 10 50 20 T100 20' fill='none' stroke='rgba(0,150,255,0.04)' stroke-width='0.8'/%3E%3C/svg%3E");
}

/* Design 11: Pixel Pattern */
[data-texture="pixel"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='8' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='4' height='4' fill='rgba(255,255,255,0.08)'/%3E%3Crect x='4' y='4' width='4' height='4' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
}

/* Design 12: Rain Drops */
[data-texture="raindrops"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20 L20 25 Q20 30 18 28 L20 25 L22 28 Q20 30 20 25' fill='none' stroke='rgba(100,150,255,0.08)' stroke-width='0.8'/%3E%3Cpath d='M50 50 L50 55 Q50 60 48 58 L50 55 L52 58 Q50 60 50 55' fill='none' stroke='rgba(100,150,255,0.04)'/%3E%3C/svg%3E");
}

/* Design 13: Starry Night */
[data-texture="starry"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='15' r='1.5' fill='rgba(255,200,100,0.1)'/%3E%3Ccircle cx='60' cy='30' r='1' fill='rgba(255,200,100,0.08)'/%3E%3Ccircle cx='80' cy='60' r='1.5' fill='rgba(255,200,100,0.09)'/%3E%3Ccircle cx='40' cy='70' r='1' fill='rgba(255,200,100,0.07)'/%3E%3Ccircle cx='15' cy='80' r='2' fill='rgba(255,200,100,0.08)'/%3E%3C/svg%3E");
}

/* Design 14: Brick Wall */
[data-texture="brick"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='60' height='30' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='28' height='13' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='0.8'/%3E%3Crect x='30' y='0' width='28' height='13' fill='none' stroke='rgba(255,255,255,0.08)'/%3E%3Crect x='15' y='15' width='28' height='13' fill='none' stroke='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
}

/* Design 15: Feathers */
[data-texture="feathers"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='100' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 30 Q35 20 40 30 Q35 40 30 30Z' fill='none' stroke='rgba(200,200,255,0.08)' stroke-width='0.8'/%3E%3Cpath d='M60 40 Q65 30 70 40 Q65 50 60 40Z' fill='none' stroke='rgba(200,200,255,0.08)'/%3E%3C/svg%3E");
}

/* Design 16: Honeycomb */
[data-texture="honeycomb"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='70' height='70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='35,5 65,20 65,50 35,65 5,50 5,20' fill='none' stroke='rgba(255,150,50,0.06)' stroke-width='1'/%3E%3C/svg%3E");
}

/* Design 17: Mosaic Tiles */
[data-texture="mosaic"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='20,2 38,10 38,30 20,38 2,30 2,10' fill='none' stroke='rgba(100,200,100,0.05)' stroke-width='0.8'/%3E%3C/svg%3E");
}

/* Design 18: Nebula Clouds */
[data-texture="nebula"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='30' cy='30' rx='15' ry='10' fill='rgba(200,50,255,0.03)'/%3E%3Cellipse cx='70' cy='50' rx='20' ry='12' fill='rgba(200,200,255,0.08)'/%3E%3Cellipse cx='50' cy='80' rx='12' ry='8' fill='rgba(255,50,200,0.03)'/%3E%3C/svg%3E");
}

/* Design 19: Rope Knots */
[data-texture="rope"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='100' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 Q20 5 30 10 Q40 15 50 10' fill='none' stroke='rgba(200,150,100,0.06)' stroke-width='1'/%3E%3Cpath d='M50 30 Q60 25 70 30 Q80 35 90 30' fill='none' stroke='rgba(200,150,100,0.06)'/%3E%3C/svg%3E");
}

/* Design 20: Tribal Pattern */
[data-texture="tribal"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 20 L20 10 L30 20 L20 30Z' fill='none' stroke='rgba(255,100,50,0.05)' stroke-width='0.8'/%3E%3Cpath d='M40 40 L50 30 L60 40 L50 50Z' fill='none' stroke='rgba(255,100,50,0.05)'/%3E%3C/svg%3E");
}

/* ============================================================
   ANTI-COLOR TEXTURES (5 New — Bold, saturated, highly visible)
   Bright stroke/fill opacity so patterns pop against any theme.
   ============================================================ */

/* Anti-Texture 1: Neon Cyan Grid */
[data-texture="anti-neon-grid"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='50' height='50' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='1' y='1' width='48' height='48' fill='none' stroke='rgba(0,255,204,0.35)' stroke-width='1'/%3E%3Ccircle cx='25' cy='25' r='2' fill='rgba(0,255,204,0.3)'/%3E%3Ccircle cx='1' cy='1' r='1.5' fill='rgba(0,255,204,0.2)'/%3E%3C/svg%3E");
}

/* Anti-Texture 2: Rainbow Confetti */
[data-texture="anti-confetti"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='70' height='70' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='12' r='3.5' fill='rgba(255,0,128,0.22)'/%3E%3Ccircle cx='35' cy='22' r='2.5' fill='rgba(0,220,180,0.22)'/%3E%3Ccircle cx='58' cy='38' r='3.5' fill='rgba(255,200,0,0.22)'/%3E%3Ccircle cx='18' cy='52' r='2.5' fill='rgba(60,100,255,0.22)'/%3E%3Ccircle cx='50' cy='58' r='3' fill='rgba(200,0,255,0.22)'/%3E%3Crect x='52' y='10' width='4' height='4' fill='rgba(0,200,255,0.18)' transform='rotate(20 54 12)'/%3E%3C/svg%3E");
}

/* Anti-Texture 3: Fire Streaks */
[data-texture="anti-fire"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40L40 0' stroke='rgba(255,80,0,0.28)' stroke-width='1.8' fill='none'/%3E%3Cpath d='M8 40L40 8' stroke='rgba(255,160,0,0.2)' stroke-width='1.2' fill='none'/%3E%3Cpath d='M-8 40L32 0' stroke='rgba(255,40,0,0.16)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}

/* Anti-Texture 4: Matrix Rain */
[data-texture="anti-matrix"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='6' r='2' fill='rgba(57,255,20,0.3)'/%3E%3Ccircle cx='12' cy='18' r='1.5' fill='rgba(57,255,20,0.15)'/%3E%3Ccircle cx='0' cy='12' r='1.5' fill='rgba(57,255,20,0.1)'/%3E%3C/svg%3E");
}

/* Anti-Texture 5: Aurora Waves */
[data-texture="anti-aurora"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='200' height='50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 25 Q50 8 100 25 T200 25' fill='none' stroke='rgba(100,0,255,0.22)' stroke-width='2'/%3E%3Cpath d='M0 32 Q50 15 100 32 T200 32' fill='none' stroke='rgba(0,180,255,0.18)' stroke-width='1.5'/%3E%3Cpath d='M0 18 Q50 2 100 18 T200 18' fill='none' stroke='rgba(255,0,200,0.16)' stroke-width='1.5'/%3E%3Cpath d='M0 38 Q50 22 100 38 T200 38' fill='none' stroke='rgba(0,255,150,0.12)' stroke-width='1'/%3E%3C/svg%3E");
}

[data-texture="none"] { --bg-texture: none; }

[data-texture="dots"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
}

[data-texture="grid"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3C/svg%3E");
}

[data-texture="diagonal"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='16' height='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 16L16 0' stroke='rgba(255,255,255,0.08)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
}

[data-texture="waves"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='100' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q25 0 50 10 Q75 20 100 10' stroke='rgba(255,255,255,0.08)' fill='none' stroke-width='1'/%3E%3C/svg%3E");
}

[data-texture="hexagon"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='56' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zM28 100L0 84V50l28-16 28 16v34l-28 16z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3C/svg%3E");
}

[data-texture="circles"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3C/svg%3E");
}

[data-texture="topography"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='600' height='600' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 300c100-50 200 50 300 0s200-50 300 0' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='2'/%3E%3Cpath d='M0 350c100-50 200 50 300 0s200-50 300 0' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='2'/%3E%3C/svg%3E");
}

[data-texture="diamond"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0L24 12L12 24L0 12Z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='0.5'/%3E%3C/svg%3E");
}

[data-texture="zigzag"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='40' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6L10 0L20 6L30 0L40 6L30 12L20 6L10 12Z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='0.5'/%3E%3C/svg%3E");
}

/* ============================================================
   4. RESET & BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3));
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-texture);
  background-repeat: repeat;
  z-index: 0;
  pointer-events: none;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   5. SCROLLBAR STYLES
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
  transition: background 0.3s ease;
}

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

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

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* ============================================================
   6. LOADER / SPINNER
   ============================================================ */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.4s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  position: relative;
  width: 80px;
  height: 80px;
}

.loader-spinner .spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-radius: 50%;
  animation: loaderSpin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-spinner .spinner-ring:nth-child(1) {
  border-top-color: var(--primary);
  animation-delay: -0.45s;
}

.loader-spinner .spinner-ring:nth-child(2) {
  border-top-color: var(--accent);
  animation-delay: -0.3s;
  width: 85%;
  height: 85%;
  top: 7.5%;
  left: 7.5%;
}

.loader-spinner .spinner-ring:nth-child(3) {
  border-top-color: var(--secondary);
  animation-delay: -0.15s;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
}

.loader-spinner .spinner-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes loaderPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.loader-text {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-primary);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: loaderTextFade 1.5s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes loaderTextFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Page Transition Loader */
.page-loader {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9998;
  overflow: hidden;
}

.page-loader .bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary), var(--primary));
  background-size: 400%;
  animation: pageLoaderMove 1.5s ease infinite;
  transform-origin: left;
}

@keyframes pageLoaderMove {
  0% { transform: translateX(-100%); background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { transform: translateX(100%); background-position: 0% 50%; }
}

/* ============================================================
   7. LOGIN PAGE
   ============================================================ */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-wrapper::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  animation: loginGlow 8s ease-in-out infinite alternate;
}

.login-wrapper::after {
  content: '';
  position: fixed;
  bottom: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: loginGlow 8s ease-in-out infinite alternate-reverse;
}

@keyframes loginGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -30px) scale(1.1); }
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
  animation: loginCardEntry 0.8s var(--transition-bounce) forwards;
  transform: translateY(30px);
  opacity: 0;
}

@keyframes loginCardEntry {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.login-card .login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-card .login-logo img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: loginLogoFloat 3s ease-in-out infinite;
}

@keyframes loginLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.login-card h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.login-card .login-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.login-card .form-group {
  margin-bottom: 20px;
  position: relative;
}

.login-card .form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.login-card .form-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.3s ease;
  z-index: 2;
}

.login-card .form-group.has-icon input {
  padding-left: 42px;
}

.login-card .form-group input[type="text"],
.login-card .form-group input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-sm);
  color: var(--input-text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.login-card .form-group input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(233, 84, 32, 0.15);
}

.login-card .form-group input:focus ~ .input-icon {
  color: var(--accent);
}

.login-card .form-group input::placeholder {
  color: var(--input-placeholder);
}

.login-card .password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
  z-index: 2;
}

.login-card .password-toggle:hover {
  color: var(--accent);
}

.login-card .remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.login-card .remember-forgot label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  cursor: pointer;
}

.login-card .remember-forgot a {
  color: var(--accent-light);
  font-weight: 500;
}

.login-card .remember-forgot a:hover {
  text-decoration: underline;
}

.login-card .btn-login {
  width: 100%;
  padding: 14px;
  background: var(--btn-primary-bg);
  border: none;
  border-radius: var(--border-radius-sm);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.login-card .btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.login-card .btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.login-card .btn-login:hover::before {
  left: 100%;
}

.login-card .btn-login:active {
  transform: translateY(0);
}

/* Forgot Password Modal */
.forgot-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.forgot-modal.active {
  opacity: 1;
  visibility: visible;
}

.forgot-modal .modal-content {
  background: var(--modal-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px;
  width: 90%;
  max-width: 400px;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s var(--transition-bounce);
}

.forgot-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

/* ============================================================
   8. HEADER
   ============================================================ */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hamburger-btn:hover {
  background: var(--glass-bg);
}

.hamburger-btn .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger-btn.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.header-logo .logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Notification Bell */
.notification-bell {
  position: relative;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.notification-bell:hover {
  background: var(--glass-bg);
  transform: scale(1.05);
}

.notification-bell .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  background: var(--badge-bg);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.notification-bell .badge.hidden { display: none; }

/* Profile Dropdown */
.profile-dropdown {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.profile-btn:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-1px);
}

.profile-btn img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--glass-border);
}

.profile-btn .profile-name {
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-btn .dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.profile-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--modal-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 8px;
  box-shadow: var(--glass-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s var(--transition-bounce);
  z-index: 1001;
}

.profile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--border-radius-xs);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.profile-menu-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.profile-menu-item:hover {
  background: var(--sidebar-hover);
  transform: translateX(4px);
}

.profile-menu-item.danger { color: #ff5252; }
.profile-menu-item.danger:hover { background: rgba(255, 82, 82, 0.15); }

.profile-menu-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 6px 0;
}

/* ============================================================
   9. NOTIFICATION PANEL (Side Panel)
   ============================================================ */
.notification-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 370px;
  height: 100vh;
  background: var(--sidebar-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-left: 1px solid var(--glass-border);
  z-index: 1100;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.notification-panel.active {
  right: 0;
}

.notification-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.notification-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.notification-panel-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.notification-panel-actions {
  display: flex;
  gap: 8px;
}

.notification-panel-actions button {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--border-radius-xs);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-panel-actions button:hover {
  background: var(--glass-bg-strong);
}

.notification-panel-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.notification-panel-close:hover {
  background: var(--glass-bg);
}

.notification-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.notification-item:hover {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

.notification-item.unread {
  background: var(--notification-new);
  border-color: rgba(0, 200, 83, 0.2);
}

.notification-item .notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.notification-item .notif-icon.leave { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.notification-item .notif-icon.password { background: rgba(33, 150, 243, 0.2); color: #2196f3; }
.notification-item .notif-icon.message { background: rgba(0, 200, 83, 0.2); color: #00c853; }
.notification-item .notif-icon.alert { background: rgba(255, 23, 68, 0.2); color: #ff1744; }

.notification-item .notif-content {
  flex: 1;
  min-width: 0;
}

.notification-item .notif-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.notification-item .notif-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.notification-item .notif-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.notification-item .notif-go {
  padding: 4px 10px;
  background: var(--btn-primary-bg);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  margin-top: 6px;
  display: inline-block;
  transition: all 0.3s ease;
}

.notification-item .notif-go:hover {
  transform: scale(1.05);
}

.notification-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.notification-empty i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* ============================================================
   10. SIDEBAR
   ============================================================ */
.app-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: var(--sidebar-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border);
  z-index: 999;
  overflow-y: auto;
  overflow-x: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
}

.sidebar-nav {
  padding: 12px 0;
}

.sidebar-menu-item {
  position: relative;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  border-radius: 0 3px 3px 0;
}

.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: var(--text-primary);
  text-decoration: none;
}

.sidebar-link:hover::before {
  transform: scaleY(1);
}

.sidebar-link.active {
  background: var(--sidebar-active);
  color: var(--text-primary);
  font-weight: 600;
}

.sidebar-link.active::before {
  transform: scaleY(1);
}

.sidebar-link i {
  width: 22px;
  font-size: 1.1rem;
  text-align: center;
  transition: transform 0.3s var(--transition-bounce);
  flex-shrink: 0;
}

.sidebar-link:hover i {
  transform: scale(1.2);
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.3) rotate(-5deg); }
  60% { transform: scale(1.1) rotate(3deg); }
  100% { transform: scale(1.2) rotate(0); }
}

.sidebar-link .menu-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-link .submenu-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.sidebar-link.expanded .submenu-arrow {
  transform: rotate(90deg);
}

/* Submenu */
.sidebar-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-submenu.expanded {
  max-height: 500px;
}

.sidebar-submenu .sidebar-link {
  padding: 10px 20px 10px 56px;
  font-size: 0.84rem;
}

.sidebar-submenu .sidebar-link::before {
  left: 36px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%) scale(0);
}

.sidebar-submenu .sidebar-link:hover::before,
.sidebar-submenu .sidebar-link.active::before {
  transform: translateY(-50%) scale(1);
}

.sidebar-section-title {
  padding: 16px 20px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.sidebar-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 8px 16px;
}

/* ============================================================
   11. MAIN CONTENT AREA
   ============================================================ */
.app-main {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  padding: 24px;
  min-height: calc(100vh - var(--header-height));
  position: relative;
  z-index: 1;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: calc(var(--dock-height) + 40px);
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.page-breadcrumb a {
  color: var(--text-muted);
}

.page-breadcrumb a:hover {
  color: var(--accent);
}

.page-breadcrumb .separator {
  font-size: 0.6rem;
}

/* ============================================================
   12. GLASSMORPHISM CARDS & SECTIONS
   ============================================================ */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.glass-card:hover {
  background: var(--card-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card-static {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.glass-card-static::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: var(--accent);
}

/* ============================================================
   13. SHORTCUT TILES (Home Page)
   ============================================================ */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}

.shortcut-tile {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--transition-bounce);
  text-decoration: none;
  color: var(--text-primary);
}

.shortcut-tile:hover {
  transform: translateY(-6px) scale(1.03);
  background: var(--glass-bg-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
}

.shortcut-tile i {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
  transition: transform 0.3s var(--transition-bounce);
}

.shortcut-tile:hover i {
  transform: scale(1.15) rotate(-5deg);
}

.shortcut-tile span {
  font-size: 0.78rem;
  font-weight: 600;
  display: block;
}

/* ============================================================
   14. COLORFUL INFO TILES
   ============================================================ */
.info-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.info-tile {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.info-tile::after {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 5rem;
  opacity: 0.06;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  transition: transform 0.5s ease;
}

.info-tile:hover::after {
  transform: scale(1.1) rotate(10deg);
}

.info-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.info-tile.gold::after { content: '\f091'; color: #ffd700; }
.info-tile.diamond::after { content: '\f3a5'; color: #b9f2ff; }
.info-tile.scheme::after { content: '\f0d6'; color: #4caf50; }
.info-tile.attendance::after { content: '\f017'; color: #2196f3; }
.info-tile.leave::after { content: '\f274'; color: #ff9800; }
.info-tile.target::after { content: '\f140'; color: #9c27b0; }

.info-tile .tile-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.info-tile.gold .tile-gradient { background: linear-gradient(90deg, #ffd700, #ffaa00); }
.info-tile.diamond .tile-gradient { background: linear-gradient(90deg, #00bcd4, #b9f2ff); }
.info-tile.scheme .tile-gradient { background: linear-gradient(90deg, #4caf50, #81c784); }
.info-tile.attendance .tile-gradient { background: linear-gradient(90deg, #2196f3, #64b5f6); }
.info-tile.leave .tile-gradient { background: linear-gradient(90deg, #ff9800, #ffb74d); }
.info-tile.target .tile-gradient { background: linear-gradient(90deg, #9c27b0, #ce93d8); }

.info-tile .tile-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.info-tile .tile-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.info-tile .tile-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.info-tile.gold .tile-icon { background: rgba(255, 215, 0, 0.2); color: #ffd700; }
.info-tile.diamond .tile-icon { background: rgba(0, 188, 212, 0.2); color: #00bcd4; }
.info-tile.scheme .tile-icon { background: rgba(76, 175, 80, 0.2); color: #4caf50; }
.info-tile.attendance .tile-icon { background: rgba(33, 150, 243, 0.2); color: #2196f3; }
.info-tile.leave .tile-icon { background: rgba(255, 152, 0, 0.2); color: #ff9800; }
.info-tile.target .tile-icon { background: rgba(156, 39, 176, 0.2); color: #9c27b0; }

/* ============================================================
   15. PROGRESS BAR
   ============================================================ */
.progress-container {
  margin-top: 12px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-bar-fill.gold { background: linear-gradient(90deg, #ffd700, #ffaa00); }
.progress-bar-fill.diamond { background: linear-gradient(90deg, #00bcd4, #b9f2ff); }
.progress-bar-fill.green { background: linear-gradient(90deg, #00c853, #69f0ae); }
.progress-bar-fill.blue { background: linear-gradient(90deg, #2196f3, #64b5f6); }
.progress-bar-fill.red { background: linear-gradient(90deg, #f44336, #ef5350); }
.progress-bar-fill.purple { background: linear-gradient(90deg, #9c27b0, #ce93d8); }

/* ============================================================
   16. 3D CAROUSEL (Center-Focused)
   ============================================================ */
.carousel-3d-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
}

.carousel-3d-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  position: relative;
  min-height: 320px;
}

.carousel-3d-track {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-3d-item {
  position: absolute;
  width: 280px;
  min-height: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  backface-visibility: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-3d-item.center {
  transform: translateX(0) scale(1) rotateY(0deg);
  z-index: 5;
  opacity: 1;
}

.carousel-3d-item.left-1 {
  transform: translateX(-200px) scale(0.85) rotateY(25deg);
  z-index: 4;
  opacity: 0.7;
}

.carousel-3d-item.left-2 {
  transform: translateX(-350px) scale(0.7) rotateY(35deg);
  z-index: 3;
  opacity: 0.4;
}

.carousel-3d-item.right-1 {
  transform: translateX(200px) scale(0.85) rotateY(-25deg);
  z-index: 4;
  opacity: 0.7;
}

.carousel-3d-item.right-2 {
  transform: translateX(350px) scale(0.7) rotateY(-35deg);
  z-index: 3;
  opacity: 0.4;
}

.carousel-3d-item.hidden-item {
  transform: translateX(0) scale(0.5);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.carousel-3d-item .card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.carousel-3d-item .card-body {
  padding: 16px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px);
}

.carousel-3d-item .card-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.carousel-3d-item .card-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Carousel Navigation */
.carousel-3d-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.carousel-3d-nav:hover {
  background: var(--glass-bg);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-3d-nav.prev { left: 10px; }
.carousel-3d-nav.next { right: 10px; }

/* Carousel Dots */
.carousel-3d-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-3d-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-3d-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

.carousel-3d-dot:hover {
  background: var(--accent-light);
}

/* Flip Animation */
.carousel-3d-item.flipping {
  animation: cardFlip 0.6s ease;
}

@keyframes cardFlip {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

/* Popup Card */
.carousel-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.carousel-popup.active {
  opacity: 1;
  visibility: visible;
}

.carousel-popup .popup-card {
  width: 90%;
  max-width: 450px;
  background: var(--modal-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transform: scale(0.7) rotateY(180deg);
  transition: transform 0.5s var(--transition-bounce);
}

.carousel-popup.active .popup-card {
  transform: scale(1) rotateY(0deg);
}

.carousel-popup .popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-popup .popup-close:hover {
  background: rgba(255, 23, 68, 0.3);
  transform: rotate(90deg);
}

/* ============================================================
   17. IMAGE CAROUSEL (Stylish 3D Enhanced)
   ============================================================ */
.image-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius);
  overflow: visible; /* Allows the 3D controls to pop out */
  perspective: 1500px; /* Establishes the 3D space */
  box-shadow: var(--glass-shadow);
}

.image-carousel .carousel-inner {
  position: relative;
  width: 100%;
  height: 400px; /* Fixed height is required for absolute children */
  border-radius: var(--border-radius);
  overflow: hidden;
  transform-style: preserve-3d;
  background: rgba(0, 0, 0, 0.3); /* Adds a deep background behind the flip */
}

.image-carousel .carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  /* 3D Starting position: Scaled down, pushed back, and rotated */
  transform: rotateY(-50deg) translateZ(-300px) scale(0.7);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1;
}

.image-carousel .carousel-slide.active {
  opacity: 1;
  visibility: visible;
  /* 3D Active position: Brought forward and flat */
  transform: rotateY(0deg) translateZ(0) scale(1);
  z-index: 2;
}

.image-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); /* Deep shadow on the image itself */
}

/* 3D Floating Controls */
.image-carousel .carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateZ(50px); /* Lifts the button off the image */
  width: 44px;
  height: 44px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1rem;
  z-index: 10;
  transition: all 0.4s var(--transition-bounce);
}

.image-carousel .carousel-control:hover {
  background: var(--glass-bg);
  transform: translateY(-50%) translateZ(80px) scale(1.15); /* Pops out more on hover */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.image-carousel .carousel-control.prev { left: 16px; }
.image-carousel .carousel-control.next { right: 16px; }

/* 3D Floating Dots */
.image-carousel .carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateZ(50px); /* Lifts dots off the image */
  display: flex;
  gap: 8px;
  z-index: 10;
}

.image-carousel .carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.4s var(--transition-bounce);
  transform-style: preserve-3d;
}

.image-carousel .carousel-dot.active {
  background: #fff;
  transform: translateZ(20px) scale(1.4); /* Active dot pops out */
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.5);
}

/* ============================================================
   NOTICE SLIDER (Flat Design for Text)
   ============================================================ */
.notice-slider {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.notice-slider .carousel-inner {
  position: relative;
  width: 100%;
  height: 220px;
}

.notice-slider .carousel-slide {
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all 0.5s ease;
  z-index: 1;
}

.notice-slider .carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.notice-slider .notice-carousel-item {
  height: 100%;
  padding: 30px 60px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease;
}

.notice-slider .notice-carousel-item:hover {
  transform: scale(1.02);
}

.notice-slider .carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  display: flex; 
  align-items: center; 
  justify-content: center;
  cursor: pointer; 
  z-index: 10; 
  transition: all 0.3s ease;
}

.notice-slider .carousel-control:hover {
  background: rgba(255, 255, 255, 0.4);
}

.notice-slider .carousel-control.prev { left: 16px; }
.notice-slider .carousel-control.next { right: 16px; }

.notice-slider .carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; 
  gap: 8px; 
  z-index: 10;
}

.notice-slider .carousel-dot {
  width: 10px; 
  height: 10px; 
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4); 
  cursor: pointer;
  transition: all 0.3s ease;
}

.notice-slider .carousel-dot.active {
  background: #fff; 
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* ============================================================
   19. LEAVE CARDS
   ============================================================ */
.leave-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  min-height: 300px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.leave-card.approved { background: linear-gradient(135deg, #1b5e20, #4caf50); }
.leave-card.rejected { background: linear-gradient(135deg, #b71c1c, #ef5350); }
.leave-card.pending { background: linear-gradient(135deg, #e65100, #ffc107); }

.leave-card .card-image-section {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.leave-card .card-image-section img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.leave-card .card-details {
  padding: 16px;
  color: #fff;
}

.leave-card .card-details h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.leave-card .card-details .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 0.8rem;
}

.leave-card .status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.leave-card.approved .status-badge { background: rgba(255, 255, 255, 0.25); }
.leave-card.rejected .status-badge { background: rgba(255, 255, 255, 0.25); }
.leave-card.pending .status-badge { background: rgba(255, 255, 255, 0.25); }

/* ============================================================
   20. RANKING CARDS
   ============================================================ */
.ranking-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  position: relative;
}

.ranking-card .rank-position {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  z-index: 2;
}

.ranking-card .rank-position.top-1 { background: linear-gradient(135deg, #ffd700, #ff8f00); }
.ranking-card .rank-position.top-2 { background: linear-gradient(135deg, #c0c0c0, #9e9e9e); }
.ranking-card .rank-position.top-3 { background: linear-gradient(135deg, #cd7f32, #8d6e63); }

.ranking-card .card-photo {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ranking-card .card-photo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.ranking-card .card-info {
  padding: 16px;
  color: #fff;
  text-align: center;
}

.ranking-card .card-info .emp-name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.ranking-card .card-info .rank-detail {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 4px;
}

/* ============================================================
   21. FORMS (Glassmorphism)
   ============================================================ */
.glass-form {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.glass-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-xs);
  color: var(--input-text);
  font-size: 0.9rem;
  font-family: var(--font-family);
  transition: all 0.3s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(233, 84, 32, 0.12);
}

.form-control::placeholder {
  color: var(--input-placeholder);
}

.form-control:disabled,
.form-control[readonly] {
  opacity: 0.6;
  cursor: not-allowed;
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='rgba(255,255,255,0.5)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

[data-theme="light"] select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='rgba(0,0,0,0.4)'/%3E%3C/svg%3E");
}

/* Select2 Override */
.select2-container--default .select2-selection--single {
  background: var(--input-bg) !important;
  border: 1px solid var(--input-border) !important;
  border-radius: var(--border-radius-xs) !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--input-text) !important;
  padding-left: 14px !important;
  font-size: 0.9rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
}

.select2-dropdown {
  background: var(--modal-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--border-radius-xs) !important;
  box-shadow: var(--glass-shadow) !important;
}

.select2-container--default .select2-results__option {
  color: var(--text-primary) !important;
  padding: 8px 14px !important;
  font-size: 0.9rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--sidebar-hover) !important;
  color: var(--text-primary) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background: var(--input-bg) !important;
  border: 1px solid var(--input-border) !important;
  color: var(--input-text) !important;
  border-radius: var(--border-radius-xs) !important;
  padding: 8px !important;
}

/* Checkbox & Radio Custom */
.custom-checkbox,
.custom-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
}

.custom-checkbox input,
.custom-radio input {
  display: none;
}

.custom-checkbox .checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--input-border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

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

.custom-checkbox input:checked + .checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  color: #fff;
}

.custom-radio .radiomark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--input-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.custom-radio input:checked + .radiomark {
  border-color: var(--accent);
}

.custom-radio input:checked + .radiomark::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* Form Inline */
.form-inline {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.form-inline .form-group {
  margin-bottom: 0;
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
}

/* ============================================================
   22. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius-xs);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: #fff;
}

.btn-success {
  background: var(--btn-success);
  color: #fff;
}

.btn-danger {
  background: var(--btn-danger);
  color: #fff;
}

.btn-warning {
  background: var(--btn-warning);
  color: #333;
}

.btn-info {
  background: var(--btn-info);
  color: #fff;
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: var(--glass-bg-strong);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--glass-bg);
}

/* Icon Only Buttons */
.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--border-radius-xs);
  font-size: 0.9rem;
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}

.btn-icon.btn-lg {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.95rem;
}

/* Button Group */
.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* In/Out Buttons */
.btn-in {
  background: linear-gradient(135deg, #00c853, #69f0ae);
  color: #fff;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn-in:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.btn-out {
  background: linear-gradient(135deg, #ff1744, #ff8a80);
  color: #fff;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn-out:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* Delete All Button */
.btn-delete-all {
  background: var(--btn-danger);
  color: #fff;
  padding: 8px 16px;
}

/* ============================================================
   23. TABLES (Modern Glass Design)
   ============================================================ */
.table-container {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.table-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  z-index: 1;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--table-border);
  flex-wrap: wrap;
  gap: 10px;
}

.table-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-search {
  position: relative;
}

.table-search input {
  padding: 8px 14px 8px 36px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-xs);
  color: var(--input-text);
  font-size: 0.84rem;
  outline: none;
  transition: all 0.3s ease;
  width: 220px;
}

.table-search input:focus {
  border-color: var(--accent);
  width: 280px;
}

.table-search input::placeholder {
  color: var(--input-placeholder);
}

.table-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.table-scroll {
  max-height: 500px;
  overflow: auto;
}

.glass-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}

.glass-table thead {
  position: sticky;
  top: 0;
  z-index: 5;
}

.glass-table thead th {
  background: var(--table-header-bg);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--table-border);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  user-select: none;
}

.glass-table thead th:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.glass-table thead th .th-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.glass-table thead th .filter-icon {
  font-size: 0.65rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.glass-table thead th:hover .filter-icon {
  opacity: 1;
}

.glass-table thead th.filtered {
  color: var(--accent);
}

.glass-table thead th.filtered .filter-icon {
  opacity: 1;
  color: var(--accent);
}

.glass-table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--table-border);
}

.glass-table tbody tr:hover {
  background: var(--table-row-hover);
}

.glass-table tbody tr:nth-child(even) {
  background: var(--table-row-bg);
}

.glass-table tbody tr:nth-child(even):hover {
  background: var(--table-row-hover);
}

.glass-table tbody td {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-primary);
  vertical-align: middle;
  white-space: nowrap;
}

.glass-table tbody td.wrap {
  white-space: normal;
  max-width: 250px;
}

/* Row Colors */
.glass-table tbody tr.row-green {
  background: rgba(0, 200, 83, 0.1) !important;
}

.glass-table tbody tr.row-green:hover {
  background: rgba(0, 200, 83, 0.18) !important;
}

.glass-table tbody tr.row-red {
  background: rgba(255, 23, 68, 0.1) !important;
}

.glass-table tbody tr.row-yellow {
  background: rgba(255, 193, 7, 0.1) !important;
}

/* Profile Photo in Table */
.table-profile-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
}

/* Table Total Bar (Fixed) */
.table-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px 20px;
  background: var(--table-header-bg);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--table-border);
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  bottom: 0;
  z-index: 4;
}

.table-total-item {
  text-align: center;
}

.table-total-item .total-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.table-total-item .total-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Table Action Buttons */
.table-actions {
  display: flex;
  gap: 6px;
}

/* ============================================================
   24. FILTER MODAL
   ============================================================ */
.filter-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.filter-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.filter-modal {
  background: var(--modal-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0;
  width: 90%;
  max-width: 420px;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s var(--transition-bounce);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.filter-modal-overlay.active .filter-modal {
  transform: translateY(0) scale(1);
}

.filter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--glass-border);
}

.filter-modal-header h4 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 4px;
  border-radius: 6px;
}

.filter-modal-close:hover {
  color: var(--danger);
  background: var(--glass-bg);
}

.filter-modal-body {
  padding: 20px 24px;
}

.filter-section {
  margin-bottom: 18px;
}

.filter-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Sort Options */
.sort-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-xs);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.sort-option:hover,
.sort-option.active {
  background: var(--sidebar-active);
  border-color: var(--accent);
  color: var(--text-primary);
}

.sort-option i {
  font-size: 0.85rem;
}

/* Filter Type */
.filter-type-select {
  width: 100%;
  margin-bottom: 12px;
}

/* Filter Value */
.filter-values {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-values .form-control {
  flex: 1;
  min-width: 120px;
}

.filter-modal-footer {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--glass-border);
  justify-content: flex-end;
}

/* ============================================================
   25. IMPORT MODAL
   ============================================================ */
.import-modal {
  background: var(--modal-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.import-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--glass-border);
}

.import-modal-body {
  padding: 24px;
}

.import-instructions {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.import-instructions h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.import-instructions ul {
  list-style: none;
  padding: 0;
}

.import-instructions ul li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.import-instructions ul li i {
  color: var(--accent);
  font-size: 0.7rem;
}

/* Drag & Drop Zone */
.drop-zone {
  border: 2px dashed var(--glass-border);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(233, 84, 32, 0.05);
}

.drop-zone i {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.drop-zone p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.drop-zone .browse-link {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.drop-zone .file-name {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 600;
}

/* ---- Import result report (post-import summary) ---- */
.import-result {
  text-align: center;
}
.import-result-summary {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 14px;
}
.import-stat {
  flex: 1;
  max-width: 160px;
  padding: 12px 8px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.import-stat .num {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}
.import-stat.ok {
  background: rgba(0, 200, 83, 0.12);
  color: #00c853;
}
.import-stat.skip {
  background: rgba(255, 152, 0, 0.12);
  color: #ff9800;
}
.import-result-table-wrap {
  max-height: 280px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin-bottom: 12px;
  text-align: left;
}
.import-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.import-result-table thead th {
  position: sticky;
  top: 0;
  background: var(--glass-bg-strong, rgba(255, 255, 255, 0.15));
  backdrop-filter: var(--glass-blur);
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
.import-result-table tbody td {
  padding: 7px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  word-break: break-word;
}
.import-result-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.04);
}
.import-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.import-pill-ok {
  background: rgba(0, 200, 83, 0.18);
  color: #00c853;
}
.import-pill-skip {
  background: rgba(255, 152, 0, 0.18);
  color: #ff9800;
}
.swal2-deny-undo {
  background: linear-gradient(135deg, #ff9800, #f57c00) !important;
}
.import-result-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* ============================================================
   26. IMAGE CROPPER
   ============================================================ */
.cropper-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  backdrop-filter: blur(6px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cropper-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cropper-container {
  background: var(--modal-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  width: 90%;
  max-width: 600px;
}

.cropper-preview {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  background: #000;
  margin-bottom: 16px;
}

.cropper-preview img {
  width: 100%;
  display: block;
}

.cropper-preview .crop-area {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  cursor: move;
}

.cropper-preview .crop-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 2px;
}

.cropper-preview .crop-handle.nw { top: -6px; left: -6px; cursor: nw-resize; }
.cropper-preview .crop-handle.ne { top: -6px; right: -6px; cursor: ne-resize; }
.cropper-preview .crop-handle.sw { bottom: -6px; left: -6px; cursor: sw-resize; }
.cropper-preview .crop-handle.se { bottom: -6px; right: -6px; cursor: se-resize; }

.cropper-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cropper-controls .zoom-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: var(--glass-bg);
  border-radius: 2px;
  outline: none;
}

.cropper-controls .zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

/* ============================================================
   27. CHARTS (Bar Chart)
   ============================================================ */
.chart-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 250px;
  padding: 20px 10px 40px;
  position: relative;
}

.bar-chart::after {
  content: '';
  position: absolute;
  bottom: 35px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-border);
}

.bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 40px;
  position: relative;
}

.bar-fill {
  width: 70%;
  max-width: 50px;
  border-radius: 6px 6px 0 0;
  transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  min-height: 4px;
}

.bar-fill:hover {
  opacity: 0.85;
  transform: scaleX(1.1);
}

.bar-fill.gold { background: linear-gradient(to top, #ff8f00, #ffd700); }
.bar-fill.diamond { background: linear-gradient(to top, #0097a7, #b9f2ff); }
.bar-fill.scheme { background: linear-gradient(to top, #2e7d32, #69f0ae); }
.bar-fill.primary { background: linear-gradient(to top, var(--primary-dark), var(--primary-light)); }

.bar-value {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
}

.bar-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-summary {
  display: flex;
  gap: 20px;
  padding: 14px;
  background: var(--glass-bg);
  border-radius: var(--border-radius-xs);
  margin-top: 12px;
  flex-wrap: wrap;
}

.chart-summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-summary-item .legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.chart-summary-item .legend-dot.gold { background: #ffd700; }
.chart-summary-item .legend-dot.diamond { background: #00bcd4; }

.chart-summary-item span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ============================================================
   28. BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success { background: rgba(0, 200, 83, 0.2); color: #00c853; }
.badge-danger { background: rgba(255, 23, 68, 0.2); color: #ff1744; }
.badge-warning { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.badge-info { background: rgba(33, 150, 243, 0.2); color: #2196f3; }
.badge-primary { background: rgba(156, 39, 176, 0.2); color: #9c27b0; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.active { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-dot.inactive { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

/* ============================================================
   29. TABS
   ============================================================ */
.glass-tabs {
  display: flex;
  gap: 4px;
  background: var(--glass-bg);
  border-radius: var(--border-radius-sm);
  padding: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.glass-tab {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-xs);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.glass-tab:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.glass-tab.active {
  background: var(--glass-bg-strong);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tab-content {
  display: none;
  animation: tabFadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   30. GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  group: true;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay .gallery-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.gallery-overlay .gallery-info {
  font-size: 0.72rem;
  opacity: 0.8;
}

/* Gallery Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.lightbox .lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.lightbox .lightbox-close:hover {
  background: rgba(255, 23, 68, 0.4);
  transform: rotate(90deg);
}

.lightbox .lightbox-info {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 14px 24px;
  color: #fff;
  text-align: center;
}

/* ============================================================
   31. CHAT
   ============================================================ */
.chat-container {
  display: flex;
  height: calc(100vh - var(--header-height) - 48px);
  gap: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
}

.chat-sidebar {
  width: 280px;
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.chat-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.chat-sidebar-header h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.chat-user-list {
  flex: 1;
  overflow-y: auto;
}

.chat-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--table-border);
}

.chat-user-item:hover,
.chat-user-item.active {
  background: var(--sidebar-hover);
}

.chat-user-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-user-item .user-info {
  flex: 1;
  min-width: 0;
}

.chat-user-item .user-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-user-item .user-status {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chat-user-item .unread-count {
  min-width: 20px;
  height: 20px;
  background: var(--badge-bg);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-main-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.chat-main-header img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  gap: 10px;
  max-width: 70%;
  animation: messageIn 0.3s ease;
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message .message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-message .message-bubble {
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  position: relative;
}

.chat-message.received .message-bubble {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-bottom-left-radius: 4px;
}

.chat-message.sent .message-bubble {
  background: var(--primary);
  border-bottom-right-radius: 4px;
  color: #fff;
}

.chat-message .message-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.chat-message.sent .message-time {
  text-align: right;
  color: rgba(255, 255, 255, 0.6);
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--glass-border);
  align-items: center;
}

.chat-input-area input {
  flex: 1;
  padding: 12px 18px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 24px;
  color: var(--input-text);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.chat-input-area input:focus {
  border-color: var(--accent);
}

.chat-input-area input::placeholder {
  color: var(--input-placeholder);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  background: var(--btn-primary-bg);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.1);
}

/* ============================================================
   32. CONTACT GRID
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.contact-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-card:hover {
  transform: translateY(-4px);
  background: var(--card-bg-hover);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.contact-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--glass-border);
  margin-bottom: 12px;
}

.contact-card .contact-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-card .contact-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.contact-card .contact-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.contact-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contact-action-btn.call { background: rgba(0, 200, 83, 0.2); color: #00c853; }
.contact-action-btn.chat { background: rgba(33, 150, 243, 0.2); color: #2196f3; }
.contact-action-btn.whatsapp { background: rgba(37, 211, 102, 0.2); color: #25d366; }

.contact-action-btn:hover {
  transform: scale(1.15);
}

/* ============================================================
   33. PROFILE VIEW
   ============================================================ */
.profile-card-large {
  text-align: center;
  padding: 40px;
}

.profile-card-large .profile-photo-large {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--glass-border);
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.profile-card-large .profile-photo-large:hover {
  transform: scale(1.05);
}

.profile-card-large .profile-name-large {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.profile-card-large .profile-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  text-align: left;
}

.profile-detail-item {
  padding: 14px;
  background: var(--glass-bg);
  border-radius: var(--border-radius-xs);
  border: 1px solid var(--glass-border);
}

.profile-detail-item .detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.profile-detail-item .detail-value {
  font-size: 0.95rem;
  font-weight: 600;
}

/* ============================================================
   34. ATTENDANCE BANNER
   ============================================================ */
.attendance-banner {
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.15), rgba(105, 240, 174, 0.1));
  border: 1px solid rgba(0, 200, 83, 0.3);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.attendance-banner i {
  font-size: 2.5rem;
  color: #00c853;
  margin-bottom: 12px;
}

.attendance-banner h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #00c853;
  margin-bottom: 8px;
}

.attendance-banner .time-details {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.attendance-banner .time-item {
  text-align: center;
}

.attendance-banner .time-item .time-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.attendance-banner .time-item .time-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================================
   35. HOLIDAY CAROUSEL
   ============================================================ */
.holiday-card {
  display: flex;
  border-radius: var(--border-radius);
  overflow: hidden;
  min-height: 280px;
}

.holiday-card .holiday-image {
  width: 50%;
  object-fit: cover;
}

.holiday-card .holiday-text {
  width: 50%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.holiday-card .holiday-text h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.holiday-card .holiday-text .holiday-date {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.holiday-card .holiday-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   36. BOTTOM DOCK / SHORTCUT POPUP MENU
   ============================================================ */
.bottom-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dock-toggle {
  width: 48px;
  height: 48px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dock-toggle:hover {
  transform: scale(1.1);
  background: var(--glass-bg);
}

.dock-toggle .fa-chevron-up {
  transition: transform 0.3s ease;
}

.dock-toggle.expanded .fa-chevron-up {
  transform: rotate(180deg);
}

.dock-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--transition-bounce);
  max-width: 90vw;
  overflow-x: auto;
}

.dock-menu.expanded {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.dock-item {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s var(--transition-bounce);
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}

.dock-item:hover {
  transform: translateY(-8px) scale(1.15);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.dock-item .dock-tooltip {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--modal-bg);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-size: 0.68rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   37. SETTINGS / THEMES
   ============================================================ */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px 10px 6px 4px;
}
.theme-grid::-webkit-scrollbar,
.texture-grid::-webkit-scrollbar {
  width: 8px;
}
.theme-grid::-webkit-scrollbar-track,
.texture-grid::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 8px;
}
.theme-grid::-webkit-scrollbar-thumb,
.texture-grid::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 8px;
}
.theme-grid::-webkit-scrollbar-thumb:hover,
.texture-grid::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
.theme-grid,
.texture-grid {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.theme-card {
  border: 2px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.theme-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.theme-card .theme-preview {
  width: 100%;
  height: 60px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.theme-card .theme-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.theme-card .active-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #fff;
}

.texture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 10px 6px 4px;
}

.texture-card {
  border: 2px solid var(--glass-border);
  border-radius: var(--border-radius-xs);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.texture-card:hover {
  border-color: var(--accent);
}

.texture-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.texture-card .texture-name {
  font-size: 0.7rem;
  font-weight: 600;
}

/* ============================================================
   38. DOCUMENTS
   ============================================================ */
.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.document-card {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.document-card:hover {
  transform: translateY(-4px);
  background: var(--card-bg-hover);
}

.document-card i {
  font-size: 2.5rem;
  color: #e53935;
  margin-bottom: 10px;
}

.document-card .doc-name {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
  word-break: break-all;
}

.document-card .doc-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
}

/* ============================================================
   39. LEADERBOARD SCORE TILE
   ============================================================ */
.score-tile {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.score-tile:hover {
  transform: translateY(-4px);
  background: var(--card-bg-hover);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.score-tile .score-rank {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.score-tile img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--glass-border);
  margin-bottom: 10px;
}

.score-tile .score-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.score-tile .score-value {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--btn-primary-bg);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-tile .score-total {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Score Popup */
.score-popup {
  max-height: 80vh;
  overflow-y: auto;
}

.score-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.score-detail-row:last-child {
  border-bottom: none;
}

.score-detail-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.score-detail-value {
  font-size: 0.95rem;
  font-weight: 700;
}

.score-detail-bar {
  width: 80px;
  height: 6px;
  background: var(--glass-bg);
  border-radius: 3px;
  overflow: hidden;
  margin-left: 10px;
}

.score-detail-bar .fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

/* ============================================================
   40. MODALS (Generic)
   ============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--modal-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 90%;
  max-width: 550px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s var(--transition-bounce);
  box-shadow: var(--glass-shadow);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--danger);
  background: var(--glass-bg);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--glass-border);
  justify-content: flex-end;
  flex-shrink: 0;
}

/* ============================================================
   41. SWEET ALERT 2 CUSTOM STYLES
   ============================================================ */
.swal2-popup {
  background: var(--modal-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 20px !important;
  color: var(--text-primary) !important;
  box-shadow: var(--glass-shadow) !important;
}

.swal2-title {
  color: var(--text-primary) !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
}

.swal2-html-container {
  color: var(--text-secondary) !important;
  font-size: 0.9rem !important;
}

.swal2-input,
.swal2-textarea {
  background: var(--input-bg) !important;
  border: 1px solid var(--input-border) !important;
  color: var(--input-text) !important;
  border-radius: var(--border-radius-xs) !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(233, 84, 32, 0.12) !important;
}

.swal2-confirm {
  background: var(--btn-primary-bg) !important;
  border: none !important;
  border-radius: var(--border-radius-xs) !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.swal2-cancel {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  border-radius: var(--border-radius-xs) !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
}

.swal2-cancel:hover {
  background: var(--glass-bg-strong) !important;
}

/* ============================================================
   42. ABOUT US SECTION
   ============================================================ */
.about-section {
  padding: 20px;
}

.about-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.about-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ============================================================
   43. ISSUES
   ============================================================ */
.priority-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-badge.high { background: rgba(255, 23, 68, 0.2); color: #ff1744; }
.priority-badge.medium { background: rgba(255, 152, 0, 0.2); color: #ff9800; }
.priority-badge.low { background: rgba(33, 150, 243, 0.2); color: #2196f3; }

.resolve-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-top: 12px;
}

/* ============================================================
   44. STOCK
   ============================================================ */
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.stock-status.in-stock { background: rgba(0, 200, 83, 0.15); color: #00c853; }
.stock-status.sold { background: rgba(255, 152, 0, 0.15); color: #ff9800; }

/* ============================================================
   45. DATE RANGE FILTER
   ============================================================ */
.date-range-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.date-range-filter label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.date-range-filter input[type="date"] {
  padding: 8px 12px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-xs);
  color: var(--input-text);
  font-size: 0.84rem;
  outline: none;
}

.date-range-filter input[type="date"]:focus {
  border-color: var(--accent);
}

/* ============================================================
   46. MONTH/YEAR SELECTOR
   ============================================================ */
.month-year-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.month-selector,
.year-selector {
  padding: 8px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-xs);
  color: var(--input-text);
  font-size: 0.84rem;
  outline: none;
  cursor: pointer;
}

.month-selector:focus,
.year-selector:focus {
  border-color: var(--accent);
}

/* Multiple Month Selector */
.multi-month-selector {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.month-chip {
  padding: 6px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.month-chip:hover,
.month-chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ============================================================
   47. TOOLTIP
   ============================================================ */
.tooltip-container {
  position: relative;
}

.tooltip-text {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--modal-bg);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-size: 0.72rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  pointer-events: none;
}

.tooltip-container:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   48. ANIMATION UTILITIES
   ============================================================ */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-down {
  animation: fadeInDown 0.5s ease forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
  animation: slideInLeft 0.5s ease forwards;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
  animation: slideInRight 0.5s ease forwards;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.scale-in {
  animation: scaleIn 0.4s var(--transition-bounce) forwards;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.bounce-in {
  animation: bounceIn 0.6s var(--transition-bounce) forwards;
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

/* Staggered Animation Delays */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }
.stagger-9 { animation-delay: 0.45s; }
.stagger-10 { animation-delay: 0.5s; }

/* ============================================================
   49. UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-accent { color: var(--accent); }
.text-gold { color: #ffd700; }
.text-diamond { color: #00bcd4; }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.fs-xs { font-size: 0.72rem; }
.fs-sm { font-size: 0.82rem; }
.fs-md { font-size: 0.95rem; }
.fs-lg { font-size: 1.15rem; }
.fs-xl { font-size: 1.4rem; }
.fs-2xl { font-size: 1.8rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 36px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 36px; }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-1 { padding: 6px; }
.p-2 { padding: 12px; }
.p-3 { padding: 18px; }
.p-4 { padding: 24px; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }
.d-inline-flex { display: inline-flex; }

.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: 6px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 18px; }
.gap-4 { gap: 24px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-full { border-radius: 50%; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.cursor-pointer { cursor: pointer; }

.no-select { user-select: none; }

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Gradient backgrounds for random card colors */
.gradient-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.gradient-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.gradient-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.gradient-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.gradient-5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.gradient-6 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.gradient-7 { background: linear-gradient(135deg, #fccb90, #d57eeb); }
.gradient-8 { background: linear-gradient(135deg, #e0c3fc, #8ec5fc); }
.gradient-9 { background: linear-gradient(135deg, #f5576c, #ff6f91); }
.gradient-10 { background: linear-gradient(135deg, #0acffe, #495aff); }
.gradient-11 { background: linear-gradient(135deg, #30cfd0, #330867); }
.gradient-12 { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.gradient-13 { background: linear-gradient(135deg, #d299c2, #fef9d7); }
.gradient-14 { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.gradient-15 { background: linear-gradient(135deg, #fddb92, #d1fdff); }

/* ============================================================
   50. PRINT STYLES
   ============================================================ */
@media print {
  .app-header,
  .app-sidebar,
  .bottom-dock,
  .notification-panel,
  .table-toolbar,
  .btn,
  .dock-toggle,
  .hamburger-btn {
    display: none !important;
  }

  .app-main {
    margin: 0 !important;
    padding: 10px !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .glass-card,
  .glass-form,
  .table-container {
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .glass-table thead th {
    background: #f5f5f5 !important;
    color: #333 !important;
  }

  .glass-table tbody td {
    color: #333 !important;
  }
}

/* ============================================================
   51. RESPONSIVE DESIGN
   ============================================================ */

/* Large Desktop */
@media (min-width: 1400px) {
  .info-tiles-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .carousel-3d-item {
    width: 320px;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .info-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .carousel-3d-item.left-2,
  .carousel-3d-item.right-2 {
    opacity: 0;
    pointer-events: none;
  }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
  .app-sidebar {
    transform: translateX(-100%);
  }

  .app-sidebar.active {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
  }

  .hamburger-btn {
    display: flex;
    flex-direction: column;
  }

  .header-logo .logo-text {
    font-size: 0.95rem;
  }

  .sidebar-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .chat-sidebar {
    width: 240px;
  }

  .carousel-3d-item {
    width: 260px;
  }

  .info-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  html {
    font-size: 14px;
  }

  .app-header {
    padding: 10 14px;
  }

  .header-logo img {
    height: 34px;
    width: 34px;
  }

  .header-logo .logo-text {
    font-size: 0.85rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .profile-btn .profile-name {
    display: none;
  }

  .app-main {
    padding: 16px;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .glass-card,
  .glass-form {
    padding: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .info-tiles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shortcut-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
  }

  .shortcut-tile {
    padding: 14px 10px;
  }

  .shortcut-tile i {
    font-size: 1.4rem;
  }

  .shortcut-tile span {
    font-size: 0.7rem;
  }

  .image-carousel .carousel-slide img {
    height: 250px;
  }

  .carousel-3d-wrapper {
    min-height: 280px;
  }

  .carousel-3d-item {
    width: 220px;
    min-height: 260px;
  }

  .carousel-3d-item.left-1 {
    transform: translateX(-160px) scale(0.8) rotateY(20deg);
  }

  .carousel-3d-item.right-1 {
    transform: translateX(160px) scale(0.8) rotateY(-20deg);
  }

  .carousel-3d-item.left-2,
  .carousel-3d-item.right-2 {
    opacity: 0;
    pointer-events: none;
  }

  .chat-container {
    flex-direction: column;
    height: calc(100vh - var(--header-height) - 100px);
  }

  .chat-sidebar {
    width: 100%;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .contact-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .table-search input {
    width: 100%;
  }

  .table-search input:focus {
    width: 100%;
  }

  .table-scroll {
    max-height: 400px;
  }

  .holiday-card {
    flex-direction: column;
  }

  .holiday-card .holiday-image {
    width: 100%;
    height: 180px;
  }

  .holiday-card .holiday-text {
    width: 100%;
  }

  .notification-panel {
    width: 100%;
    right: -100%;
  }

  .dock-item {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .modal-box {
    width: 95%;
  }

  .filter-modal {
    width: 95%;
  }

  .profile-details-grid {
    grid-template-columns: 1fr;
  }

  .score-tile .score-value {
    font-size: 1.3rem;
  }

  .bar-chart {
    min-height: 200px;
  }
  .image-carousel .carousel-inner {
    height: 250px;
  }
  .image-carousel .carousel-slide img {
    height: 100%;
  }
}

/* Mobile */
@media (max-width: 576px) {
  html {
    font-size: 13px;
  }

  .app-header {
    padding: 0 10px;
    gap: 6px;
  }

  .header-left {
    gap: 8px;
  }

  .header-right {
    gap: 6px;
  }

  .header-logo .logo-text {
    display: none;
  }

  .notification-bell {
    padding: 8px;
    font-size: 1rem;
  }

  .profile-btn {
    padding: 4px 8px;
  }

  .profile-btn img {
    width: 30px;
    height: 30px;
  }

  .app-main {
    padding: 12px;
    padding-bottom: calc(var(--dock-height) + 30px);
  }

  .page-title {
    font-size: 1.1rem;
  }

  .glass-card,
  .glass-form {
    padding: 14px;
    border-radius: var(--border-radius-sm);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-tiles-grid {
    grid-template-columns: 1fr;
  }

  .info-tile {
    min-height: 100px;
  }

  .info-tile .tile-value {
    font-size: 1.4rem;
  }

  .shortcut-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .shortcut-tile {
    padding: 12px 8px;
    border-radius: 8px;
  }

  .shortcut-tile i {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }

  .shortcut-tile span {
    font-size: 0.65rem;
  }

  .image-carousel .carousel-slide img {
    height: 180px;
  }

  .carousel-3d-wrapper {
    min-height: 240px;
  }

  .carousel-3d-item {
    width: 200px;
    min-height: 220px;
  }

  .carousel-3d-item.left-1 {
    transform: translateX(-120px) scale(0.75) rotateY(15deg);
    opacity: 0.5;
  }

  .carousel-3d-item.right-1 {
    transform: translateX(120px) scale(0.75) rotateY(-15deg);
    opacity: 0.5;
  }

  .carousel-3d-nav {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .glass-table thead th,
  .glass-table tbody td {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .table-total-bar {
    padding: 10px 12px;
    gap: 8px;
  }

  .table-total-item .total-value {
    font-size: 0.95rem;
  }

  .btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .btn-icon {
    width: 34px;
    height: 34px;
  }

  .btn-icon.btn-sm {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .btn-in,
  .btn-out {
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .contact-card {
    padding: 16px;
  }

  .contact-card img {
    width: 55px;
    height: 55px;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .login-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .login-card h2 {
    font-size: 1.2rem;
  }

  .login-card .login-logo img {
    width: 65px;
    height: 65px;
  }

  .profile-card-large {
    padding: 24px;
  }

  .profile-card-large .profile-photo-large {
    width: 100px;
    height: 100px;
  }

  .profile-card-large .profile-name-large {
    font-size: 1.2rem;
  }

  .date-range-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .month-year-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .glass-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .glass-tab {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .bottom-dock {
    bottom: 10px;
  }

  .dock-toggle {
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }

  .dock-menu {
    gap: 4px;
    padding: 8px 14px;
  }

  .dock-item {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.85rem;
  }

  .attendance-banner {
    padding: 18px;
  }

  .attendance-banner i {
    font-size: 2rem;
  }

  .attendance-banner h3 {
    font-size: 1rem;
  }

  .attendance-banner .time-item .time-value {
    font-size: 1rem;
  }

  .bar-chart {
    min-height: 160px;
    padding: 14px 6px 30px;
    gap: 4px;
  }

  .bar-fill {
    max-width: 30px;
  }

  .bar-value {
    font-size: 0.6rem;
  }

  .bar-label {
    font-size: 0.55rem;
    max-width: 40px;
  }

  .chart-summary {
    flex-direction: column;
    gap: 8px;
  }

  .cropper-container {
    width: 95%;
    padding: 16px;
  }

  .score-tile img {
    width: 50px;
    height: 50px;
  }

  .score-tile .score-name {
    font-size: 0.82rem;
  }

  .score-tile .score-value {
    font-size: 1.2rem;
  }

  .multi-month-selector {
    gap: 4px;
  }

  .month-chip {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
  
  .image-carousel .carousel-inner {
    height: 180px;
  }
  .image-carousel .carousel-slide img {
    height: 100%;
  }
}

/* Extra Small Mobile */
@media (max-width: 380px) {
  html {
    font-size: 12px;
  }

  .shortcut-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .carousel-3d-item {
    width: 180px;
    min-height: 200px;
  }

  .carousel-3d-item.left-1,
  .carousel-3d-item.right-1 {
    opacity: 0.3;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   52. LANDSCAPE PHONE
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .login-card {
    padding: 20px 30px;
  }

  .login-card .login-logo {
    margin-bottom: 12px;
  }

  .login-card .login-logo img {
    width: 50px;
    height: 50px;
  }

  .carousel-3d-wrapper {
    min-height: 200px;
  }

  .image-carousel .carousel-slide img {
    height: 200px;
  }
}

/* ============================================================
   53. ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .loader-overlay {
    display: none !important;
  }
}

/* Focus Visible Styles */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* High Contrast */
@media (prefers-contrast: high) {
  :root {
    --card-border: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.7);
    --input-border: rgba(255, 255, 255, 0.5);
  }
}

/* ============================================================
   54. INSTALL PAGE
   ============================================================ */
.install-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.install-card {
  width: 100%;
  max-width: 600px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--glass-shadow);
}

.install-steps {
  display: flex;
  gap: 4px;
  margin-bottom: 30px;
}

.install-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--glass-bg);
}

.install-step.active {
  background: var(--accent);
}

.install-step.completed {
  background: var(--success);
}

.install-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--border-radius-xs);
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.install-status.success {
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
}

.install-status.error {
  background: rgba(255, 23, 68, 0.1);
  color: #ff1744;
}

.install-status.info {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}

/* ============================================================
   55. COUNTER ACHIEVEMENT TILES
   ============================================================ */
.counter-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.counter-tile {
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.counter-tile:hover {
  transform: translateY(-4px);
  background: var(--card-bg-hover);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.counter-tile .counter-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.counter-tile .counter-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.counter-stat {
  text-align: center;
  padding: 10px;
  background: var(--glass-bg);
  border-radius: var(--border-radius-xs);
  border: 1px solid var(--glass-border);
}

.counter-stat .stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.counter-stat .stat-value {
  font-size: 1.2rem;
  font-weight: 800;
}

.counter-stat .stat-percent {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   56. BEHAVIOUR FORM
   ============================================================ */
.behaviour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.behaviour-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 16px;
}

.behaviour-item label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.behaviour-item .max-mark {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.behaviour-item input {
  width: 100%;
}

/* ============================================================
   57. LEAVE BALANCE HIGHLIGHT
   ============================================================ */
.leave-balance-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.leave-balance-card {
  flex: 1;
  min-width: 120px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  text-align: center;
}

.leave-balance-card .balance-type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.leave-balance-card .balance-value {
  font-size: 1.5rem;
  font-weight: 800;
}

.leave-balance-card .balance-value.low {
  color: var(--danger);
}

.leave-balance-card .balance-value.ok {
  color: var(--success);
}

/* ============================================================
   58. SCHEME TYPES BADGES
   ============================================================ */
.scheme-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.scheme-type-badge.sy { background: rgba(233, 84, 32, 0.2); color: #e95420; }
.scheme-type-badge.sl { background: rgba(33, 150, 243, 0.2); color: #2196f3; }
.scheme-type-badge.sv { background: rgba(156, 39, 176, 0.2); color: #9c27b0; }
.scheme-type-badge.ss { background: rgba(0, 200, 83, 0.2); color: #00c853; }
.scheme-type-badge.others { background: rgba(255, 152, 0, 0.2); color: #ff9800; }

/* ============================================================
   59. PHONE LINK STYLE
   ============================================================ */
.phone-link {
  color: var(--info);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
}

.phone-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================================================
   60. EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 4rem;
  color: var(--text-muted);
  opacity: 0.3;
  margin-bottom: 16px;
}

.empty-state h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   61. BACKUP / RESTORE
   ============================================================ */
.backup-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.backup-card:hover {
  background: var(--glass-bg-strong);
}

.backup-card i {
  font-size: 1.5rem;
  color: var(--accent);
}

.backup-card .backup-info {
  flex: 1;
}

.backup-card .backup-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.backup-card .backup-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   62. LOG ENTRIES
   ============================================================ */
.log-entry {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.82rem;
}

.log-entry .log-time {
  color: var(--text-muted);
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
}

.log-entry .log-message {
  color: var(--text-secondary);
}

.log-entry .log-user {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   63. SLIDER MANAGEMENT
   ============================================================ */
.slider-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.slider-manage-item {
  position: relative;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.slider-manage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-manage-item .slider-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}

.slider-manage-item .slider-number {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ============================================================
   64. TARGET CARD (Employee View)
   ============================================================ */
.target-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.target-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 18px;
  text-align: center;
}

.target-card .target-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.target-card .target-value {
  font-size: 1.6rem;
  font-weight: 800;
}

.target-card .target-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   65. COMBO BOX (Searchable - Non Select2)
   ============================================================ */
.combo-box-wrapper {
  position: relative;
}

.combo-box-wrapper input.combo-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--border-radius-xs);
  color: var(--input-text);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.combo-box-wrapper input.combo-input:focus {
  border-color: var(--accent);
}

.combo-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--modal-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 0 0 var(--border-radius-xs) var(--border-radius-xs);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: var(--glass-shadow);
}

.combo-dropdown.show {
  display: block;
}

.combo-option {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.2s ease;
  color: var(--text-primary);
}

.combo-option:hover,
.combo-option.highlighted {
  background: var(--sidebar-hover);
}

/* ============================================================
   66. ADDITIONAL HELPERS
   ============================================================ */

/* Highlight */
.highlight {
  background: rgba(255, 193, 7, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Separator */
.section-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 30px 0;
}

/* Avatar group */
.avatar-group {
  display: flex;
}

.avatar-group img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-gradient-1);
  margin-left: -8px;
}

.avatar-group img:first-child {
  margin-left: 0;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--glass-bg) 25%, var(--glass-bg-strong) 50%, var(--glass-bg) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: var(--border-radius-xs);
}

@keyframes skeletonLoading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.skeleton-rect {
  height: 120px;
}

/* Count animation */
.count-up {
  transition: all 1s ease-out;
}

/* Pulse effect */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Glow effect */
.glow {
  box-shadow: 0 0 15px rgba(233, 84, 32, 0.3);
}

.glow-gold {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.glow-diamond {
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}

/* No data */
.no-data {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-style: italic;
}

/* Clickable row */
.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: var(--table-row-hover) !important;
}

/* ============================================================
   SELECT BOX & OPTION FIXES
   ============================================================ */

/* 1. Fix white background on desktop dropdowns */
select option {
  /* Use a solid color that matches your dark theme */
  background-color: var(--bg-gradient-1, #2c001e); 
  color: #ffffff;
  padding: 10px;
}

/* Optional: Hover state for options (Only works on some browsers) */
select option:hover,
select option:focus,
select option:active,
select option:checked {
  background-color: var(--primary-light, #a63d6f) !important;
  color: #ffffff !important;
}

/* 2. Fix mobile width and overflow issues */
select.form-control, 
.month-selector, 
.year-selector {
  max-width: 100%;
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  
  /* Standardize the closed appearance */
  appearance: none; 
  -webkit-appearance: none;
  -moz-appearance: none;
  
  /* Add custom dropdown arrow since we removed the default appearance */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
  padding-right: 30px; /* Make room for the arrow */
}



/* Action Icons Colors */
.action-edit { color: var(--info); }
.action-delete { color: var(--danger); }
.action-view { color: var(--accent); }
.action-close { color: var(--warning); }
.action-approve { color: var(--success); }
.action-reject { color: var(--danger); }

/* ============================================================
   END OF STYLESHEET
   ============================================================ */

.phone-blur{filter:blur(4px);transition:filter .15s ease;cursor:help;display:inline-block;}
.phone-blur:hover,.phone-blur:focus,.phone-blur.reveal{filter:none;}


/* ============================================================
   EXTRA THEMES — contrasting header/sidebar (anti vs body)
   ============================================================ */

/* 🍊 Citrus Split — header & sidebar in a contrasting (anti) colour vs the body */
[data-theme="split-citrus"] {
  --primary: #b5471a;
  --primary-light: #ff7a1a;
  --primary-dark: #b5471a;
  --secondary: #ff7a1a;
  --secondary-light: #ffa04a;
  --accent: #ff7a1a;
  --accent-light: #ffa04a;
  --bg-gradient-1: #3a1500;
  --bg-gradient-2: #b5471a;
  --bg-gradient-3: #e0701a;
  --sidebar-bg: rgba(13,10,46, 0.92);
  --sidebar-hover: rgba(13,10,46, 0.65);
  --sidebar-active: rgba(13,10,46, 0.82);
  --header-bg: rgba(13,10,46, 0.9);
  --btn-primary-bg: linear-gradient(135deg, #0d0a2e, #ff7a1a);
  --btn-primary-hover: linear-gradient(135deg, #ff7a1a, #0d0a2e);
}

/* 🍇 Grape Lime — header & sidebar in a contrasting (anti) colour vs the body */
[data-theme="split-grape"] {
  --primary: #6a1fa0;
  --primary-light: #b15cff;
  --primary-dark: #4a148c;
  --secondary: #b15cff;
  --secondary-light: #cf8bff;
  --accent: #b15cff;
  --accent-light: #cf8bff;
  --bg-gradient-1: #2a0a40;
  --bg-gradient-2: #6a1fa0;
  --bg-gradient-3: #8e3fc0;
  --sidebar-bg: rgba(22,48,10, 0.92);
  --sidebar-hover: rgba(22,48,10, 0.65);
  --sidebar-active: rgba(22,48,10, 0.82);
  --header-bg: rgba(22,48,10, 0.9);
  --btn-primary-bg: linear-gradient(135deg, #16300a, #b15cff);
  --btn-primary-hover: linear-gradient(135deg, #b15cff, #16300a);
}

/* 🦩 Flamingo Teal — header & sidebar in a contrasting (anti) colour vs the body */
[data-theme="split-flamingo"] {
  --primary: #b01a5a;
  --primary-light: #ff5fa2;
  --primary-dark: #8a1247;
  --secondary: #ff5fa2;
  --secondary-light: #ff8fc0;
  --accent: #ff5fa2;
  --accent-light: #ff8fc0;
  --bg-gradient-1: #4a0a2a;
  --bg-gradient-2: #b01a5a;
  --bg-gradient-3: #e0357f;
  --sidebar-bg: rgba(0,59,59, 0.92);
  --sidebar-hover: rgba(0,59,59, 0.65);
  --sidebar-active: rgba(0,59,59, 0.82);
  --header-bg: rgba(0,59,59, 0.9);
  --btn-primary-bg: linear-gradient(135deg, #003b3b, #ff5fa2);
  --btn-primary-hover: linear-gradient(135deg, #ff5fa2, #003b3b);
}

/* 🏝️ Lagoon Coral — header & sidebar in a contrasting (anti) colour vs the body */
[data-theme="split-lagoon"] {
  --primary: #0a6a6a;
  --primary-light: #1fd6d6;
  --primary-dark: #075050;
  --secondary: #1fd6d6;
  --secondary-light: #5fe6e6;
  --accent: #1fd6d6;
  --accent-light: #5fe6e6;
  --bg-gradient-1: #042a2a;
  --bg-gradient-2: #0a6a6a;
  --bg-gradient-3: #11a0a0;
  --sidebar-bg: rgba(74,16,16, 0.92);
  --sidebar-hover: rgba(74,16,16, 0.65);
  --sidebar-active: rgba(74,16,16, 0.82);
  --header-bg: rgba(74,16,16, 0.9);
  --btn-primary-bg: linear-gradient(135deg, #4a1010, #1fd6d6);
  --btn-primary-hover: linear-gradient(135deg, #1fd6d6, #4a1010);
}

/* 🥭 Mango Navy — header & sidebar in a contrasting (anti) colour vs the body */
[data-theme="split-mango"] {
  --primary: #9a6500;
  --primary-light: #ffb01a;
  --primary-dark: #7a5000;
  --secondary: #ffb01a;
  --secondary-light: #ffc94f;
  --accent: #ffb01a;
  --accent-light: #ffc94f;
  --bg-gradient-1: #3a2400;
  --bg-gradient-2: #9a6500;
  --bg-gradient-3: #c4881a;
  --sidebar-bg: rgba(5,12,40, 0.92);
  --sidebar-hover: rgba(5,12,40, 0.65);
  --sidebar-active: rgba(5,12,40, 0.82);
  --header-bg: rgba(5,12,40, 0.9);
  --btn-primary-bg: linear-gradient(135deg, #050c28, #ffb01a);
  --btn-primary-hover: linear-gradient(135deg, #ffb01a, #050c28);
}

/* 🫐 Berry Forest — header & sidebar in a contrasting (anti) colour vs the body */
[data-theme="split-berry"] {
  --primary: #8a0a6a;
  --primary-light: #ff4fc4;
  --primary-dark: #6a0850;
  --secondary: #ff4fc4;
  --secondary-light: #ff85d6;
  --accent: #ff4fc4;
  --accent-light: #ff85d6;
  --bg-gradient-1: #2a0520;
  --bg-gradient-2: #8a0a6a;
  --bg-gradient-3: #b81a8e;
  --sidebar-bg: rgba(10,59,24, 0.92);
  --sidebar-hover: rgba(10,59,24, 0.65);
  --sidebar-active: rgba(10,59,24, 0.82);
  --header-bg: rgba(10,59,24, 0.9);
  --btn-primary-bg: linear-gradient(135deg, #0a3b18, #ff4fc4);
  --btn-primary-hover: linear-gradient(135deg, #ff4fc4, #0a3b18);
}

/* 🌤️ Sky Rust — header & sidebar in a contrasting (anti) colour vs the body */
[data-theme="split-skyrust"] {
  --primary: #0a5a9a;
  --primary-light: #3fa8e0;
  --primary-dark: #08436f;
  --secondary: #3fa8e0;
  --secondary-light: #73c2ec;
  --accent: #3fa8e0;
  --accent-light: #73c2ec;
  --bg-gradient-1: #04203a;
  --bg-gradient-2: #0a5a9a;
  --bg-gradient-3: #1a7ac0;
  --sidebar-bg: rgba(74,28,8, 0.92);
  --sidebar-hover: rgba(74,28,8, 0.65);
  --sidebar-active: rgba(74,28,8, 0.82);
  --header-bg: rgba(74,28,8, 0.9);
  --btn-primary-bg: linear-gradient(135deg, #4a1c08, #3fa8e0);
  --btn-primary-hover: linear-gradient(135deg, #3fa8e0, #4a1c08);
}

/* 🌿 Mint Plum — header & sidebar in a contrasting (anti) colour vs the body */
[data-theme="split-mintplum"] {
  --primary: #0a7a45;
  --primary-light: #2fd684;
  --primary-dark: #075a32;
  --secondary: #2fd684;
  --secondary-light: #69e4a8;
  --accent: #2fd684;
  --accent-light: #69e4a8;
  --bg-gradient-1: #062a18;
  --bg-gradient-2: #0a7a45;
  --bg-gradient-3: #15a05a;
  --sidebar-bg: rgba(50,10,69, 0.92);
  --sidebar-hover: rgba(50,10,69, 0.65);
  --sidebar-active: rgba(50,10,69, 0.82);
  --header-bg: rgba(50,10,69, 0.9);
  --btn-primary-bg: linear-gradient(135deg, #320a45, #2fd684);
  --btn-primary-hover: linear-gradient(135deg, #2fd684, #320a45);
}

/* 🪸 Coral Ink — header & sidebar in a contrasting (anti) colour vs the body */
[data-theme="split-coralink"] {
  --primary: #b0301a;
  --primary-light: #ff7a4a;
  --primary-dark: #8a2412;
  --secondary: #ff7a4a;
  --secondary-light: #ffa078;
  --accent: #ff7a4a;
  --accent-light: #ffa078;
  --bg-gradient-1: #3a0a05;
  --bg-gradient-2: #b0301a;
  --bg-gradient-3: #e0552a;
  --sidebar-bg: rgba(6,12,30, 0.92);
  --sidebar-hover: rgba(6,12,30, 0.65);
  --sidebar-active: rgba(6,12,30, 0.82);
  --header-bg: rgba(6,12,30, 0.9);
  --btn-primary-bg: linear-gradient(135deg, #060c1e, #ff7a4a);
  --btn-primary-hover: linear-gradient(135deg, #ff7a4a, #060c1e);
}

/* 🏆 Gold Violet — header & sidebar in a contrasting (anti) colour vs the body */
[data-theme="split-goldviolet"] {
  --primary: #8a6500;
  --primary-light: #ffd24a;
  --primary-dark: #6f5000;
  --secondary: #ffd24a;
  --secondary-light: #ffe07a;
  --accent: #ffd24a;
  --accent-light: #ffe07a;
  --bg-gradient-1: #3a2a00;
  --bg-gradient-2: #8a6500;
  --bg-gradient-3: #b88f1a;
  --sidebar-bg: rgba(30,5,64, 0.92);
  --sidebar-hover: rgba(30,5,64, 0.65);
  --sidebar-active: rgba(30,5,64, 0.82);
  --header-bg: rgba(30,5,64, 0.9);
  --btn-primary-bg: linear-gradient(135deg, #1e0540, #ffd24a);
  --btn-primary-hover: linear-gradient(135deg, #ffd24a, #1e0540);
}

/* ============================================================
   EXTRA COLOURFUL BACKGROUND TEXTURES
   ============================================================ */

/* 🎉 Color Confetti */
[data-texture="confetti-color"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='8' y='10' width='8' height='4' transform='rotate(25 12 12)' fill='rgba(255,64,64,0.30)'/%3E%3Crect x='50' y='14' width='8' height='4' transform='rotate(-20 54 16)' fill='rgba(64,160,255,0.30)'/%3E%3Crect x='30' y='38' width='8' height='4' transform='rotate(40 34 40)' fill='rgba(255,210,40,0.30)'/%3E%3Crect x='60' y='52' width='8' height='4' transform='rotate(-35 64 54)' fill='rgba(64,220,120,0.30)'/%3E%3Crect x='14' y='58' width='8' height='4' transform='rotate(15 18 60)' fill='rgba(220,80,255,0.30)'/%3E%3Ccircle cx='44' cy='66' r='3' fill='rgba(255,140,40,0.30)'/%3E%3C/svg%3E");
}

/* 🌈 Rainbow Stripes */
[data-texture="rainbow-stripes"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke-width='6' fill='none'%3E%3Cpath d='M-10 20 L20 -10' stroke='rgba(255,70,70,0.20)'/%3E%3Cpath d='M-10 32 L32 -10' stroke='rgba(255,170,40,0.20)'/%3E%3Cpath d='M-10 44 L44 -10' stroke='rgba(90,210,90,0.20)'/%3E%3Cpath d='M-10 56 L56 -10' stroke='rgba(70,150,255,0.20)'/%3E%3Cpath d='M2 70 L70 2' stroke='rgba(200,90,255,0.20)'/%3E%3C/g%3E%3C/svg%3E");
}

/* 🍬 Candy Dots */
[data-texture="candy-dots"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='50' height='50' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='5' fill='rgba(255,90,160,0.28)'/%3E%3Ccircle cx='38' cy='18' r='5' fill='rgba(40,200,200,0.28)'/%3E%3Ccircle cx='22' cy='38' r='5' fill='rgba(255,170,50,0.28)'/%3E%3Ccircle cx='44' cy='44' r='4' fill='rgba(150,90,255,0.28)'/%3E%3C/svg%3E");
}

/* 🌴 Tropical Leaf */
[data-texture="tropical-leaf"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='90' height='90' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 70 Q35 30 60 20 Q40 45 30 75 Z' fill='rgba(60,200,110,0.22)'/%3E%3Cpath d='M55 80 Q70 50 88 44 Q72 60 66 84 Z' fill='rgba(150,230,60,0.20)'/%3E%3Cpath d='M8 30 Q22 14 40 12 Q24 26 20 42 Z' fill='rgba(40,190,180,0.20)'/%3E%3C/svg%3E");
}

/* ✨ Color Bokeh */
[data-texture="color-bokeh"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='25' cy='30' r='16' fill='rgba(255,60,200,0.16)'/%3E%3Ccircle cx='70' cy='25' r='12' fill='rgba(60,220,255,0.16)'/%3E%3Ccircle cx='55' cy='70' r='20' fill='rgba(255,220,60,0.14)'/%3E%3Ccircle cx='85' cy='80' r='10' fill='rgba(120,255,140,0.16)'/%3E%3C/svg%3E");
}

/* 💎 Gem Mosaic */
[data-texture="gem-mosaic"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 4 L26 15 L15 26 L4 15 Z' fill='rgba(80,180,255,0.24)'/%3E%3Cpath d='M45 4 L56 15 L45 26 L34 15 Z' fill='rgba(255,90,150,0.24)'/%3E%3Cpath d='M30 30 L41 41 L30 52 L19 41 Z' fill='rgba(255,200,50,0.24)'/%3E%3C/svg%3E");
}

/* 🍋 Citrus Pop */
[data-texture="citrus-pop"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='70' height='70' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='18' cy='20' r='10' fill='none' stroke='rgba(255,160,30,0.30)' stroke-width='3'/%3E%3Ccircle cx='50' cy='34' r='12' fill='none' stroke='rgba(230,230,40,0.30)' stroke-width='3'/%3E%3Ccircle cx='30' cy='56' r='9' fill='none' stroke='rgba(140,220,40,0.30)' stroke-width='3'/%3E%3C/svg%3E");
}

/* 🌠 Aurora Bands */
[data-texture="aurora-bands"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='120' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 Q30 5 60 20 T120 20' fill='none' stroke='rgba(60,255,180,0.22)' stroke-width='5'/%3E%3Cpath d='M0 34 Q30 19 60 34 T120 34' fill='none' stroke='rgba(120,120,255,0.20)' stroke-width='5'/%3E%3Cpath d='M0 48 Q30 33 60 48 T120 48' fill='none' stroke='rgba(255,90,220,0.18)' stroke-width='5'/%3E%3C/svg%3E");
}

/* 🔺 Pop Triangles */
[data-texture="pop-triangles"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='70' height='70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 12 L24 30 L4 30 Z' fill='rgba(255,80,80,0.24)'/%3E%3Cpath d='M48 16 L60 38 L36 38 Z' fill='rgba(70,150,255,0.24)'/%3E%3Cpath d='M30 44 L42 64 L18 64 Z' fill='rgba(255,205,50,0.24)'/%3E%3C/svg%3E");
}

/* 🎊 Fiesta */
[data-texture="fiesta"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='6' fill='rgba(255,70,140,0.26)'/%3E%3Crect x='44' y='10' width='12' height='12' transform='rotate(20 50 16)' fill='rgba(60,200,255,0.24)'/%3E%3Cpath d='M22 50 L32 66 L12 66 Z' fill='rgba(120,230,90,0.24)'/%3E%3Ccircle cx='60' cy='58' r='7' fill='none' stroke='rgba(255,190,40,0.30)' stroke-width='3'/%3E%3C/svg%3E");
}

/* Live preview of each texture inside the picker card */
.texture-card {
  background-image: var(--bg-texture);
  background-color: rgba(125, 130, 165, 0.20);
  background-repeat: repeat;
  position: relative;
  overflow: hidden;
}
.texture-card[data-texture="none"] {
  background-image: none;
}
.texture-card .texture-name {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 2px 7px;
  border-radius: 8px;
  backdrop-filter: blur(2px);
}

/* ============================================================
   EXTRA LIGHT THEMES — pale body, contrasting dark header/sidebar
   ============================================================ */

/* 🌷 Rose Mist — light body, dark contrasting header & sidebar */
[data-theme="split-light-rose"] {
  --primary: #e91e63;
  --primary-light: #f06292;
  --primary-dark: #ad1457;
  --secondary: #f06292;
  --secondary-light: #f06292;
  --accent: #e91e63;
  --accent-light: #f06292;
  --bg-gradient-1: #fff0f5;
  --bg-gradient-2: #ffdcea;
  --bg-gradient-3: #ffe9f1;
  --sidebar-bg: rgba(58,10,30, 0.95);
  --sidebar-hover: rgba(255, 255, 255, 0.12);
  --sidebar-active: rgba(255, 255, 255, 0.22);
  --header-bg: rgba(58,10,30, 0.92);
  --btn-primary-bg: linear-gradient(135deg, #3a0a1e, #e91e63);
  --btn-primary-hover: linear-gradient(135deg, #e91e63, #3a0a1e);
  --card-bg: rgba(255, 255, 255, 0.60);
  --card-bg-hover: rgba(255, 255, 255, 0.82);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.10);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.82);
  --text-muted: rgba(26, 26, 46, 0.50);
  --input-bg: rgba(255, 255, 255, 0.70);
  --input-border: rgba(0, 0, 0, 0.15);
  --input-focus: rgba(0, 0, 0, 0.30);
  --input-text: #1a1a2e;
  --input-placeholder: rgba(26, 26, 46, 0.40);
  --table-header-bg: rgba(0, 0, 0, 0.06);
  --table-row-bg: rgba(255, 255, 255, 0.45);
  --table-row-hover: rgba(0, 0, 0, 0.05);
  --table-border: rgba(0, 0, 0, 0.08);
  --scrollbar-track: rgba(0, 0, 0, 0.04);
  --scrollbar-thumb: rgba(0, 0, 0, 0.16);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.30);
  --modal-bg: rgba(255, 255, 255, 0.95);
  --notification-new: rgba(0, 200, 83, 0.10);
}

/* ☁️ Sky Cloud — light body, dark contrasting header & sidebar */
[data-theme="split-light-sky"] {
  --primary: #1976d2;
  --primary-light: #42a5f5;
  --primary-dark: #0d47a1;
  --secondary: #42a5f5;
  --secondary-light: #42a5f5;
  --accent: #1976d2;
  --accent-light: #42a5f5;
  --bg-gradient-1: #eef5ff;
  --bg-gradient-2: #d7e7ff;
  --bg-gradient-3: #e9f2ff;
  --sidebar-bg: rgba(10,26,58, 0.95);
  --sidebar-hover: rgba(255, 255, 255, 0.12);
  --sidebar-active: rgba(255, 255, 255, 0.22);
  --header-bg: rgba(10,26,58, 0.92);
  --btn-primary-bg: linear-gradient(135deg, #0a1a3a, #1976d2);
  --btn-primary-hover: linear-gradient(135deg, #1976d2, #0a1a3a);
  --card-bg: rgba(255, 255, 255, 0.60);
  --card-bg-hover: rgba(255, 255, 255, 0.82);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.10);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.82);
  --text-muted: rgba(26, 26, 46, 0.50);
  --input-bg: rgba(255, 255, 255, 0.70);
  --input-border: rgba(0, 0, 0, 0.15);
  --input-focus: rgba(0, 0, 0, 0.30);
  --input-text: #1a1a2e;
  --input-placeholder: rgba(26, 26, 46, 0.40);
  --table-header-bg: rgba(0, 0, 0, 0.06);
  --table-row-bg: rgba(255, 255, 255, 0.45);
  --table-row-hover: rgba(0, 0, 0, 0.05);
  --table-border: rgba(0, 0, 0, 0.08);
  --scrollbar-track: rgba(0, 0, 0, 0.04);
  --scrollbar-thumb: rgba(0, 0, 0, 0.16);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.30);
  --modal-bg: rgba(255, 255, 255, 0.95);
  --notification-new: rgba(0, 200, 83, 0.10);
}

/* 🍃 Mint Cream — light body, dark contrasting header & sidebar */
[data-theme="split-light-mint"] {
  --primary: #00897b;
  --primary-light: #4db6ac;
  --primary-dark: #00695c;
  --secondary: #4db6ac;
  --secondary-light: #4db6ac;
  --accent: #00897b;
  --accent-light: #4db6ac;
  --bg-gradient-1: #eefcf4;
  --bg-gradient-2: #d4f3e2;
  --bg-gradient-3: #e8faf0;
  --sidebar-bg: rgba(4,48,42, 0.95);
  --sidebar-hover: rgba(255, 255, 255, 0.12);
  --sidebar-active: rgba(255, 255, 255, 0.22);
  --header-bg: rgba(4,48,42, 0.92);
  --btn-primary-bg: linear-gradient(135deg, #04302a, #00897b);
  --btn-primary-hover: linear-gradient(135deg, #00897b, #04302a);
  --card-bg: rgba(255, 255, 255, 0.60);
  --card-bg-hover: rgba(255, 255, 255, 0.82);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.10);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.82);
  --text-muted: rgba(26, 26, 46, 0.50);
  --input-bg: rgba(255, 255, 255, 0.70);
  --input-border: rgba(0, 0, 0, 0.15);
  --input-focus: rgba(0, 0, 0, 0.30);
  --input-text: #1a1a2e;
  --input-placeholder: rgba(26, 26, 46, 0.40);
  --table-header-bg: rgba(0, 0, 0, 0.06);
  --table-row-bg: rgba(255, 255, 255, 0.45);
  --table-row-hover: rgba(0, 0, 0, 0.05);
  --table-border: rgba(0, 0, 0, 0.08);
  --scrollbar-track: rgba(0, 0, 0, 0.04);
  --scrollbar-thumb: rgba(0, 0, 0, 0.16);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.30);
  --modal-bg: rgba(255, 255, 255, 0.95);
  --notification-new: rgba(0, 200, 83, 0.10);
}

/* 💐 Lavender Haze — light body, dark contrasting header & sidebar */
[data-theme="split-light-lavender"] {
  --primary: #7c4dff;
  --primary-light: #9e7bff;
  --primary-dark: #5e35b1;
  --secondary: #9e7bff;
  --secondary-light: #9e7bff;
  --accent: #7c4dff;
  --accent-light: #9e7bff;
  --bg-gradient-1: #f5f0ff;
  --bg-gradient-2: #e7dbff;
  --bg-gradient-3: #efe8ff;
  --sidebar-bg: rgba(30,10,64, 0.95);
  --sidebar-hover: rgba(255, 255, 255, 0.12);
  --sidebar-active: rgba(255, 255, 255, 0.22);
  --header-bg: rgba(30,10,64, 0.92);
  --btn-primary-bg: linear-gradient(135deg, #1e0a40, #7c4dff);
  --btn-primary-hover: linear-gradient(135deg, #7c4dff, #1e0a40);
  --card-bg: rgba(255, 255, 255, 0.60);
  --card-bg-hover: rgba(255, 255, 255, 0.82);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.10);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.82);
  --text-muted: rgba(26, 26, 46, 0.50);
  --input-bg: rgba(255, 255, 255, 0.70);
  --input-border: rgba(0, 0, 0, 0.15);
  --input-focus: rgba(0, 0, 0, 0.30);
  --input-text: #1a1a2e;
  --input-placeholder: rgba(26, 26, 46, 0.40);
  --table-header-bg: rgba(0, 0, 0, 0.06);
  --table-row-bg: rgba(255, 255, 255, 0.45);
  --table-row-hover: rgba(0, 0, 0, 0.05);
  --table-border: rgba(0, 0, 0, 0.08);
  --scrollbar-track: rgba(0, 0, 0, 0.04);
  --scrollbar-thumb: rgba(0, 0, 0, 0.16);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.30);
  --modal-bg: rgba(255, 255, 255, 0.95);
  --notification-new: rgba(0, 200, 83, 0.10);
}

/* 🍑 Peach Soft — light body, dark contrasting header & sidebar */
[data-theme="split-light-peach"] {
  --primary: #fb8c00;
  --primary-light: #ffb74d;
  --primary-dark: #e65100;
  --secondary: #ffb74d;
  --secondary-light: #ffb74d;
  --accent: #fb8c00;
  --accent-light: #ffb74d;
  --bg-gradient-1: #fff4ec;
  --bg-gradient-2: #ffe2d0;
  --bg-gradient-3: #ffeee2;
  --sidebar-bg: rgba(58,28,8, 0.95);
  --sidebar-hover: rgba(255, 255, 255, 0.12);
  --sidebar-active: rgba(255, 255, 255, 0.22);
  --header-bg: rgba(58,28,8, 0.92);
  --btn-primary-bg: linear-gradient(135deg, #3a1c08, #fb8c00);
  --btn-primary-hover: linear-gradient(135deg, #fb8c00, #3a1c08);
  --card-bg: rgba(255, 255, 255, 0.60);
  --card-bg-hover: rgba(255, 255, 255, 0.82);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.10);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.82);
  --text-muted: rgba(26, 26, 46, 0.50);
  --input-bg: rgba(255, 255, 255, 0.70);
  --input-border: rgba(0, 0, 0, 0.15);
  --input-focus: rgba(0, 0, 0, 0.30);
  --input-text: #1a1a2e;
  --input-placeholder: rgba(26, 26, 46, 0.40);
  --table-header-bg: rgba(0, 0, 0, 0.06);
  --table-row-bg: rgba(255, 255, 255, 0.45);
  --table-row-hover: rgba(0, 0, 0, 0.05);
  --table-border: rgba(0, 0, 0, 0.08);
  --scrollbar-track: rgba(0, 0, 0, 0.04);
  --scrollbar-thumb: rgba(0, 0, 0, 0.16);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.30);
  --modal-bg: rgba(255, 255, 255, 0.95);
  --notification-new: rgba(0, 200, 83, 0.10);
}

/* 🍋 Lemon Whip — light body, dark contrasting header & sidebar */
[data-theme="split-light-lemon"] {
  --primary: #f9a825;
  --primary-light: #ffca28;
  --primary-dark: #f57f17;
  --secondary: #ffca28;
  --secondary-light: #ffca28;
  --accent: #f9a825;
  --accent-light: #ffca28;
  --bg-gradient-1: #fffceb;
  --bg-gradient-2: #fff1bd;
  --bg-gradient-3: #fff8d8;
  --sidebar-bg: rgba(42,38,5, 0.95);
  --sidebar-hover: rgba(255, 255, 255, 0.12);
  --sidebar-active: rgba(255, 255, 255, 0.22);
  --header-bg: rgba(42,38,5, 0.92);
  --btn-primary-bg: linear-gradient(135deg, #2a2605, #f9a825);
  --btn-primary-hover: linear-gradient(135deg, #f9a825, #2a2605);
  --card-bg: rgba(255, 255, 255, 0.60);
  --card-bg-hover: rgba(255, 255, 255, 0.82);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.10);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.82);
  --text-muted: rgba(26, 26, 46, 0.50);
  --input-bg: rgba(255, 255, 255, 0.70);
  --input-border: rgba(0, 0, 0, 0.15);
  --input-focus: rgba(0, 0, 0, 0.30);
  --input-text: #1a1a2e;
  --input-placeholder: rgba(26, 26, 46, 0.40);
  --table-header-bg: rgba(0, 0, 0, 0.06);
  --table-row-bg: rgba(255, 255, 255, 0.45);
  --table-row-hover: rgba(0, 0, 0, 0.05);
  --table-border: rgba(0, 0, 0, 0.08);
  --scrollbar-track: rgba(0, 0, 0, 0.04);
  --scrollbar-thumb: rgba(0, 0, 0, 0.16);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.30);
  --modal-bg: rgba(255, 255, 255, 0.95);
  --notification-new: rgba(0, 200, 83, 0.10);
}

/* 💧 Aqua Breeze — light body, dark contrasting header & sidebar */
[data-theme="split-light-aqua"] {
  --primary: #00acc1;
  --primary-light: #4dd0e1;
  --primary-dark: #00838f;
  --secondary: #4dd0e1;
  --secondary-light: #4dd0e1;
  --accent: #00acc1;
  --accent-light: #4dd0e1;
  --bg-gradient-1: #ecfdfe;
  --bg-gradient-2: #cef2f5;
  --bg-gradient-3: #e2f9fb;
  --sidebar-bg: rgba(4,40,46, 0.95);
  --sidebar-hover: rgba(255, 255, 255, 0.12);
  --sidebar-active: rgba(255, 255, 255, 0.22);
  --header-bg: rgba(4,40,46, 0.92);
  --btn-primary-bg: linear-gradient(135deg, #04282e, #00acc1);
  --btn-primary-hover: linear-gradient(135deg, #00acc1, #04282e);
  --card-bg: rgba(255, 255, 255, 0.60);
  --card-bg-hover: rgba(255, 255, 255, 0.82);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.10);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.82);
  --text-muted: rgba(26, 26, 46, 0.50);
  --input-bg: rgba(255, 255, 255, 0.70);
  --input-border: rgba(0, 0, 0, 0.15);
  --input-focus: rgba(0, 0, 0, 0.30);
  --input-text: #1a1a2e;
  --input-placeholder: rgba(26, 26, 46, 0.40);
  --table-header-bg: rgba(0, 0, 0, 0.06);
  --table-row-bg: rgba(255, 255, 255, 0.45);
  --table-row-hover: rgba(0, 0, 0, 0.05);
  --table-border: rgba(0, 0, 0, 0.08);
  --scrollbar-track: rgba(0, 0, 0, 0.04);
  --scrollbar-thumb: rgba(0, 0, 0, 0.16);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.30);
  --modal-bg: rgba(255, 255, 255, 0.95);
  --notification-new: rgba(0, 200, 83, 0.10);
}

/* 🪻 Lilac Slate — light body, dark contrasting header & sidebar */
[data-theme="split-light-slate"] {
  --primary: #5e35b1;
  --primary-light: #7e57c2;
  --primary-dark: #4527a0;
  --secondary: #7e57c2;
  --secondary-light: #7e57c2;
  --accent: #5e35b1;
  --accent-light: #7e57c2;
  --bg-gradient-1: #f3f1f9;
  --bg-gradient-2: #e1ddf0;
  --bg-gradient-3: #ece9f6;
  --sidebar-bg: rgba(28,24,48, 0.95);
  --sidebar-hover: rgba(255, 255, 255, 0.12);
  --sidebar-active: rgba(255, 255, 255, 0.22);
  --header-bg: rgba(28,24,48, 0.92);
  --btn-primary-bg: linear-gradient(135deg, #1c1830, #5e35b1);
  --btn-primary-hover: linear-gradient(135deg, #5e35b1, #1c1830);
  --card-bg: rgba(255, 255, 255, 0.60);
  --card-bg-hover: rgba(255, 255, 255, 0.82);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.10);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.82);
  --text-muted: rgba(26, 26, 46, 0.50);
  --input-bg: rgba(255, 255, 255, 0.70);
  --input-border: rgba(0, 0, 0, 0.15);
  --input-focus: rgba(0, 0, 0, 0.30);
  --input-text: #1a1a2e;
  --input-placeholder: rgba(26, 26, 46, 0.40);
  --table-header-bg: rgba(0, 0, 0, 0.06);
  --table-row-bg: rgba(255, 255, 255, 0.45);
  --table-row-hover: rgba(0, 0, 0, 0.05);
  --table-border: rgba(0, 0, 0, 0.08);
  --scrollbar-track: rgba(0, 0, 0, 0.04);
  --scrollbar-thumb: rgba(0, 0, 0, 0.16);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.30);
  --modal-bg: rgba(255, 255, 255, 0.95);
  --notification-new: rgba(0, 200, 83, 0.10);
}

/* 🪸 Coral Blush — light body, dark contrasting header & sidebar */
[data-theme="split-light-coral"] {
  --primary: #ff5a5f;
  --primary-light: #ff8a80;
  --primary-dark: #c62828;
  --secondary: #ff8a80;
  --secondary-light: #ff8a80;
  --accent: #ff5a5f;
  --accent-light: #ff8a80;
  --bg-gradient-1: #fff0ee;
  --bg-gradient-2: #ffdbd4;
  --bg-gradient-3: #ffe7e2;
  --sidebar-bg: rgba(58,14,18, 0.95);
  --sidebar-hover: rgba(255, 255, 255, 0.12);
  --sidebar-active: rgba(255, 255, 255, 0.22);
  --header-bg: rgba(58,14,18, 0.92);
  --btn-primary-bg: linear-gradient(135deg, #3a0e12, #ff5a5f);
  --btn-primary-hover: linear-gradient(135deg, #ff5a5f, #3a0e12);
  --card-bg: rgba(255, 255, 255, 0.60);
  --card-bg-hover: rgba(255, 255, 255, 0.82);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.10);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.82);
  --text-muted: rgba(26, 26, 46, 0.50);
  --input-bg: rgba(255, 255, 255, 0.70);
  --input-border: rgba(0, 0, 0, 0.15);
  --input-focus: rgba(0, 0, 0, 0.30);
  --input-text: #1a1a2e;
  --input-placeholder: rgba(26, 26, 46, 0.40);
  --table-header-bg: rgba(0, 0, 0, 0.06);
  --table-row-bg: rgba(255, 255, 255, 0.45);
  --table-row-hover: rgba(0, 0, 0, 0.05);
  --table-border: rgba(0, 0, 0, 0.08);
  --scrollbar-track: rgba(0, 0, 0, 0.04);
  --scrollbar-thumb: rgba(0, 0, 0, 0.16);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.30);
  --modal-bg: rgba(255, 255, 255, 0.95);
  --notification-new: rgba(0, 200, 83, 0.10);
}

/* 🌿 Sage Linen — light body, dark contrasting header & sidebar */
[data-theme="split-light-sage"] {
  --primary: #689f38;
  --primary-light: #9ccc65;
  --primary-dark: #33691e;
  --secondary: #9ccc65;
  --secondary-light: #9ccc65;
  --accent: #689f38;
  --accent-light: #9ccc65;
  --bg-gradient-1: #f3f7ee;
  --bg-gradient-2: #e0ecd1;
  --bg-gradient-3: #ecf3e2;
  --sidebar-bg: rgba(20,38,10, 0.95);
  --sidebar-hover: rgba(255, 255, 255, 0.12);
  --sidebar-active: rgba(255, 255, 255, 0.22);
  --header-bg: rgba(20,38,10, 0.92);
  --btn-primary-bg: linear-gradient(135deg, #14260a, #689f38);
  --btn-primary-hover: linear-gradient(135deg, #689f38, #14260a);
  --card-bg: rgba(255, 255, 255, 0.60);
  --card-bg-hover: rgba(255, 255, 255, 0.82);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.10);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.82);
  --text-muted: rgba(26, 26, 46, 0.50);
  --input-bg: rgba(255, 255, 255, 0.70);
  --input-border: rgba(0, 0, 0, 0.15);
  --input-focus: rgba(0, 0, 0, 0.30);
  --input-text: #1a1a2e;
  --input-placeholder: rgba(26, 26, 46, 0.40);
  --table-header-bg: rgba(0, 0, 0, 0.06);
  --table-row-bg: rgba(255, 255, 255, 0.45);
  --table-row-hover: rgba(0, 0, 0, 0.05);
  --table-border: rgba(0, 0, 0, 0.08);
  --scrollbar-track: rgba(0, 0, 0, 0.04);
  --scrollbar-thumb: rgba(0, 0, 0, 0.16);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.30);
  --modal-bg: rgba(255, 255, 255, 0.95);
  --notification-new: rgba(0, 200, 83, 0.10);
}

/* Split-light themes: header & sidebar use light text on their dark chrome */
[data-theme^="split-light-"] .app-header,
[data-theme^="split-light-"] .app-sidebar {
  color: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.88);
  --text-muted: rgba(255, 255, 255, 0.60);
  --glass-border: rgba(255, 255, 255, 0.16);
  --modal-bg: rgba(22, 24, 44, 0.97);
}

/* ============================================================
   MORE COLOURFUL BACKGROUND TEXTURES
   ============================================================ */

/* 🔴 Polka Pop */
[data-texture="polka-pop"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='6' fill='rgba(255,80,90,0.30)'/%3E%3Ccircle cx='36' cy='30' r='6' fill='rgba(70,160,255,0.30)'/%3E%3Ccircle cx='20' cy='38' r='4' fill='rgba(255,190,40,0.30)'/%3E%3C/svg%3E");
}

/* ⚡ Color Zigzag */
[data-texture="zigzag-color"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='80' height='30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 22 L10 8 L20 22 L30 8 L40 22 L50 8 L60 22 L70 8 L80 22' fill='none' stroke='rgba(255,90,140,0.28)' stroke-width='3'/%3E%3Cpath d='M0 28 L10 14 L20 28 L30 14 L40 28 L50 14 L60 28 L70 14 L80 28' fill='none' stroke='rgba(60,190,200,0.24)' stroke-width='3'/%3E%3C/svg%3E");
}

/* 🌺 Color Floral */
[data-texture="floral-color"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='70' height='70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='rgba(255,90,160,0.26)'%3E%3Ccircle cx='20' cy='14' r='4'/%3E%3Ccircle cx='26' cy='20' r='4'/%3E%3Ccircle cx='20' cy='26' r='4'/%3E%3Ccircle cx='14' cy='20' r='4'/%3E%3C/g%3E%3Cg fill='rgba(255,200,50,0.26)'%3E%3Ccircle cx='50' cy='46' r='4'/%3E%3Ccircle cx='56' cy='52' r='4'/%3E%3Ccircle cx='50' cy='58' r='4'/%3E%3Ccircle cx='44' cy='52' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

/* 🏁 Color Checker */
[data-texture="checker-color"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' width='20' height='20' fill='rgba(120,90,255,0.16)'/%3E%3Crect x='20' y='20' width='20' height='20' fill='rgba(255,120,80,0.16)'/%3E%3C/svg%3E");
}

/* 🎈 Balloons */
[data-texture="balloons"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='70' height='90' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='18' cy='22' rx='9' ry='12' fill='rgba(255,80,110,0.24)'/%3E%3Cpath d='M18 34 L18 50' stroke='rgba(255,255,255,0.18)' stroke-width='1'/%3E%3Cellipse cx='48' cy='40' rx='9' ry='12' fill='rgba(80,170,255,0.24)'/%3E%3Cpath d='M48 52 L48 68' stroke='rgba(255,255,255,0.18)' stroke-width='1'/%3E%3C/svg%3E");
}

/* ⭐ Color Stars */
[data-texture="stars-color"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='64' height='64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 6 L18 13 L25 13 L19 17 L21 24 L16 20 L11 24 L13 17 L7 13 L14 13 Z' fill='rgba(255,205,50,0.30)'/%3E%3Cpath d='M46 34 L48 41 L55 41 L49 45 L51 52 L46 48 L41 52 L43 45 L37 41 L44 41 Z' fill='rgba(120,160,255,0.28)'/%3E%3C/svg%3E");
}

/* 🌊 Color Waves */
[data-texture="waves-color"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='90' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 14 Q22 2 45 14 T90 14' fill='none' stroke='rgba(40,180,220,0.26)' stroke-width='3'/%3E%3Cpath d='M0 28 Q22 16 45 28 T90 28' fill='none' stroke='rgba(120,90,255,0.22)' stroke-width='3'/%3E%3C/svg%3E");
}

/* ⬡ Color Hex */
[data-texture="hex-color"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='56' height='64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 4 L26 4 L32 14 L26 24 L14 24 L8 14 Z' fill='none' stroke='rgba(0,200,180,0.28)' stroke-width='2'/%3E%3Cpath d='M30 34 L42 34 L48 44 L42 54 L30 54 L24 44 Z' fill='none' stroke='rgba(255,120,200,0.26)' stroke-width='2'/%3E%3C/svg%3E");
}

/* 🌸 Petals */
[data-texture="petals"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 14 Q38 22 30 30 Q22 22 30 14 Z' fill='rgba(255,130,180,0.26)'/%3E%3Cpath d='M14 36 Q22 44 14 52 Q6 44 14 36 Z' fill='rgba(180,130,255,0.24)'/%3E%3Cpath d='M44 38 Q52 46 44 54 Q36 46 44 38 Z' fill='rgba(120,210,160,0.24)'/%3E%3C/svg%3E");
}

/* 🍩 Sprinkles */
[data-texture="sprinkles"] {
  --bg-texture: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='8' y='12' width='10' height='3' rx='1.5' transform='rotate(30 13 13)' fill='rgba(255,90,120,0.30)'/%3E%3Crect x='38' y='20' width='10' height='3' rx='1.5' transform='rotate(-25 43 21)' fill='rgba(70,180,255,0.30)'/%3E%3Crect x='24' y='42' width='10' height='3' rx='1.5' transform='rotate(50 29 43)' fill='rgba(120,210,90,0.30)'/%3E%3Crect x='44' y='46' width='10' height='3' rx='1.5' transform='rotate(-40 49 47)' fill='rgba(255,200,50,0.30)'/%3E%3C/svg%3E");
}

/* ============================================================
   STYLISH HEADER + HEADER/SIDEBAR MENU MODE SWITCH
   ============================================================ */

/* ---- Stylish header polish (theme-aware) ---- */
.app-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 60%),
    var(--header-bg);
  box-shadow: 0 4px 26px rgba(0, 0, 0, 0.22);
  overflow: visible;
}
.app-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--primary-light), transparent);
  opacity: 0.9;
  pointer-events: none;
}
.header-logo { gap: 10px; }
.header-logo img {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.header-logo:hover img { transform: rotate(-6deg) scale(1.08); }
.logo-text {
  font-weight: 800;
  letter-spacing: 0.6px;
  background: linear-gradient(90deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glass pills for the header controls */
.menu-mode-toggle,
.notification-bell,
.profile-btn {
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.notification-bell,
.profile-btn { border-radius: 12px; }
.notification-bell:hover,
.profile-btn:hover { transform: translateY(-2px); }

.menu-mode-toggle {
  display: none; /* desktop-only; shown at >=1025px */
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
}
.menu-mode-toggle:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px) rotate(-4deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

@media (min-width: 1025px) {
  .menu-mode-toggle { display: inline-flex; }

  /* ===== HEADER MENU MODE — horizontal top navigation ===== */
  body[data-menu-mode="header"] .app-sidebar {
    top: var(--header-height);
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    overflow: visible;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: none;
  }
  body[data-menu-mode="header"] .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
  }
  body[data-menu-mode="header"] .sidebar-section-title { display: none; }
  /* hide the bottom spacer (the only class-less div in the nav) */
  body[data-menu-mode="header"] .sidebar-nav > div:not([class]) { display: none; }
  body[data-menu-mode="header"] .sidebar-divider {
    width: 1px;
    height: 24px;
    margin: 0 6px;
    align-self: center;
    background: var(--glass-border);
  }
  body[data-menu-mode="header"] .sidebar-menu-item { position: relative; }
  body[data-menu-mode="header"] .sidebar-nav > .sidebar-menu-item > .sidebar-link {
    white-space: nowrap;
    padding: 8px 12px;
    margin: 0;
    border-radius: 10px;
  }
  body[data-menu-mode="header"] .sidebar-nav > .sidebar-menu-item > .sidebar-link::before {
    display: none;
  }
  body[data-menu-mode="header"] .sidebar-link .submenu-arrow {
    transform: rotate(90deg);
    margin-left: 5px;
    font-size: 0.7rem;
  }

  /* Submenus become floating dropdowns */
  body[data-menu-mode="header"] .sidebar-submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    max-height: none !important;
    overflow: visible;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: var(--sidebar-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
    z-index: 1001;
  }
  body[data-menu-mode="header"] .sidebar-menu-item:hover > .sidebar-submenu,
  body[data-menu-mode="header"] .sidebar-submenu.expanded {
    display: flex;
    animation: ddIn 0.18s ease;
  }
  @keyframes ddIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
  body[data-menu-mode="header"] .sidebar-submenu .sidebar-link {
    padding: 8px 10px;
    border-radius: 8px;
  }

  /* Content sits below the horizontal bar (height measured by JS) */
  body[data-menu-mode="header"] .app-main {
    margin-left: 0;
    margin-top: calc(var(--header-height) + var(--header-nav-height, 54px));
  }
}

/* ============================================================
   GROUPED / NESTED MENU (3 levels) — sidebar accordion + header flyout
   ============================================================ */
/* Vertical accordion: allow nested groups to expand fully + deeper indent */
.sidebar-submenu.expanded { max-height: 1600px; }
.sidebar-submenu .sidebar-submenu .sidebar-link { padding-left: 72px; }

@media (min-width: 1025px) {
  /* Level-1 dropdowns sit flush under the bar (no hover gap) */
  body[data-menu-mode="header"] .sidebar-nav > .sidebar-menu-item > .sidebar-submenu {
    top: 100%;
    left: 0;
  }
  /* Level-2 submenus fly out to the right of their row */
  body[data-menu-mode="header"] .sidebar-submenu .sidebar-submenu {
    top: -8px;
    left: 100%;
    min-width: 200px;
  }
  /* Group rows inside a dropdown: label left, arrow right */
  body[data-menu-mode="header"] .sidebar-submenu .sidebar-menu-item > .sidebar-link {
    display: flex;
    align-items: center;
    width: 100%;
  }
  /* Nested arrows point to the side (flyout), not down */
  body[data-menu-mode="header"] .sidebar-submenu .submenu-arrow {
    transform: rotate(0deg);
    margin-left: auto;
  }
  /* Extras is the right-most group: open its panels toward the left */
  body[data-menu-mode="header"] .sb-group-end > .sidebar-submenu {
    left: auto;
    right: 0;
  }
  body[data-menu-mode="header"] .sb-group-end .sidebar-submenu .sidebar-submenu {
    left: auto;
    right: 100%;
  }
}

/* ============================================================
   HEADER MENU — render INSIDE the header bar, centered, smaller
   ============================================================ */
@media (min-width: 1025px) {
  body[data-menu-mode="header"] .app-sidebar {
    top: 0;                          /* overlay the header row, not a separate bar */
    left: 50%;
    right: auto;
    transform: translateX(-50%);     /* center-only: never over logo or profile */
    width: max-content;
    max-width: calc(100vw - 480px);
    height: var(--header-height);
    background: transparent;
    backdrop-filter: none;           /* don't blur the logo / buttons beneath */
    -webkit-backdrop-filter: none;
    filter: none;
    border: none;
    box-shadow: none;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    pointer-events: none;            /* let logo / profile stay clickable */
  }
  /* Keep the header's own controls above the centered menu overlay */
  body[data-menu-mode="header"] .header-left,
  body[data-menu-mode="header"] .header-right {
    position: relative;
    z-index: 1002;
  }
  body[data-menu-mode="header"] .sidebar-nav {
    pointer-events: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    padding: 0;
    max-width: calc(100vw - 440px); /* keep clear of logo & profile */
  }
  /* Top-level items fill header height so dropdowns anchor at its bottom */
  body[data-menu-mode="header"] .sidebar-nav > .sidebar-menu-item {
    height: var(--header-height);
    display: flex;
    align-items: center;
  }
  body[data-menu-mode="header"] .sidebar-nav > .sidebar-menu-item > .sidebar-link {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
  body[data-menu-mode="header"] .sidebar-nav > .sidebar-menu-item > .sidebar-link i:first-child {
    font-size: 0.85rem;
  }
  body[data-menu-mode="header"] .sidebar-nav > .sidebar-menu-item > .sidebar-link .submenu-arrow {
    font-size: 0.6rem;
    margin-left: 3px;
  }
  /* Smaller dropdown / flyout labels too */
  body[data-menu-mode="header"] .sidebar-submenu .sidebar-link {
    font-size: 0.8rem;
  }
  /* Content sits directly under the header (no extra bar height) */
  body[data-menu-mode="header"] .app-main {
    margin-left: 0;
    margin-top: var(--header-height);
  }
}

/* ============================================================
   HOME 3D SQUARE IMAGE SLIDER (center-focused, animated)
   ============================================================ */
.home-slider-card { background: transparent; border: none; box-shadow: none; }
.home-slider { padding: 28px 0 8px; overflow: visible; }
.home-slider .carousel-3d-wrapper {
  perspective: 1600px;
  min-height: 400px;
}

/* Square cards */
.home-slider .carousel-3d-item {
  width: clamp(220px, 40vw, 340px);
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  background: var(--glass-bg-strong);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  transition: transform 0.6s cubic-bezier(0.34, 1.3, 0.5, 1), opacity 0.6s ease, box-shadow 0.5s ease;
}
.home-slider .carousel-3d-item .slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dramatic coverflow positions (override the generic ones) */
.home-slider .carousel-3d-item.center {
  transform: translateX(0) scale(1.06) rotateY(0deg);
  opacity: 1;
  z-index: 6;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), 0 0 0 2px var(--accent);
}
.home-slider .carousel-3d-item.left-1 {
  transform: translateX(-60%) scale(0.82) rotateY(40deg);
  opacity: 0.82;
  z-index: 5;
}
.home-slider .carousel-3d-item.right-1 {
  transform: translateX(60%) scale(0.82) rotateY(-40deg);
  opacity: 0.82;
  z-index: 5;
}
.home-slider .carousel-3d-item.left-2 {
  transform: translateX(-108%) scale(0.64) rotateY(50deg);
  opacity: 0.45;
  z-index: 4;
}
.home-slider .carousel-3d-item.right-2 {
  transform: translateX(108%) scale(0.64) rotateY(-50deg);
  opacity: 0.45;
  z-index: 4;
}
.home-slider .carousel-3d-item.hidden-item {
  transform: scale(0.4);
  opacity: 0;
  z-index: 0;
}

/* Hover lift on the focused card */
.home-slider .carousel-3d-item.center:hover {
  transform: translateX(0) scale(1.09) rotateY(0deg) translateY(-6px);
}

/* ---- Dynamic animations (focused card only) ---- */
.home-slider .carousel-3d-item.center .slide-img {
  animation: homeKenburns 9s ease-in-out infinite alternate;
}
@keyframes homeKenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(-2%, -2%); }
}

/* sweeping shine */
.home-slider .slide-shine {
  position: absolute;
  top: -60%;
  left: -75%;
  width: 60%;
  height: 220%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(8deg);
  opacity: 0;
  pointer-events: none;
}
.home-slider .carousel-3d-item.center .slide-shine {
  animation: homeShine 4.5s ease-in-out 0.4s infinite;
}
@keyframes homeShine {
  0% { left: -75%; opacity: 0; }
  18% { opacity: 0.9; }
  45%, 100% { left: 130%; opacity: 0; }
}

/* pulsing accent glow ring */
.home-slider .slide-ring {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--accent);
  opacity: 0;
}
.home-slider .carousel-3d-item.center .slide-ring {
  animation: homeRing 2.8s ease-in-out infinite;
}
@keyframes homeRing {
  0%, 100% { box-shadow: inset 0 0 20px 1px rgba(255, 255, 255, 0.05), 0 0 18px -4px var(--accent); opacity: 0.6; }
  50% { box-shadow: inset 0 0 26px 2px rgba(255, 255, 255, 0.12), 0 0 34px 2px var(--accent); opacity: 1; }
}

/* gentle entrance for the whole slider */
.home-slider .carousel-3d-item.center {
  animation: homeFloat 6s ease-in-out infinite;
}
@keyframes homeFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

/* Empty state card */
.home-slider .slide-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--glass-bg);
}
.home-slider .slide-empty i { font-size: 2.4rem; opacity: 0.4; }

/* Stylish dots */
.home-slider .carousel-3d-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--glass-border);
  transition: all 0.3s ease;
  cursor: pointer;
}
.home-slider .carousel-3d-dot.active {
  width: 26px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
}

@media (max-width: 640px) {
  .home-slider .carousel-3d-item { width: clamp(180px, 64vw, 240px); }
  .home-slider .carousel-3d-wrapper { min-height: 320px; }
}

/* ============================================================
   HEADER MENU as a real header child (no overlay → no blur)
   ============================================================ */
@media (min-width: 1025px) {
  /* In header mode the nav is moved into the header; hide the empty shell */
  body[data-menu-mode="header"] .app-sidebar { display: none; }

  .app-header.header-menu-active {
    gap: 14px;
  }
  .app-header.header-menu-active .sidebar-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
    pointer-events: auto;
    overflow: visible;
  }
  /* let the menu row scroll horizontally if a long company name squeezes it */
  .app-header.header-menu-active .sidebar-nav {
    scrollbar-width: none;
  }
  .app-header.header-menu-active .header-left { flex: 0 0 auto; }
  .app-header.header-menu-active .header-right { flex: 0 0 auto; }
}

/* ============================================================
   FIX: home 3D slider overflowing its card on smaller screens
   ============================================================ */
@media (max-width: 1024px) {
  .home-slider {
    overflow: hidden;          /* clip the 3D side cards to the card */
    padding: 22px 0 6px;
  }
  .home-slider .carousel-3d-wrapper { min-height: 340px; }
  .home-slider .carousel-3d-item { width: clamp(190px, 56vw, 260px); }
  /* pull the side cards in a little so they peek instead of spilling */
  .home-slider .carousel-3d-item.left-1  { transform: translateX(-52%) scale(0.8) rotateY(36deg); }
  .home-slider .carousel-3d-item.right-1 { transform: translateX(52%) scale(0.8) rotateY(-36deg); }
  .home-slider .carousel-3d-item.left-2,
  .home-slider .carousel-3d-item.right-2 { opacity: 0; }
}

/* ============================================================
   BOTTOM DOCK — small half-circle handle at the very bottom edge
   ============================================================ */
.bottom-dock {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  gap: 0;
}
.dock-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-bottom: -23px;            /* bottom half sits below the page edge */
  align-items: flex-start;
  padding-top: 5px;
  font-size: 0.78rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}
.dock-toggle:hover { transform: scale(1.06); background: var(--glass-bg); }
.dock-menu {
  margin-bottom: 30px;             /* float clearly above the half-circle */
  gap: 6px;
  padding: 8px 12px;
}
.dock-item { width: 38px; height: 38px; border-radius: 11px; font-size: 0.9rem; }

@media (max-width: 768px) {
  .dock-toggle { width: 42px; height: 42px; margin-bottom: -21px; }
  .dock-menu { margin-bottom: 28px; gap: 5px; padding: 7px 10px; }
  .dock-item { width: 34px; height: 34px; border-radius: 10px; font-size: 0.82rem; }
}

/* ============================================================
   68. ROYAL ATELIER — LUXURY UI/UX LAYER (Senco Gold & Diamonds)
   Champagne gold · velvet espresso · ivory silk · serif display
   Appended last: overrides earlier component styling globally.
   ============================================================ */

/* ---------- 68.1 Typography foundation ---------- */
body {
  font-family: var(--font-family);
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body h1, body h2, body h3, body h4,
body .page-title,
body .section-title,
body .login-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.015em;
}

/* Eyebrow utility — small uppercase gold labels */
body .form-group label,
body .tile-label,
body .info-label,
body .stat-label {
  font-family: var(--font-family);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* ---------- 68.2 Page titles — serif with gold rule ---------- */
body .page-title {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.15;
  padding-bottom: 12px;
  margin-bottom: 10px;
  position: relative;
}
body .page-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 2px;
  background: var(--metal-grad);
  border-radius: 2px;
}
body .page-title i {
  color: var(--primary);
  font-size: 0.72em;
  opacity: 0.9;
}
body .page-subtitle {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

body .section-title {
  font-size: 1.28rem;
  font-weight: 600;
}
body .section-title i {
  color: var(--primary);
  font-size: 0.82em;
}

/* ---------- 68.3 Cards — gold hairline + light-catch sheen ---------- */
body .glass-card,
body .glass-card-static,
body .table-container,
body .info-tile {
  border-color: var(--card-border);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(241, 218, 154, 0.1);
}
body .glass-card::before,
body .glass-card-static::before,
body .table-container::before {
  height: 1px;
  background: var(--gold-sheen);
  opacity: 0.8;
}
body .glass-card:hover {
  border-color: var(--gold-hairline);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(217, 178, 95, 0.12),
    inset 0 1px 0 rgba(241, 218, 154, 0.14);
}

/* ---------- 68.4 Header — boutique nameplate ---------- */
body .app-header {
  border-bottom: 1px solid var(--gold-hairline);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
}
body .logo-text {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  background: linear-gradient(100deg, var(--text-primary) 10%, var(--accent-light) 45%, var(--primary) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body .menu-mode-toggle,
body .notification-bell,
body .profile-btn,
body .hamburger-btn {
  border-color: rgba(217, 178, 95, 0.22);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
body .menu-mode-toggle:hover,
body .notification-bell:hover,
body .profile-btn:hover {
  border-color: var(--gold-hairline);
  background: rgba(217, 178, 95, 0.1);
}
body .profile-btn img {
  border: 1.5px solid var(--gold-hairline);
}
body .profile-menu {
  border: 1px solid var(--gold-hairline);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

/* ---------- 68.5 Sidebar — gilded index ---------- */
body .app-sidebar {
  border-right: 1px solid rgba(217, 178, 95, 0.18);
}
body .sidebar-link {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  min-height: 44px;               /* comfortable touch target */
  border-left: 2px solid transparent;
}
body .sidebar-link:hover {
  border-left-color: rgba(217, 178, 95, 0.5);
}
body .sidebar-link.active {
  border-left-color: var(--primary);
  color: var(--accent-light);
}
body .sidebar-link.active i {
  color: var(--primary);
}
body .sidebar-link i {
  transition: color 0.25s ease;
}

/* ---------- 68.6 Buttons — engraved metal ---------- */
body .btn {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-radius: 7px;
  padding: 11px 22px;
}
body .btn-sm { padding: 7px 14px; font-size: 0.68rem; }
body .btn-lg { padding: 14px 30px; font-size: 0.84rem; }

/* Gold metal primary — only on the default (Royal Gold) theme,
   so users on other themes keep readable colour pairings. */
body:not([data-theme]) .btn-primary,
body[data-theme="default"] .btn-primary,
body:not([data-theme]) .btn-login,
body[data-theme="default"] .btn-login {
  background: var(--metal-grad);
  background-size: 200% 100%;
  color: var(--text-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  border: none;
  box-shadow:
    0 6px 18px rgba(201, 162, 75, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
body:not([data-theme]) .btn-primary:hover,
body[data-theme="default"] .btn-primary:hover,
body:not([data-theme]) .btn-login:hover,
body[data-theme="default"] .btn-login:hover {
  background-position: 100% 0;
  box-shadow:
    0 10px 26px rgba(217, 178, 95, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
body:not([data-theme]) .btn-primary i,
body[data-theme="default"] .btn-primary i {
  color: inherit;
}

body .btn-glass,
body .btn-outline {
  border: 1px solid var(--gold-hairline);
  color: var(--text-primary);
  background: rgba(217, 178, 95, 0.06);
}
body .btn-glass:hover,
body .btn-outline:hover {
  background: rgba(217, 178, 95, 0.14);
  border-color: var(--accent-light);
}

/* ---------- 68.7 Forms — jeweller's precision ---------- */
body .form-control,
body .combo-input,
body select.form-control,
body textarea.form-control {
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  font-family: var(--font-family);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
body .form-control:focus,
body .combo-input:focus,
body textarea.form-control:focus,
body select.form-control:focus {
  border-color: var(--input-focus);
  background: rgba(255, 246, 224, 0.09);
  box-shadow: 0 0 0 3px rgba(217, 178, 95, 0.18);
  outline: none;
}
body .form-group {
  margin-bottom: 18px;
}
body .input-icon {
  color: var(--primary);
  opacity: 0.75;
}

/* Select2 to match */
body .select2-container--default .select2-selection--single,
body .select2-container--default .select2-selection--multiple {
  background: var(--input-bg) !important;
  border: 1px solid var(--input-border) !important;
  border-radius: 8px !important;
  color: var(--input-text) !important;
}
body .select2-container--default.select2-container--focus .select2-selection--single,
body .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--input-focus) !important;
  box-shadow: 0 0 0 3px rgba(217, 178, 95, 0.18) !important;
}
body .select2-dropdown {
  background: var(--modal-bg) !important;
  border: 1px solid var(--gold-hairline) !important;
  border-radius: 10px !important;
  overflow: hidden;
}
body .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: rgba(217, 178, 95, 0.22) !important;
  color: var(--text-primary) !important;
}

/* ---------- 68.8 Tables — ledger of the house ---------- */
body .glass-table th,
body table th {
  font-family: var(--font-family);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-light);
  border-bottom: 1px solid var(--gold-hairline);
  white-space: nowrap;
}
body .glass-table td {
  font-size: 0.86rem;
  border-bottom: 1px solid var(--table-border);
}
body .glass-table tbody tr {
  transition: background 0.2s ease;
}
body .glass-table tbody tr:hover td {
  background: var(--table-row-hover);
}
/* Sticky headers inside scrollable tables — big UX win on long lists */
body .table-scroll {
  max-height: 72vh;
}
body .table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(24, 19, 12, 0.96);
  backdrop-filter: blur(10px);
}
body .table-total-bar {
  border-top: 1px solid var(--gold-hairline);
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

/* ---------- 68.9 Badges — enamel pills ---------- */
body .badge-primary, body .badge-success, body .badge-danger,
body .badge-warning, body .badge-info {
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
}
body .badge-primary { color: var(--accent-light); background: rgba(217, 178, 95, 0.1); }
body .badge-success { color: #6fd8ab; background: rgba(51, 181, 127, 0.1); }
body .badge-danger  { color: #f09a9a; background: rgba(224, 82, 82, 0.1); }
body .badge-warning { color: #f0cc86; background: rgba(228, 176, 74, 0.1); }
body .badge-info    { color: #a3bff5; background: rgba(91, 141, 239, 0.1); }

/* ---------- 68.10 Tabs — gold thread underline ---------- */
body .glass-tabs {
  background: transparent;
  border-bottom: 1px solid var(--table-border);
  border-radius: 0;
  padding: 0;
  gap: 2px;
}
body .glass-tab {
  border-radius: 8px 8px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  position: relative;
  min-height: 44px;
}
body .glass-tab::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--metal-grad);
  opacity: 0;
  transition: opacity 0.25s ease;
}
body .glass-tab:hover { color: var(--text-primary); }
body .glass-tab.active {
  background: rgba(217, 178, 95, 0.08);
  color: var(--accent-light);
}
body .glass-tab.active::after { opacity: 1; }

/* ---------- 68.11 Tiles — showcase pieces ---------- */
body .shortcut-tile {
  border-color: rgba(217, 178, 95, 0.2);
}
body .shortcut-tile:hover {
  border-color: var(--gold-hairline);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(217, 178, 95, 0.15);
}
body .shortcut-tile i {
  color: var(--primary);
}
body .info-tile .tile-value,
body .info-tile h2,
body .info-tile h3,
body .score-tile .score-value,
body .counter-value {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: lining-nums;
}
body .info-tile:hover {
  border-color: var(--gold-hairline);
}

/* ---------- 68.12 Progress — molten gold fill ---------- */
body .progress-bar-bg {
  background: rgba(255, 246, 224, 0.07);
  border: 1px solid rgba(217, 178, 95, 0.15);
  border-radius: 999px;
  overflow: hidden;
}
body:not([data-theme]) .progress-bar-fill,
body[data-theme="default"] .progress-bar-fill {
  background: var(--metal-grad);
  box-shadow: 0 0 12px rgba(217, 178, 95, 0.45);
}

/* ---------- 68.13 Login — the vitrine ---------- */
body .login-card {
  max-width: 430px;
  border: 1px solid var(--gold-hairline);
  border-radius: 18px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(217, 178, 95, 0.08),
    inset 0 1px 0 rgba(241, 218, 154, 0.14);
}
body .login-card::after {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: var(--gold-sheen);
}
body .login-card h2 {
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  background: linear-gradient(100deg, var(--text-primary) 15%, var(--accent-light) 50%, var(--primary) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
body .login-subtitle {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 28px;
  position: relative;
}
body .login-subtitle::before,
body .login-subtitle::after {
  content: '';
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--gold-hairline);
  vertical-align: middle;
  margin: 0 10px;
}
body .btn-login {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  border-radius: 8px;
}

/* ---------- 68.14 Dock — polished tray ---------- */
body .bottom-dock .dock-item {
  border-color: rgba(217, 178, 95, 0.22);
}
body .bottom-dock .dock-item:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  box-shadow: 0 6px 16px rgba(217, 178, 95, 0.25);
}
body .dock-toggle {
  border: 1px solid var(--gold-hairline);
}

/* ---------- 68.15 Modals & SweetAlert — velvet trays ---------- */
body .swal2-popup {
  background: var(--modal-bg) !important;
  border: 1px solid var(--gold-hairline) !important;
  border-radius: 16px !important;
  color: var(--text-primary) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6) !important;
}
body .swal2-title {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: var(--text-primary) !important;
}
body .swal2-html-container { color: var(--text-secondary) !important; }
body .swal2-confirm {
  background: var(--metal-grad) !important;
  color: var(--text-dark) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-size: 0.76rem !important;
  border-radius: 7px !important;
  box-shadow: 0 6px 18px rgba(201, 162, 75, 0.3) !important;
}
body .swal2-cancel {
  background: transparent !important;
  border: 1px solid var(--gold-hairline) !important;
  color: var(--text-primary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-size: 0.76rem !important;
  border-radius: 7px !important;
}
body .filter-modal .glass-card,
body .cl-modal {
  border: 1px solid var(--gold-hairline);
}

/* ---------- 68.16 Notification panel & chat ---------- */
body .notification-panel {
  border-left: 1px solid var(--gold-hairline);
}
body .chat-message.own .chat-bubble,
body .chat-bubble.own {
  background: rgba(217, 178, 95, 0.16);
  border: 1px solid rgba(217, 178, 95, 0.3);
}

/* ---------- 68.17 Empty states — an invitation, not a void ---------- */
body .empty-state {
  padding: 56px 24px;
  color: var(--text-muted);
}
body .empty-state i {
  color: var(--primary);
  opacity: 0.5;
}

/* ---------- 68.18 Accessibility & interaction quality ---------- */
body a:focus-visible,
body button:focus-visible,
body .btn:focus-visible,
body .form-control:focus-visible,
body .sidebar-link:focus-visible,
body .dock-item:focus-visible,
body .glass-tab:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: 6px;
}
body ::selection {
  background: rgba(217, 178, 95, 0.35);
  color: var(--text-primary);
}

/* ---------- 68.19 Responsive refinements ---------- */
@media (max-width: 768px) {
  body .page-title { font-size: 1.5rem; }
  body .glass-tab { padding: 10px 14px; }
  body .glass-card,
  body .glass-card-static { padding: 18px; }
  body .table-scroll { max-height: none; }
  body .logo-text { letter-spacing: 0.14em; font-size: 1.05rem; }
}
@media (max-width: 480px) {
  body .page-title { font-size: 1.32rem; }
  body .form-control { font-size: 16px; } /* prevents iOS zoom-on-focus */
}

/* ---------- 68.20 Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body .btn::before { display: none; }
  body .glass-card:hover,
  body .btn:hover { transform: none; }
}

/* ============================================================
   69. TABLE SYSTEM v2 — compact rows, zebra, pagination,
       clipped long-text columns · COUNTER TILE SLIDER ·
       MOBILE COMPACTION
   ============================================================ */

/* ---------- 69.1 Compact table rows ---------- */
body .glass-table thead th {
  padding: 8px 12px;
}
body .glass-table tbody td,
body .glass-table td {
  padding: 6px 12px;
  font-size: 0.8rem;
  line-height: 1.35;
}
body .glass-table .table-profile-photo {
  width: 26px;
  height: 26px;
}
body .glass-table .btn-sm,
body .glass-table .btn-icon {
  padding: 4px 9px;
  font-size: 0.62rem;
}

/* ---------- 69.2 Zebra striping (JS-applied, filter/sort aware) ---------- */
body .glass-table tbody tr.row-alt td {
  background: rgba(247, 241, 227, 0.05);
}
body .glass-table tbody tr:hover td,
body .glass-table tbody tr.row-alt:hover td {
  background: var(--table-row-hover);
}

/* ---------- 69.3 Pagination bar ---------- */
tr.pg-hidden { display: none !important; }

body .tbl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 16px;
  border-top: 1px solid var(--table-border);
}
body .tbl-page-btn {
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 7px;
  border: 1px solid rgba(217, 178, 95, 0.25);
  background: rgba(255, 246, 224, 0.04);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}
body .tbl-page-btn:hover:not(:disabled) {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: rgba(217, 178, 95, 0.1);
}
body .tbl-page-btn.active {
  background: var(--metal-grad);
  color: var(--text-dark);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(201, 162, 75, 0.3);
}
body .tbl-page-btn:disabled:not(.active) {
  opacity: 0.35;
  cursor: default;
}
body .tbl-page-dots {
  color: var(--text-muted);
  padding: 0 2px;
  font-size: 0.8rem;
}
body .tbl-page-info {
  flex-basis: 100%;
  text-align: center;
  margin-top: 6px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ---------- 69.4 Fixed-width remarks / long-text cells ---------- */
body .glass-table td.col-clip {
  width: 200px;
  max-width: 200px;
}
body .glass-table td.cell-long {
  max-width: 220px;
}
body .glass-table td.cell-long .cell-clip-text {
  display: inline-block;
  max-width: 168px; /* px: auto-layout table cells ignore %-based clipping */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
body .cell-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 6px;
  border: 1px solid rgba(217, 178, 95, 0.3);
  background: rgba(217, 178, 95, 0.08);
  color: var(--primary);
  font-size: 0.62rem;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.2s ease;
}
body .cell-view-btn:hover {
  background: rgba(217, 178, 95, 0.22);
  color: var(--accent-light);
  border-color: var(--accent-light);
}

/* ---------- 69.5 Counter Achievement — blurred tiles in a slider ---------- */
body .counter-tiles-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  box-shadow: inset 0 1px 0 rgba(241, 218, 154, 0.08);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
body .counter-tiles-grid::-webkit-scrollbar { height: 6px; }
body .counter-tiles-grid::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}
body .counter-tile {
  flex: 0 0 300px;
  scroll-snap-align: start;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  background: rgba(255, 246, 224, 0.07);
  border: 1px solid rgba(217, 178, 95, 0.28);
}
body .counter-tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold-hairline);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(217, 178, 95, 0.12);
}
body .counter-stat {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- 69.6 Mobile compaction ---------- */
@media (max-width: 768px) {
  /* buttons sized like other controls, not taller */
  body .btn {
    min-height: 0;
    padding: 8px 13px;
    font-size: 0.66rem;
    letter-spacing: 0.07em;
  }
  body .btn-sm { padding: 5px 9px; font-size: 0.6rem; }
  body .btn-lg { padding: 10px 18px; font-size: 0.74rem; }
  body .glass-tab { min-height: 0; padding: 9px 12px; font-size: 0.66rem; }

  /* tighter spacing & padding everywhere */
  body .app-main { padding: 12px 10px calc(var(--dock-height) + 26px); }
  body .glass-card,
  body .glass-card-static { padding: 13px; }
  body .section-header { margin-bottom: 12px; }
  body .section-title { font-size: 1.08rem; }
  body .form-group { margin-bottom: 12px; }
  body .form-control { padding: 9px 12px; }
  body .page-title { font-size: 1.32rem; padding-bottom: 8px; margin-bottom: 5px; }
  body .page-subtitle { margin-bottom: 14px; }
  body .table-toolbar { padding: 9px 11px; }
  body .info-tile { padding: 13px; min-height: 92px; }
  body .shortcut-tile { padding: 13px 9px; }
  body .glass-tabs { margin-bottom: 13px; }
  body .glass-table thead th { padding: 7px 9px; }
  body .glass-table tbody td,
  body .glass-table td { padding: 5px 9px; font-size: 0.74rem; }
  body .glass-table td.col-clip,
  body .glass-table td.cell-long { max-width: 150px; width: 150px; }
  body .glass-table td.cell-long .cell-clip-text { max-width: 118px; }
  body .counter-tile { flex-basis: 82%; }
  body .counter-tiles-grid { padding: 11px; gap: 10px; }
  body .tbl-pagination { padding: 10px; gap: 4px; }
  body .tbl-page-btn { min-width: 30px; height: 28px; font-size: 0.64rem; }
}
