html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

:root {
  /* Color Palette */
  --primary: #8b5cf6;
  --primary-light: #f3e8ff;
  --primary-dark: #6d28d9;
  --secondary: #64748b;
  --surface: #ffffff;
  --bg-main: #f8fafc;
  --text-strong: #0f172a;
  --text-body: #475569;
  --text-muted: #94a3b8;

  /* Semantic Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --info: #3b82f6;
  --info-light: #dbeafe;

  /* Styling Vars */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows & Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-primary: 0 10px 15px -3px rgba(139, 92, 246, 0.3);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Animation Utilities */
  --animation-stagger: 0.1s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

.animate-fade {
  animation: fadeIn 0.4s ease forwards;
}
.animate-slide {
  animation: slideInRight 0.4s ease forwards;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family:
    "Outfit",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-strong);
  font-weight: 600;
  line-height: 1.2;
}
a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition-fast);
}

/* ---------- UTILITIES ---------- */
.hidden {
  display: none !important;
}
.text-muted {
  color: var(--text-muted);
}
.text-center {
  text-align: center;
}
.w-100 {
  width: 100%;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.ml-1 {
  margin-left: 0.5rem;
}
.ml-2 {
  margin-left: 1rem;
}
.d-flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-end {
  justify-content: flex-end;
}
.align-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.wrap {
  flex-wrap: wrap;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 1rem;
}
.gap-4 {
  gap: 1.5rem;
}

.text-primary {
  color: var(--primary);
}
.bg-primary-soft {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.bg-success-soft {
  background: var(--success-light);
  color: var(--success);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  gap: 0.5rem;
  outline: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  box-shadow: 0 15px 20px -5px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover {
  background: #dc2626;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-danger-soft {
  background: var(--danger-light);
  color: var(--danger);
  font-weight: 600;
}
.btn-danger-soft:hover {
  background: var(--danger);
  color: white;
}

.btn-outline {
  border-color: var(--primary-light);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.btn-icon-ghost {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.btn-icon-ghost:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ---------- BADGES ---------- */
.badge {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.bg-success {
  background: var(--success-light);
  color: #065f46;
}
.bg-warning {
  background: var(--warning-light);
  color: #92400e;
}
.bg-danger {
  background: var(--danger-light);
  color: #991b1b;
}
.bg-primary {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.badge-glow {
  background: linear-gradient(135deg, var(--primary-light), white);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--primary-light);
}

/* ---------- FORMS ---------- */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-strong);
  font-size: 0.9rem;
}
.input-with-icon {
  position: relative;
}
.input-with-icon i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}
.input-with-icon input:focus + i {
  color: var(--primary);
}

.form-control,
.input-with-icon input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-strong);
  transition: all var(--transition-smooth);
  font-size: 1rem;
  font-family: inherit;
}

.input-with-icon input,
.input-with-icon select {
  padding-left: 3rem !important;
}
.form-control:hover,
.input-with-icon input:hover {
  border-color: #cbd5e1;
}
.form-control:focus,
.input-with-icon input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-light);
}
textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ---------- SPLIT LOGIN SCREEN ---------- */
.login-wrapper {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-main);
  overflow: hidden;
  padding: 1rem;
}
.login-container {
  width: 100%;
  max-width: 1000px;
  height: 600px;
  max-height: 90vh;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  overflow: hidden;
}

.login-branding {
  flex: 1;
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center; /* Center horizontally */
  padding: 3rem;
  text-align: center; /* Center text */
  display: none; /* Mobile hidden, desktop shown */
}
.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background: white;
  filter: blur(20px);
}
.circle-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
}
.circle-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  right: -50px;
}

.branding-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brand-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.branding-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: white;
}
.branding-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 320px;
  font-weight: 300;
}

.login-form-area {
  width: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Added to center content horizontally */
  padding: 3rem;
  position: relative;
  background: var(--surface);
}
.login-form-box {
  width: 100%;
  max-width: 380px; /* Constrain form width for better centering */
}
.form-header {
  margin-bottom: 2.5rem;
}
.form-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.login-footer {
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.transition-icon {
  transition: transform var(--transition-fast);
}
.btn:hover .transition-icon {
  transform: translateX(5px);
}

@media (min-width: 992px) {
  .login-branding {
    display: flex;
  }
  .login-wrapper {
    padding: 2rem;
  }
}
@media (min-width: 993px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .desktop-only {
    display: none !important;
  }
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .main-content {
    width: 100%;
  }
}

/* ---------- DASHBOARD LAYOUT ---------- */
#dashboard-section {
  display: flex;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-main);
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
}

