/* ==========================================================================
   VVCMC Form 98 - Enterprise Design System
   Vasai-Virar City Municipal Corporation
   ========================================================================== */

@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 {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Color Palette */
  --bg-dark: #090d16;
  --bg-card: rgba(18, 24, 38, 0.85);
  --bg-card-hover: rgba(26, 35, 54, 0.95);
  --bg-input: rgba(11, 16, 28, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;

  /* Accent Gradients */
  --primary-blue: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.25);
  --accent-gold: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Shadows */
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(37, 99, 235, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Ambient Background Lights */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.ambient-blob-2 {
  position: absolute;
  bottom: -15%;
  right: 15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
  filter: blur(80px);
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

.ambient-blob-3 {
  position: absolute;
  top: 45%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  filter: blur(70px);
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(30px) scale(1.05); }
  100% { transform: translateY(-20px) scale(0.95); }
}

/* Header & Navigation */
.header-nav {
  position: relative;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(9, 13, 22, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 2rem;
}

.header-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* User Pill in Nav */
.nav-user-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.8rem 0.4rem 0.5rem;
  border-radius: 9999px;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.nav-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.nav-logout-btn {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-logout-btn:hover {
  background: #f43f5e;
  color: #fff;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

/* Main Layout */
.main-wrapper {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

/* Login Card Container */
.auth-container {
  width: 100%;
  max-width: 480px;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #f59e0b, #2563eb);
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo-wrap {
  display: inline-flex;
  position: relative;
  margin-bottom: 1.25rem;
}

.auth-logo-img {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 15px rgba(37, 99, 235, 0.4));
  transition: transform 0.3s ease;
}

.auth-logo-wrap:hover .auth-logo-img {
  transform: scale(1.05) rotate(2deg);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Alert Notification */
.alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  animation: shakeAlert 0.4s ease;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.alert-danger {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fecdd3;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.alert-info {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #bfdbfe;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.35rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-dim);
  pointer-events: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:focus {
  border-color: var(--border-focus);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.form-control:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--border-focus);
}

.toggle-password {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: var(--text-main);
}

/* Select Dropdown */
select.form-control {
  appearance: none;
  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='%2394a3b8' 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 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

select.form-control option {
  background: #0f172a;
  color: #f8fafc;
}

/* Remember / Helper Flex */
.form-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.84rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary-blue);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

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

/* Quick Fill Demo Pills */
.demo-accounts {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.demo-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  text-align: center;
}

.demo-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.demo-pill-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
}

.demo-pill-btn:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.4);
  color: #fff;
}

.demo-pill-role {
  font-size: 0.7rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
}

.demo-pill-user {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Dashboard Specific Layout */
.dashboard-wrapper {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 5;
}

.welcome-hero {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.hero-left h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.hero-left p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-admin {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.role-officer {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.role-user {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.4);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

/* Data Table Card */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}

.table-header-bar {
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.table-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.table-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.custom-table th {
  background: rgba(15, 23, 42, 0.85);
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-subtle);
}

.custom-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
}

.custom-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-inactive {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Modal Dialog */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #111827;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

.modal-header {
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close:hover {
  color: #fff;
}

.modal-body {
  padding: 1.75rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 768px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
  .welcome-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
  }
  .header-nav {
    padding: 0.75rem 1rem;
  }
}

/* JasperReports Dashboard Integration */
.report-hero-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(37, 99, 235, 0.15);
  position: relative;
  overflow: hidden;
}

.report-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6, #f59e0b);
}

.report-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.report-title-group h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.report-tag-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.report-title-group p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.report-actions-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-report {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-report-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-report-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-2px);
  color: #fff;
}

.btn-report-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-report-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.btn-report-gold {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.btn-report-gold:hover {
  background: #f59e0b;
  color: #0f172a;
  transform: translateY(-2px);
}

/* Report Viewer Container */
.report-viewer-card {
  display: none;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-top: 1.5rem;
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
  animation: slideUp 0.3s ease;
}

.report-viewer-card.active {
  display: block;
}

.viewer-toolbar {
  padding: 0.75rem 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.viewer-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.report-iframe {
  width: 100%;
  height: 600px;
  border: none;
  background: #ffffff;
}

/* Role Pills Grid */
.role-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.role-stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.role-stat-item .label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.role-stat-item .count {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

/* Admin Dashboard Specific Components */
.badge-protected {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.03em;
}

.table-actions-cell {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-action-edit {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}
.btn-action-edit:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #ffffff;
  border-color: #60a5fa;
}

.btn-action-key {
  background: rgba(168, 85, 247, 0.12);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.3);
}
.btn-action-key:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #ffffff;
  border-color: #c084fc;
}

.btn-action-delete {
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.3);
}
.btn-action-delete:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #ffffff;
  border-color: #fb7185;
}

.btn-action:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.emp-search-card {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.emp-preview-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.25rem;
  display: none;
}

.emp-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
}

.emp-preview-item .label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.emp-preview-item .val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
}

.dash-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.dash-search-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  color: var(--text-main);
  font-size: 0.85rem;
  min-width: 240px;
}
.dash-search-input:focus {
  outline: none;
  border-color: #3b82f6;
}

/* ==========================================================================
   GLASSMORPHISM THEME SYSTEM
   Ultra-sleek frosted glass, luminous ambient lighting, specular highlights
   ========================================================================== */

/* Enhanced Cosmic Mesh Background */
body {
  background: 
    radial-gradient(at 0% 0%, #0d1f38 0px, transparent 55%),
    radial-gradient(at 100% 0%, #1e1b4b 0px, transparent 55%),
    radial-gradient(at 50% 50%, #090e1a 0px, transparent 70%),
    radial-gradient(at 0% 100%, #022c22 0px, transparent 55%),
    radial-gradient(at 100% 100%, #172554 0px, transparent 55%),
    #070a12 !important;
  background-attachment: fixed !important;
}

/* Ambient Floating Luminous Orbs */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob-1 {
  position: absolute;
  top: -8%;
  left: 15%;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.38) 0%, rgba(37, 99, 235, 0.12) 50%, transparent 70%) !important;
  filter: blur(80px) !important;
  animation: floatOrb1 20s ease-in-out infinite alternate !important;
}

.ambient-blob-2 {
  position: absolute;
  bottom: -12%;
  right: 10%;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, rgba(124, 58, 237, 0.1) 50%, transparent 70%) !important;
  filter: blur(90px) !important;
  animation: floatOrb2 24s ease-in-out infinite alternate-reverse !important;
}

.ambient-blob-3 {
  position: absolute;
  top: 38%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 68%) !important;
  filter: blur(75px) !important;
  animation: floatOrb3 18s ease-in-out infinite alternate !important;
}

.ambient-blob-4 {
  position: absolute;
  bottom: 8%;
  left: 20%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 65%) !important;
  filter: blur(80px) !important;
  animation: floatOrb1 22s ease-in-out infinite alternate-reverse !important;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 35px) scale(1.08); }
  100% { transform: translate(-30px, -25px) scale(0.92); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-45px, -30px) scale(1.05); }
  100% { transform: translate(35px, 40px) scale(0.95); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.1); }
  100% { transform: translate(25px, -35px) scale(0.9); }
}

