/* ============================================================
   Employee Leave & Performance Management Portal
   Single CSS File - style.css
   Glassmorphism | Tailwind-inspired | Bootstrap Enhanced
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES & THEME SYSTEM
   ============================================================ */
:root {
  /* Default Theme - Ubuntu Aubergine */
  --primary: #772953;
  --primary-light: #a63d6f;
  --primary-dark: #5e1f42;
  --secondary: #df4a16;
  --secondary-light: #e8714a;
  --accent: #e95420;
  --accent-light: #f0764a;
  --bg-gradient-1: #2c001e;
  --bg-gradient-2: #772953;
  --bg-gradient-3: #a63d6f;
  --sidebar-bg: rgba(44, 0, 30, 0.85);
  --sidebar-hover: rgba(119, 41, 83, 0.6);
  --sidebar-active: rgba(166, 61, 111, 0.7);
  --header-bg: rgba(44, 0, 30, 0.75);
  --card-bg: rgba(255, 255, 255, 0.12);
  --card-bg-hover: rgba(255, 255, 255, 0.18);
  --card-border: rgba(255, 255, 255, 0.2);
  --card-shadow: rgba(0, 0, 0, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-bg-strong: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  --glass-blur: blur(16px);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-dark: #1a1a2e;
  --input-bg: rgba(255, 255, 255, 0.12);
  --input-border: rgba(255, 255, 255, 0.3);
  --input-focus: rgba(255, 255, 255, 0.4);
  --input-text: #ffffff;
  --input-placeholder: rgba(255, 255, 255, 0.5);
  --btn-primary-bg: linear-gradient(135deg, var(--primary), var(--accent));
  --btn-primary-hover: linear-gradient(135deg, var(--accent), var(--primary));
  --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(255, 255, 255, 0.15);
  --table-row-bg: rgba(255, 255, 255, 0.05);
  --table-row-hover: rgba(255, 255, 255, 0.12);
  --table-border: rgba(255, 255, 255, 0.1);
  --scrollbar-track: rgba(255, 255, 255, 0.05);
  --scrollbar-thumb: rgba(255, 255, 255, 0.25);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.4);
  --success: #00c853;
  --danger: #ff1744;
  --warning: #ffc107;
  --info: #2196f3;
  --modal-overlay: rgba(0, 0, 0, 0.6);
  --modal-bg: rgba(30, 30, 60, 0.9);
  --notification-new: rgba(0, 200, 83, 0.15);
  --badge-bg: #ff1744;
  --sidebar-width: 260px;
  --sidebar-collapsed: 70px;
  --header-height: 64px;
  --dock-height: 60px;
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-xs: 6px;
  --transition-speed: 0.3s;
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --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);
}

/* ============================================================
   3. BACKGROUND TEXTURES (10 Options)
   ============================================================ */
[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.07)'/%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.07)' 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.07)' 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.07)' 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.07)' 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.07)' 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.07)' 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.07)' 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.07)' 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);
}

/* ============================================================
   18. NOTICE CAROUSEL
   ============================================================ */
.notice-carousel-item {
  width: 100%;
  padding: 24px;
  border-radius: var(--border-radius);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.5s ease;
}

.notice-carousel-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.notice-carousel-item p {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.5;
}

.notice-carousel-item .notice-date {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 10px;
}

/* ============================================================
   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;
}

/* ============================================================
   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;
}

.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;
}

.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
   ============================================================ */