/* DESKTOP UI SCALING: 80% */
@media (min-width: 993px) {
  #dashboard-section {
    width: 125vw; /* 100 / 0.8 */
    height: 125vh;
    transform: scale(0.8);
    transform-origin: top left;
  }
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: #0f172a; /* Premium Dark Blue */
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition-smooth);
  color: #f8fafc;
  box-shadow: 10px 0 30px -10px rgba(0, 0, 0, 0.3);
}
.sidebar-header {
  height: 70px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.app-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
}
.icon-box {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.user-profile-widget {
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.015);
}
.user-profile-widget .avatar img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}
.user-details h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: white;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-details .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
}
.user-details .badge i {
  font-size: 0.6rem;
  opacity: 0.7;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
/* CUSTOM SCROLLBAR FOR SIDEBAR */
.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.nav-header {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 1.5rem 0.5rem 0.5rem 1rem;
  opacity: 0.6;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  color: #94a3b8;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.nav-item i {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  transition: all 0.25s ease;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.2));
}

/* COLORFUL MENU SYSTEM */
.nav-item:nth-child(10n + 1) i {
  color: #8b5cf6;
} /* Violet */
.nav-item:nth-child(10n + 1):hover,
.nav-item:nth-child(10n + 1).active {
  color: #8b5cf6 !important;
  background: rgba(139, 92, 246, 0.1);
}

.nav-item:nth-child(10n + 2) i {
  color: #3b82f6;
} /* Blue */
.nav-item:nth-child(10n + 2):hover,
.nav-item:nth-child(10n + 2).active {
  color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.1);
}

.nav-item:nth-child(10n + 3) i {
  color: #10b981;
} /* Emerald */
.nav-item:nth-child(10n + 3):hover,
.nav-item:nth-child(10n + 3).active {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.1);
}

.nav-item:nth-child(10n + 4) i {
  color: #f59e0b;
} /* Amber */
.nav-item:nth-child(10n + 4):hover,
.nav-item:nth-child(10n + 4).active {
  color: #f59e0b !important;
  background: rgba(245, 158, 11, 0.1);
}

.nav-item:nth-child(10n + 5) i {
  color: #ef4444;
} /* Red */
.nav-item:nth-child(10n + 5):hover,
.nav-item:nth-child(10n + 5).active {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1);
}

.nav-item:nth-child(10n + 6) i {
  color: #ec4899;
} /* Pink */
.nav-item:nth-child(10n + 6):hover,
.nav-item:nth-child(10n + 6).active {
  color: #ec4899 !important;
  background: rgba(236, 72, 153, 0.1);
}

.nav-item:nth-child(10n + 7) i {
  color: #06b6d4;
} /* Cyan */
.nav-item:nth-child(10n + 7):hover,
.nav-item:nth-child(10n + 7).active {
  color: #06b6d4 !important;
  background: rgba(6, 182, 212, 0.1);
}

.nav-item:nth-child(10n + 8) i {
  color: #84cc16;
} /* Lime */
.nav-item:nth-child(10n + 8):hover,
.nav-item:nth-child(10n + 8).active {
  color: #84cc16 !important;
  background: rgba(132, 204, 22, 0.1);
}

.nav-item:nth-child(10n + 9) i {
  color: #f97316;
} /* Orange */
.nav-item:nth-child(10n + 9):hover,
.nav-item:nth-child(10n + 9).active {
  color: #f97316 !important;
  background: rgba(249, 115, 22, 0.1);
}

.nav-item:nth-child(10n + 10) i {
  color: #6366f1;
} /* Indigo */
.nav-item:nth-child(10n + 10):hover,
.nav-item:nth-child(10n + 10).active {
  color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.1);
}

.nav-item:hover {
  transform: translateX(5px);
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.1);
}
.sidebar-footer p {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-main);
}
.topbar {
  height: 70px;
  background: linear-gradient(
    135deg,
    #10b981,
    #059669
  ); /* Fresh Emerald Green */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar-title-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
}
.topbar-left .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.topbar-right .btn-icon-ghost {
  color: white;
}
.topbar-right .btn-icon-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}
.topbar-right .v-divider {
  background: rgba(255, 255, 255, 0.2);
}

.v-divider {
  width: 1.5px;
  height: 20px;
  background: #e2e8f0;
  margin: 0 0.25rem;
}

.pulse-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-icon .ping {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid white;
}