/* Glassmorphism Auth Card */
.auth-card {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 26px !important;
  padding: 2.75rem 2.25rem !important;
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.65), 
    0 0 50px -10px rgba(37, 99, 235, 0.25), 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25) !important;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6) !important;
  background-size: 200% 100% !important;
  animation: gradientShift 6s linear infinite !important;
}

/* Glassmorphism Logo Surround */
.auth-logo-wrap {
  display: inline-flex !important;
  position: relative;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
  padding: 12px !important;
  border-radius: 22px !important;
  box-shadow: 
    0 12px 28px rgba(0, 0, 0, 0.35), 
    inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-logo-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 16px 36px rgba(37, 99, 235, 0.3), 
    inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

.auth-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.4));
}

/* Glassmorphism Form Inputs */
.form-control {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 14px !important;
  padding: 0.9rem 1.15rem 0.9rem 2.85rem !important;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #ffffff !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.form-control::placeholder {
  color: #64748b !important;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(96, 165, 250, 0.85) !important;
  box-shadow: 
    0 0 25px rgba(59, 130, 246, 0.4), 
    inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
}

/* Glassmorphism Submit Button */
.btn-submit {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88) 0%, rgba(29, 78, 216, 0.88) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 14px !important;
  padding: 0.95rem 1.5rem !important;
  color: #ffffff !important;
  box-shadow: 
    0 10px 25px -4px rgba(37, 99, 235, 0.55), 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.35) !important;
  transition: all 0.25s ease !important;
}

.btn-submit:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%) !important;
  transform: translateY(-2px);
  box-shadow: 
    0 14px 32px -2px rgba(59, 130, 246, 0.7), 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.5) !important;
}

/* Secondary Button Glassmorphism */
.btn-secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 12px !important;
  color: #cbd5e1 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transition: all 0.2s ease !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* Glassmorphism Cards & Panels across the app */
