/* ==========================================================================
   SmartAttend - Ultra-Modern Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.8);
  --bg-input: #1e293b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);

  /* Accents */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #8b5cf6;
  --accent-cyan: #06b6d4;

  /* Status Colors */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.15);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Shadows & Glass */
  --glass-blur: blur(16px);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.12) 0%, transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: #fff;
}

/* ==========================================================================
   Layout & Grid
   ========================================================================== */

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

.page-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: var(--transition);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.brand-text h2 {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-item a i {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
}

.nav-item.active a,
.nav-item a:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
  color: #fff;
  border-left: 3px solid var(--primary);
}

.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.5);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.user-info {
  flex: 1;
  min-width: 0;
}
.user-info .name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-info .role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Header Navbar */
.top-header {
  height: 70px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: var(--glass-blur);
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-title h1 {
  font-size: 1.4rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   UI Components (Cards, Buttons, Tables, Badges)
   ========================================================================== */

/* Glass Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Stat Card */
.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.stat-icon.primary { background: rgba(99, 102, 241, 0.15); color: var(--primary-light); }
.stat-icon.success { background: var(--success-bg); color: var(--success); }
.stat-icon.warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon.danger  { background: var(--danger-bg); color: var(--danger); }
.stat-icon.info    { background: var(--info-bg); color: var(--info); }

.stat-details h3 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-details p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Grid Layouts */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
  appearance: none;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  padding: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.3); }
.badge-info    { background: var(--info-bg);    color: var(--info);    border: 1px solid rgba(59,130,246,0.3); }
.badge-secondary { background: rgba(255,255,255,0.08); color: var(--text-secondary); }

/* Alerts / Flash Messages */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16,185,129,0.4); }
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239,68,68,0.4); }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(59,130,246,0.4); }

/* ==========================================================================
   Kiosk Scanner HUD Styles
   ========================================================================== */

.kiosk-body {
  background: #050811;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.kiosk-header {
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  z-index: 50;
}

.kiosk-clock {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.kiosk-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  padding: 2rem;
  height: calc(100vh - 75px);
}

@media (max-width: 900px) {
  .kiosk-main {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}

.scanner-viewport-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
  overflow: hidden;
}

.scanner-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

#qr-reader {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}
#qr-reader video {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
}

/* Futuristic Scanline Laser */
.scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), #fff, var(--accent-cyan), transparent);
  box-shadow: 0 0 15px var(--accent-cyan), 0 0 25px var(--accent-cyan);
  animation: scanLaser 2.2s infinite ease-in-out;
  pointer-events: none;
  z-index: 20;
}

@keyframes scanLaser {
  0% { top: 5%; opacity: 0.3; }
  50% { top: 90%; opacity: 1; }
  100% { top: 5%; opacity: 0.3; }
}