.content-scroll {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.content-area {
  padding: 1.5rem;
  width: 100%;
  min-height: 100%;
}

/* ---------- CARDS & DASHBOARD WIDGETS ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
}
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
}
.stat-card.success-border::before {
  background: var(--success);
}
.stat-info h5 {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-info h2 {
  font-size: 2rem;
  color: var(--text-strong);
  font-weight: 700;
}
.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.stat-icon.success-icon {
  background: var(--success-light);
  color: var(--success);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}

.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-card-premium {
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1.5rem !important;
  background: white !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 20px !important;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
  border-left: none !important; /* Remove the old border-left */
  overflow: hidden !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.stat-card-premium:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  border-color: var(--primary-light) !important;
}

.stat-icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.stat-card-premium:hover .stat-icon-box {
  transform: rotate(-10deg) scale(1.1);
}

.stat-card-premium .stat-info {
  flex: 1;
}

.stat-card-premium .stat-info h5 {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.stat-card-premium .stat-info h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.stat-card-premium .btn-kelola {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stat-card-premium .btn-kelola:hover {
  background: var(--primary);
  color: white;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--success);
  animation: pulse 2s infinite;
}
.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.card-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-body {
  padding: 1.5rem;
}

/* ---------- TABLES ---------- */
.table-responsive {
  overflow-x: auto;
  width: 100%;
  border-radius: var(--radius-md);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
}
th {
  background-color: #f8fafc;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}
td {
  color: var(--text-strong);
}
tbody tr {
  transition: background var(--transition-fast);
}
tbody tr:hover {
  background-color: var(--bg-main);
}
.empty-table {
  padding: 3rem !important;
  text-align: center;
  color: var(--text-muted);
}

/* ---------- MODAL ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}
.modal-content {
  background: var(--surface);
  width: 100%;
  max-width: 550px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 10;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

/* ---------- SCANNER ---------- */
#scanner-container {
  background: var(--bg-main);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 2px dashed #cbd5e1;
}
#reader {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  border: none !important;
  border-radius: 12px;
  overflow: hidden;
}
#reader video {
  border-radius: 12px;
  object-fit: cover;
}

/* ---------- NOTIFICATIONS ---------- */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--surface);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 300px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast.show {
  transform: translateX(0);
}
.toast-icon {
  font-size: 1.5rem;
  margin-top: 2px;
}
.toast-success .toast-icon {
  color: var(--success);
}
.toast-error .toast-icon {
  color: var(--danger);
}
.toast-info .toast-icon {
  color: var(--info);
}
.toast-content h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.toast-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- LOADER ---------- */
#loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.spinner-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
}
.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.8;
  border: 4px solid transparent;
  border-top-color: var(--primary);
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.spinner-ring:nth-child(2) {
  animation-delay: -0.15s;
  border-top-color: var(--primary-dark);
}
.spinner-ring:nth-child(3) {
  animation-delay: -0.3s;
  border-top-color: #d8b4fe;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ---------- ANIMATIONS ---------- */
.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}
.animate-fade-up {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-zoom-in {
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
  animation-delay: 100ms;
}
.delay-200 {
  animation-delay: 200ms;
}
.delay-300 {
  animation-delay: 300ms;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.responsive-credit {
  font-size: 1.05rem;
}

@media (max-width: 992px) {
  .responsive-credit {
    font-size: 0.7rem;
    letter-spacing: -0.1px;
  }
}

/* Custom scrollbar for better aesthetics */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ---------- RESPONSIVE MOBILE ---------- */
.mobile-only {
  display: none;
}
@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100%;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open {
    transform: translateX(280px);
  }
  .mobile-only {
    display: inline-flex;
  }
  .sidebar-header .mobile-only {
    display: flex;
  }
  .topbar {
    padding: 0 1rem;
  }
  .content-area {
    padding: 1.5rem;
  }
}

/* ---------- PAGINATION ---------- */
.pagination-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 1px solid #f1f5f9;
}
.pagination-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.pagination-controls {
  display: flex;
  gap: 5px;
}
.page-btn {
  padding: 5px 12px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-strong);
  transition: all 0.2s;
}
.page-btn:hover {
  background: var(--bg-main);
  border-color: var(--primary-light);
}
.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .pagination-container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
}

/* ---------- PWA GATEKEEPER ---------- */
#pwa-gatekeeper {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gatekeeper-card {
  background: white;
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(139, 92, 246, 0.25);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.gatekeeper-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
}

.install-arrow {
  position: absolute;
  font-size: 1.2rem;
  color: white;
  background: var(--danger);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: -5px;
  right: -5px;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.gatekeeper-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.gatekeeper-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
}

@media print {
  body * {
    visibility: hidden;
  }
  #report-page, #report-page * {
    visibility: visible;
  }
  #report-page {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .report-appendix {
    page-break-before: always !important;
  }
}