.welcome-hero,
.table-card,
.emp-search-card,
.modal-box,
.card-glass {
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 
    0 25px 50px -10px rgba(0, 0, 0, 0.55), 
    inset 0 1px 1px rgba(255, 255, 255, 0.18) !important;
}

/* Header Glassmorphism */
.header-nav {
  background: rgba(11, 16, 28, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Footer Glassmorphism */
.site-footer {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #94a3b8 !important;
}

/* ==========================================================================
   RESPONSIVE COMPUTER VS MOBILE STYLING & COMPACT LOGO ENHANCEMENTS
   ========================================================================== */

/* Corporate Name and Subtitle */
.auth-corp-name {
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  color: #60a5fa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 0;
}

/* Reduced Logo Sizing & Pod */
.auth-logo-wrap {
  display: inline-flex !important;
  position: relative;
  margin-bottom: 0.85rem !important;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
  padding: 8px !important;
  border-radius: 16px !important;
  box-shadow: 
    0 10px 24px rgba(0, 0, 0, 0.35), 
    inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-logo-img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.45)) !important;
  display: block;
}

/* --------------------------------------------------------------------------
   COMPUTER / DESKTOP VIEW SPECIFIC EFFECTS (min-width: 769px)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
  .auth-container {
    max-width: 460px;
    perspective: 1200px;
  }

  .auth-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease !important;
    position: relative;
    overflow: hidden;
  }

  /* Interactive 3D Depth on Computer Hover */
  .auth-card:hover {
    transform: translateY(-5px) rotateX(1.5deg) scale(1.008);
    box-shadow: 
      0 35px 70px -15px rgba(0, 0, 0, 0.75), 
      0 0 55px -10px rgba(59, 130, 246, 0.35), 
      inset 0 1px 1px 0 rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
  }

  /* Holographic light sheen reflection across glass on hover */
  .auth-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 65%;
    height: 200%;
    background: linear-gradient(
      65deg,
      transparent 0%,
      rgba(255, 255, 255, 0.07) 50%,
      transparent 100%
    );
    transform: rotate(25deg);
    transition: left 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
    pointer-events: none;
    opacity: 0;
  }

  .auth-card:hover::after {
    left: 140%;
    opacity: 1;
  }

  /* Subtle Logo Ambient Glow Pulse on Desktop */
  .auth-logo-wrap {
    animation: desktopLogoGlow 3.5s ease-in-out infinite alternate !important;
  }

  .auth-title {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem !important;
  }
}

@keyframes desktopLogoGlow {
  0% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(37, 99, 235, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transform: translateY(0);
  }
  100% {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(96, 165, 250, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
  }
}

/* --------------------------------------------------------------------------
   MOBILE VIEW SPECIFIC EFFECTS & LAYOUT (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .main-wrapper {
    padding: 1.25rem 0.85rem !important;
    align-items: center !important;
  }

  .auth-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
  }

  .auth-card {
    padding: 2rem 1.25rem 1.75rem 1.25rem !important;
    border-radius: 22px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  }

  /* Compact Logo on Mobile */
  .auth-logo-wrap {
    padding: 6px !important;
    border-radius: 12px !important;
    margin-bottom: 0.65rem !important;
  }

  .auth-logo-img {
    width: 38px !important;
    height: 38px !important;
  }

  /* Mobile Typography */
  .auth-title {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    background: linear-gradient(135deg, #ffffff 50%, #93c5fd 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 0.2rem !important;
  }

  .auth-corp-name {
    font-size: 0.72rem !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 0.4rem !important;
  }

  .auth-subtitle {
    font-size: 0.82rem !important;
    color: #94a3b8 !important;
  }

  /* Mobile Touch-Optimized Inputs (Prevents iOS Safari auto-zoom) */
  .form-control {
    font-size: 16px !important;
    min-height: 48px !important;
    padding: 0.75rem 1rem 0.75rem 2.65rem !important;
    border-radius: 12px !important;
  }

  .form-group {
    margin-bottom: 1.15rem !important;
  }

  .form-label {
    font-size: 0.78rem !important;
    margin-bottom: 0.35rem !important;
  }

  .input-icon {
    left: 0.85rem !important;
  }

  .toggle-password {
    right: 0.85rem !important;
    padding: 0.4rem !important;
  }

  /* Mobile Touch Button with Haptic Tap Compression */
  .btn-submit {
    min-height: 48px !important;
    font-size: 0.98rem !important;
    padding: 0.85rem 1.25rem !important;
    border-radius: 12px !important;
  }

  .btn-submit:active {
    transform: scale(0.97) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.6) !important;
  }

  .form-actions-bar {
    font-size: 0.8rem !important;
    margin-bottom: 1.25rem !important;
  }
}