.scanner-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 4px solid var(--accent-cyan);
  pointer-events: none;
  z-index: 25;
}
.corner-tl { top: 12px; left: 12px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.corner-tr { top: 12px; right: 12px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.corner-bl { bottom: 12px; left: 12px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.corner-br { bottom: 12px; right: 12px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }

/* Kiosk Result Overlay Modal */
.scan-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scan-modal-card {
  width: 90%;
  max-width: 440px;
  background: #0f172a;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scan-modal.active .scan-modal-card {
  transform: scale(1);
}

.scan-modal-avatar {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  border: 4px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.scan-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   PVC Digital ID Card Styles (with Print Optimization)
   ========================================================================== */

.id-card-wrapper {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
}

.pvc-id-card {
  width: 320px;
  height: 480px;
  background: linear-gradient(160deg, #1e1b4b 0%, #0f172a 60%, #090d16 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.25rem;
  color: #fff;
}

.id-lanyard-hole {
  width: 48px;
  height: 8px;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.id-card-header {
  text-align: center;
  margin-bottom: 1rem;
}
.id-card-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.id-card-header p {
  font-size: 0.7rem;
  color: var(--primary-light);
  text-transform: uppercase;
}

.id-photo-frame {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  border: 3px solid var(--primary-light);
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.id-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.id-user-name {
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.15rem;
}

.id-user-role {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.id-details-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}

.id-qr-box {
  width: 114px;
  height: 114px;
  min-width: 114px;
  min-height: 114px;
  max-width: 114px;
  max-height: 114px;
  aspect-ratio: 1 / 1;
  background: #ffffff !important;
  border-radius: 10px;
  padding: 6px;
  box-sizing: border-box;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  margin: 0 auto;
  overflow: hidden;
}

.id-qr-box img,
.id-qr-box canvas {
  width: 100px !important;
  height: 100px !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  display: block !important;
  margin: 0 auto !important;
  image-rendering: pixelated;
}

/* Print Styles */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .sidebar, .top-header, .btn, .no-print, .app-bottom-nav, .format-tabs-bar {
    display: none !important;
  }
  .page-container {
    padding: 0 !important;
  }
  .pvc-id-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   80mm / 3-Inch POS Thermal Slip Styles
   ========================================================================== */

.thermal-slip-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.thermal-slip-card {
  width: 78mm;
  background: #fff;
  color: #000;
  padding: 12px 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, monospace, sans-serif;
  text-align: center;
  border: 1px dashed #64748b;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  box-sizing: border-box;
}

.thermal-slip-card .slip-header {
  border-bottom: 1.5px dashed #000;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.thermal-slip-card .slip-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #000;
  line-height: 1.2;
}

.thermal-slip-card .slip-sub {
  font-size: 9px;
  color: #222;
  font-weight: 600;
  margin-top: 2px;
}

.thermal-slip-card .slip-qr {
  width: 130px;
  height: 130px;
  margin: 8px auto;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thermal-slip-card .slip-qr img,
.thermal-slip-card .slip-qr canvas {
  width: 100% !important;
  height: 100% !important;
}

.thermal-slip-card .slip-student-name {
  font-size: 13px;
  font-weight: 800;
  color: #000;
  margin-bottom: 4px;
  line-height: 1.2;
}

.thermal-slip-card .slip-details {
  font-size: 10px;
  line-height: 1.45;
  color: #111;
  border-top: 1px dashed #000;
  border-bottom: 1px dashed #000;
  padding: 6px 0;
  margin: 6px 0;
  text-align: left;
}

.thermal-slip-card .slip-details-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.thermal-slip-card .slip-footer {
  font-size: 8.5px;
  color: #333;
  margin-top: 4px;
  line-height: 1.3;
}

@media print {
  body.print-thermal {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body.print-thermal .thermal-slip-card {
    border: none !important;
    box-shadow: none !important;
    width: 72mm !important;
    max-width: 72mm !important;
    margin: 0 auto 10mm auto !important;
    padding: 4px 0 !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
  }
}


/* ==========================================================================
   School Logo Brand Theme & Mobile App Design System (Navy & Growth Green)
   ========================================================================== */

:root {
  --school-navy-dark: #141f3c;
  --school-navy: #1e2b58;
  --school-navy-light: #283970;
  --school-green: #65a30d;
  --school-green-light: #84cc16;
  --school-green-dark: #4d7c0f;
  --school-azure: #0284c7;
  --school-azure-light: #38bdf8;
  --school-brown: #8d4f2b;
  
  --school-gradient-navy: linear-gradient(180deg, #141f3c 0%, #1e2b58 60%, #283970 100%);
  --school-gradient-green: linear-gradient(135deg, #65a30d 0%, #4d7c0f 100%);
  --school-gradient-hero: linear-gradient(135deg, #1e2b58 0%, #233267 60%, #65a30d 100%);
  
  --app-card-bg: #ffffff;
  --app-text-dark: #0f172a;
  --app-text-muted: #64748b;
  --app-border: #e2e8f0;
  --app-radius-card: 22px;
  --app-radius-sm: 14px;
}

/* App Login Screen (Screen 1) with School Logo Theme */
.edutrack-login-wrapper {
  min-height: 100vh;
  background: var(--school-gradient-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 1.25rem 1.5rem;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

.edutrack-brand-header {
  text-align: center;
  color: #ffffff;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 2;
}

.edutrack-logo-badge {
  width: 88px;
  height: 88px;
  background: #ffffff;
  border-radius: 24px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(101, 163, 13, 0.4);
  padding: 6px;
}

.edutrack-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.edutrack-brand-header h1 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.edutrack-brand-header p {
  font-size: 0.85rem;
  color: #84cc16;
  font-weight: 700;
  margin-top: 0.25rem;
}

.edutrack-login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 28px;
  padding: 2rem 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  color: #0f172a;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.segmented-role-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}

.role-tab-item {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  color: #64748b;
  border: none;
  background: transparent;
  transition: all 0.2s ease;
  user-select: none;
}

.role-tab-item.active {
  background: var(--school-navy);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(30, 43, 88, 0.35);
}

.edutrack-input-group {
  margin-bottom: 1.25rem;
}

.edutrack-input-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.45rem;
  display: block;
}

.edutrack-input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 0.95rem;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.edutrack-input:focus {
  border-color: var(--school-green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(101, 163, 13, 0.18);
}

.edutrack-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #1e2b58 0%, #283970 100%);
  color: #ffffff;
  border: 1px solid rgba(101, 163, 13, 0.3);
  border-radius: 14px;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(30, 43, 88, 0.35);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.edutrack-btn-primary:hover {
  background: linear-gradient(135deg, #141f3c 0%, #1e2b58 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(30, 43, 88, 0.45);
}

/* School Logo Theme Parent Mobile App Shell */
.smart-mobile-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f8fafc;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
  padding-bottom: 85px;
}

.smart-app-header {
  background: linear-gradient(180deg, #141f3c 0%, #1e2b58 60%, #283970 100%) !important;
  padding: 1.5rem 1.25rem 3rem !important;
  color: #ffffff !important;
  border-radius: 0 0 28px 28px !important;
  box-shadow: 0 10px 25px rgba(20, 31, 60, 0.25) !important;
}

.smart-student-hero-card {
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 1.25rem !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  margin: -2.25rem 1rem 1.25rem !important;
  position: relative !important;
  z-index: 10 !important;
}

.app-bottom-nav {
  display: flex !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 480px !important;
  height: 68px !important;
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  z-index: 9999 !important;
  justify-content: space-around !important;
  align-items: center !important;
  padding: 0 0.5rem !important;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08) !important;
}

.app-bottom-nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  gap: 0.25rem !important;
  padding: 0.4rem 0.65rem !important;
  border-radius: 12px !important;
  flex: 1 !important;
  transition: all 0.2s ease !important;
}

.app-bottom-nav-item i {
  font-size: 1.3rem !important;
}

.app-bottom-nav-item.active {
  color: var(--school-navy) !important;
}

.app-bottom-nav-item.active i {
  transform: translateY(-2px) !important;
  color: var(--school-green) !important;
}

/* ==========================================================================
   Mobile Responsive Navigation & Layouts
   ========================================================================== */

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 0.75rem;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-cyan);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 199;
}

.sidebar-backdrop.active {
  display: block;
}

.sidebar-close-btn {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .sidebar-close-btn {
    display: flex;
  }

  .app-wrapper {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    height: 100vh;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.7);
    overflow-y: auto;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    width: 100%;
    min-width: 100%;
  }

  .page-container {
    padding: 1.25rem 1rem;
  }

  .top-header {
    padding: 0.85rem 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
  }

  .header-title h1 {
    font-size: 1.15rem !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .page-header .page-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Mobile-First Responsive Layout & View Mode System
   ========================================================================== */

/* Toggle Pill Switcher */
.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}

.btn-mode {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-mode:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-mode.active-mode {
  background: linear-gradient(135deg, #06b6d4, #3b82f6) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

/* Base Mobile Backdrop */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Close Button inside Sidebar */
.sidebar-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.mobile-menu-toggle {
  display: none;
}

/* Bottom Navigation Bars */
.admin-bottom-nav, .principal-bottom-nav {
  display: none;
}

.admin-bottom-nav-item, .principal-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.25rem;
  padding: 0.35rem 0.45rem;
  border-radius: 12px;
  flex: 1;
  transition: all 0.2s ease;
}

.admin-bottom-nav-item i, .principal-bottom-nav-item i {
  font-size: 1.25rem;
}

/* ==========================================================================
   WHATSAPP-THEMED DIGITAL CHAT BOARD STYLES
   ========================================================================== */
.wa-container {
  display: flex;
  background: #111b21;
  border-radius: 16px;
  overflow: hidden;
  height: calc(100vh - 170px);
  min-height: 580px;
  border: 1px solid #222d34;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.wa-sidebar {
  width: 360px;
  min-width: 300px;
  background: #111b21;
  border-right: 1px solid #222d34;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.wa-sidebar-header {
  height: 60px;
  background: #202c33;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #222d34;
}

.wa-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #00a884;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.wa-search-bar {
  background: #111b21;
  padding: 8px 12px;
  border-bottom: 1px solid #222d34;
  position: relative;
}

.wa-search-bar input {
  width: 100%;
  background: #202c33;
  border: none;
  border-radius: 8px;
  color: #d1d7db;
  font-size: 0.85rem;
  padding: 7px 12px 7px 36px;
  outline: none;
  box-sizing: border-box;
}

.wa-search-bar input::placeholder {
  color: #8696a0;
}

.wa-search-bar i {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #8696a0;
  font-size: 0.85rem;
}

.wa-filter-chips {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #111b21;
  border-bottom: 1px solid #222d34;
  overflow-x: auto;
}

.wa-chip {
  padding: 5px 12px;
  background: #202c33;
  color: #8696a0;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.wa-chip.active {
  background: #00a884;
  color: #111b21;
  font-weight: 700;
}

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

.wa-chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}

.wa-chat-item:hover {
  background: #202c33;
}

.wa-chat-item.active {
  background: #2a3942;
}

.wa-chat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  position: relative;
}

.wa-online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00a884;
  position: absolute;
  bottom: 0;
  right: 0;
  border: 2px solid #111b21;
}

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

.wa-chat-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.wa-chat-name {
  color: #e9edef;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-chat-time {
  color: #8696a0;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.wa-chat-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-chat-snippet {
  color: #8696a0;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-badge-unread {
  background: #00a884;
  color: #111b21;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

.wa-main-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0b141a;
  position: relative;
  min-width: 0;
}

.wa-main-header {
  height: 60px;
  background: #202c33;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #222d34;
  z-index: 5;
}

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

.wa-header-title {
  color: #e9edef;
  font-weight: 700;
  font-size: 0.96rem;
  margin: 0;
}

.wa-header-sub {
  color: #8696a0;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #0b141a;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}

.wa-date-divider {
  align-self: center;
  background: #182229;
  color: #8696a0;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin: 8px 0;
}

.wa-msg {
  max-width: 72%;
  min-width: 90px;
  padding: 7px 11px 5px;
  border-radius: 9px;
  position: relative;
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-word;
}

.wa-msg.outgoing {
  align-self: flex-end;
  background: #005c4b;
  color: #e9edef;
  border-top-right-radius: 2px;
}

.wa-msg.incoming {
  align-self: flex-start;
  background: #202c33;
  color: #e9edef;
  border-top-left-radius: 2px;
}

.wa-msg-sender {
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.wa-msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.66rem;
  color: #8696a0;
  margin-top: 3px;
  float: right;
  margin-left: 8px;
}

.wa-msg.outgoing .wa-msg-footer {
  color: rgba(255, 255, 255, 0.6);
}

.wa-msg.outgoing .wa-msg-footer i {
  color: #53bdeb;
}

.wa-input-tray {
  height: 62px;
  background: #202c33;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #222d34;
  z-index: 5;
}

.wa-input-box {
  flex: 1;
  background: #2a3942;
  border: none;
  border-radius: 10px;
  color: #d1d7db;
  padding: 10px 16px;
  font-size: 0.9rem;
  outline: none;
}

.wa-input-box::placeholder {
  color: #8696a0;
}

.wa-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #8696a0;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.wa-btn-icon:hover {
  color: #d1d7db;
  background: rgba(255, 255, 255, 0.05);
}

.wa-btn-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #00a884;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 168, 132, 0.4);
  transition: all 0.15s;
}

.wa-btn-send:hover {
  background: #02bd94;
  transform: scale(1.05);
}

.wa-emoji-tray {
  position: absolute;
  bottom: 68px;
  left: 16px;
  background: #202c33;
  border: 1px solid #2a3942;
  border-radius: 12px;
  padding: 8px;
  display: none;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 20;
}

.wa-emoji-tray.active {
  display: flex;
}

.wa-emoji-item {
  font-size: 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: transform 0.1s;
}

.wa-emoji-item:hover {
  transform: scale(1.25);
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   MOBILE & TABLET SCREENS (<= 992px) - ALWAYS OFF-CANVAS SIDEBAR & FULL WIDTH
   ========================================================================== */
@media (max-width: 992px) {
  .app-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-bottom: 75px !important;
    overflow-x: hidden !important;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 290px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9) !important;
    overflow-y: auto !important;
    background: #0f172a !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .sidebar.open {
    transform: translateX(0) !important;
  }

  .sidebar-close-btn {
    display: flex !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    margin-right: 0.65rem;
  }

  .main-content {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    margin-left: 0 !important;
    overflow-x: hidden !important;
  }

  .page-container {
    padding: 1rem 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .stat-card {
    padding: 0.85rem 0.75rem !important;
    gap: 0.75rem !important;
  }

  .stat-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    font-size: 1.25rem !important;
    border-radius: 10px !important;
  }

  .stat-details h3 {
    font-size: 1.35rem !important;
    margin-bottom: 2px !important;
  }

  .stat-details p {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
  }

  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .top-header {
    padding: 0 0.85rem !important;
    height: 60px !important;
  }

  .hide-on-mobile {
    display: none !important;
  }

  .wa-container {
    height: calc(100vh - 150px) !important;
    min-height: 480px !important;
    border-radius: 12px !important;
  }
  .wa-sidebar {
    width: 100% !important;
    min-width: 100% !important;
  }
  .wa-container.chat-active .wa-sidebar {
    display: none !important;
  }
  .wa-container:not(.chat-active) .wa-main-canvas {
    display: none !important;
  }
  .wa-container.chat-active .wa-main-canvas {
    display: flex !important;
  }
  .wa-back-btn {
    display: flex !important;
  }

  .admin-bottom-nav, .principal-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 64px !important;
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 99980 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 0.25rem !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5) !important;
  }
}

/* ==========================================================================
   DESKTOP SCREENS (> 992px) - FULL-WIDTH PROFESSIONAL DASHBOARD
   ========================================================================== */
@media (min-width: 993px) {
  .app-wrapper {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .sidebar {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    transform: none !important;
    width: 280px !important;
    min-width: 280px !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: none !important;
    border-right: 1px solid var(--border-color) !important;
    background: rgba(15, 23, 42, 0.95) !important;
  }

  .main-content {
    flex: 1 !important;
    min-width: 0 !important;
    width: calc(100% - 280px) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .page-container {
    padding: 2rem !important;
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem !important;
  }

  .dashboard-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    gap: 1.5rem !important;
  }

  .top-header {
    height: 70px !important;
    padding: 0 2rem !important;
  }

  .mobile-menu-toggle,
  .sidebar-close-btn,
  .sidebar-backdrop,
  .admin-bottom-nav,
  .principal-bottom-nav {
    display: none !important;
  }
}