/* ==========================================================================
   Responsive Header Navigation (Normal PC View & Mobile Three-Dash Toggle)
   PC View: Normal horizontal layout, 3-dash toggle button is hidden.
   Mobile View (< 992px): 3-dash toggle button on top right shows/hides menu.
   ========================================================================== */

/* Navigation Links Container */
.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.nav-link-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link-item.active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Three-Dash Button: Hidden by default on PC View */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--border-subtle);
  border-radius: 8px;
  width: 42px;
  height: 40px;
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.mobile-nav-toggle:active,
.mobile-nav-toggle.active {
  background: rgba(37, 99, 235, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  color: #ffffff;
}

/* PC View (min-width: 992px): Normal Horizontal Layout */
@media (min-width: 992px) {
  .mobile-nav-toggle {
    display: none !important;
  }

  .nav-collapsible-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 1 !important;
    margin-left: 2rem !important;
  }

  .nav-links-menu {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .nav-user-pill {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    margin-left: auto !important;
  }
}

/* Mobile View (max-width: 991.98px): Top Right Three-Dash Toggle & Drawer */
@media (max-width: 991.98px) {
  .header-nav {
    padding: 0.75rem 1.25rem !important;
    position: relative !important;
  }

  .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .brand-wrapper {
    gap: 0.75rem !important;
  }

  .brand-logo {
    width: 38px !important;
    height: 38px !important;
  }

  .brand-title {
    font-size: 1.05rem !important;
  }

  .brand-sub {
    font-size: 0.72rem !important;
  }

  /* Three-Dash Button visible on top right */
  .mobile-nav-toggle {
    display: inline-flex !important;
  }

  /* Navigation Collapsible Menu: Hidden by default */
  .nav-collapsible-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(9, 13, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    z-index: 100;
  }

  /* Shown when 3-dash button is toggled */
  .nav-collapsible-menu.show {
    display: flex !important;
    animation: mobileNavSlide 0.22s ease-out;
  }

  .nav-links-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  .nav-link-item {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link-item:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-link-item.active {
    background: rgba(37, 99, 235, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
  }

  .nav-user-pill {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 0.25rem !important;
    padding: 0.85rem 0 0 0 !important;
    border-top: 1px solid var(--border-subtle) !important;
    border-radius: 0 !important;
    background: transparent !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

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

/* ==========================================================================
   Dashboard Glassmorphic Theme & Hero Card (Matching Login Screen Look)
   Deep dark canvas, floating ambient blobs, and glowing glass cards
   ========================================================================== */

.dashboard-hero-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  padding: 2.75rem 2.25rem;
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.65), 
    0 0 50px -10px rgba(37, 99, 235, 0.25), 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #f59e0b, #2563eb);
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
}

.dash-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseLive 2s infinite;
  display: inline-block;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.dash-hero-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.dash-hero-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.25rem;
}

.dash-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.btn-hero-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 1.25rem;
}

.btn-hero-action .hero-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-hero-action .hero-action-text {
  flex: 1;
  text-align: left;
}

.btn-hero-action .action-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
}

.btn-hero-action .action-desc {
  font-size: 0.8rem;
  opacity: 0.82;
  margin-top: 0.2rem;
}

.btn-hero-action .hero-action-arrow {
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.25s ease;
  flex-shrink: 0;
}

.btn-hero-action:hover .hero-action-arrow {
  opacity: 1;
  transform: translateX(5px);
}

.btn-hero-primary {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(29, 78, 216, 0.9) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 
    0 10px 25px -4px rgba(37, 99, 235, 0.55), 
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.btn-hero-primary .hero-action-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%) !important;
  transform: translateY(-2px);
  box-shadow: 
    0 16px 36px -2px rgba(59, 130, 246, 0.7), 
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #f8fafc !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.btn-hero-secondary .hero-action-icon {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-2px);
  color: #ffffff !important;
  box-shadow: 0 10px 25px -4px rgba(99, 102, 241, 0.35) !important;
}

.dash-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.meta-icon {
  display: inline-flex;
  align-items: center;
  color: #60a5fa;
}

/* Header Nav Glass Accent */
.header-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(9, 13, 22, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0.75rem 2rem !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
}

.header-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #f59e0b, #2563eb);
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
}




