/* ═══════════════════════════════════════════
   CRESCENT CLINIC — LUXURY DESIGN SYSTEM
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fb;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --border: #eef2f6;
  --border-focus: #3b82f6;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --sidebar-gradient: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --font-body: 'Inter', -apple-system, sans-serif;
  --font-heading: 'Inter', -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* ═══ ANIMATED BACKGROUND (Rich Subtle Glows) ═══ */
.bg-orb {
  display: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}

/* ═══ LOGIN PAGE — Merged Card Design ═══ */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
  margin: 0;
  overflow: hidden;
  font-family: 'Inter', sans-serif;

  /* Beautiful Animated Background */
  background: linear-gradient(-45deg, #f0f9ff, #cffafe, #e0f2fe, #bae6fd);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* LEFT half of the merged card */
.login-image-side {
  flex: none;
  width: 480px;
  height: 640px;
  background: url('../images/WhatsApp Image 2026-05-04 at 10.25.27 AM.jpeg') no-repeat center center;
  background-size: cover;
  border-radius: 28px 0 0 28px;
  box-shadow: -10px 10px 40px rgba(170, 213, 234, 0.867);
  position: relative;
  z-index: 2;
}

/* RIGHT half of the merged card */
.login-form-side {
  flex: none;
  width: 620px;
  height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 0 28px 28px 0;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.modern-role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.modern-role-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  min-height: 160px;
  box-shadow: var(--shadow);
}

.modern-role-card:hover {
  transform: translateY(-4px) scale(1.03);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border-color: rgba(59, 130, 246, 0.2);
}

.management-card {
  grid-column: span 2;
  width: 100%;
  max-width: 248px;
  margin: 0 auto;
}

.role-icon-circle {
  width: 52px;
  height: 52px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.modern-role-card:hover .role-icon-circle {
  background: var(--accent);
  color: #ffffff;
}

.role-label {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.role-sublabel {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.role-header {
  text-align: center;
  margin-bottom: 40px;
}

.role-logo {
  margin-bottom: 24px;
}

.clinic-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 2px solid #ffffff;
}

.role-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.role-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.role-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .modern-role-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .management-card {
    grid-column: span 1;
    max-width: 100%;
  }

  .login-form-side {
    width: 100%;
    height: auto;
    border-radius: 28px;
  }
}

/* Animated decorative blob inside the right side background */
.login-form-side::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  animation: floatBlob 8s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-100px, 100px) scale(1.2);
  }
}

/* The actual form container inside the right half */
.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 10;
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  animation: loginFadeUp 0.6s ease-out both;
}

@keyframes loginFadeUp {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #0ea5e9;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.18);
}

.login-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.login-subtitle {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 6px;
  font-weight: 400;
}

/* Role Cards grid: 2×2 + 1 centered */
.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.role-cards> :nth-child(5) {
  grid-column: span 2;
  max-width: 180px;
  margin: 0 auto;
  width: 100%;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid rgba(200, 225, 240, 0.9);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 100, 150, 0.06);
}

.role-card:hover {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.18);
}

.role-card.active {
  border-color: #0ea5e9;
  background: rgba(224, 242, 254, 0.9);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25), 0 8px 20px rgba(14, 165, 233, 0.15);
  transform: translateY(-2px);
}

.role-card span {
  font-weight: 600;
  font-size: 0.88rem;
  color: #1e293b;
  line-height: 1.3;
}

.role-card small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  display: block;
}

.role-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(240, 249, 255, 0.9);
  border: 1.5px solid rgba(186, 230, 253, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: background 0.25s ease, color 0.25s ease;
}

.role-card:hover .role-icon,
.role-card.active .role-icon {
  background: rgba(224, 242, 254, 0.95);
  color: #0ea5e9;
  border-color: rgba(14, 165, 233, 0.4);
}

/* Login Form */
.login-form {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-form.hidden {
  display: none;
}

.selected-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(186, 230, 253, 0.8);
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
}

.btn-change-role {
  background: none;
  border: none;
  color: #0ea5e9;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.btn-change-role:hover {
  color: #0284c7;
  text-decoration: underline;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' 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 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Fix dropdown/select visibility — ensure options are always readable */
.form-group select option {
  background: #ffffff;
  color: #111827;
  padding: 8px 12px;
}

.form-group select option:hover,
.form-group select option:checked {
  background: #dbeafe;
  color: #1e3a5f;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-primary);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #7c3aed 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
}

.btn-success {
  background: #10b981;
  color: #fff;
  border: none;
}

.btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

.btn.active {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
}

.search-box {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 12px 16px 12px 40px !important;
  font-size: 0.95rem !important;
  transition: all 0.3s ease !important;
  color: var(--text-primary) !important;
  width: 320px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
}

.search-box:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
  width: 400px !important;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 400;
}

/* Alert */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  border: 1.5px solid rgba(186, 230, 253, 0.6);
  background: rgba(255, 255, 255, 0.7);
}

.alert-error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(255, 235, 235, 0.7);
  color: #dc2626;
}

.alert-success {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(220, 252, 231, 0.7);
  color: #059669;
}

.alert-info {
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(224, 242, 254, 0.7);
  color: #0284c7;
}

/* ═══ DASHBOARD LAYOUT ═══ */
.dashboard {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--sidebar-gradient);
  border-right: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
  padding: 40px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sidebar-header small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-item.active {
  background: #ffffff;
  color: #0ea5e9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-weight: 700;
}

.nav-item.active svg {
  color: #0ea5e9;
  opacity: 1;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.sidebar-footer {
  padding: 24px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.05);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  color: #fff;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.user-info .name {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-info .role-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 1px;
}

/* Main Area */
.main-content {
  margin-left: 280px;
  padding: 24px 32px !important;
  position: relative;
  z-index: 1;
  width: calc(100% - 280px);
  max-width: calc(100% - 280px);
  min-width: 0;
  display: block;
  min-height: 100vh;
  background: var(--bg-primary);
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 4px;
  font-weight: 400;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow);
}

.stat-card.active-card {
  border-color: #0ea5e9;
  background: #f0f9ff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1), var(--shadow-lg);
  transform: scale(1.02);
}

.stat-card.active-card::after {
  content: 'Selected';
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0ea5e9;
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.stat-icon.gold,
.stat-icon.amber {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-icon.emerald,
.stat-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.stat-meta {
  display: none;
}

/* Content Card */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.card-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-header h2 {
  font-size: 1.2rem;
  font-weight: 400;
  font-family: var(--font-heading);
  white-space: normal !important;
  word-break: break-word !important;
  flex: 1;
  line-height: 1.4;
  overflow: visible !important;
}

.card-body {
  padding: 32px;
  overflow: auto;
}

.card-body-np {
  padding: 0;
  max-height: calc(100vh - 320px);
  overflow: auto;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 400;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-primary);
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #f1f5f9;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
  border: none;
}

.badge-waiting {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.badge-consulted,
.badge-in-progress {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.badge-completed,
.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.badge-gent,
.badge-lady {
  background: #f1f5f9;
  color: #64748b;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border: none;
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow: auto;
  animation: modalFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: #f1f5f9;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.modal-body {
  padding: 32px;
}

.modal-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: #f8fafc;
}

/* Form Grid */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Token Display */
.token-display {
  text-align: center;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-top: 24px;
  box-shadow: var(--shadow);
}

.token-display .token-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.token-display .token-value {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.token-display .doctor-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 12px;
  font-weight: 500;
}

/* Responsive Grids & Split Cards */
.responsive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.responsive-grid.gap-24 {
  gap: 24px;
}
.responsive-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.split-card {
  background: var(--bg-secondary);
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.split-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}
.split-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Sections */
.section {
  display: none;
}

.section.active {
  display: block !important;
  opacity: 1;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#sectionPatients {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#sectionPatients .page-header {
  margin-top: 0 !important;
  margin-bottom: 15px !important;
  padding-top: 10px !important;
}


/* Medicine Row */
.medicine-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.medicine-row input {
  margin: 0;
}

.btn-remove-med {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-remove-med:hover {
  background: var(--danger);
  color: var(--bg-primary);
  border-color: var(--danger);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 0 0;
  font-weight: 400;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.total-row .total-value {
  color: var(--text-primary);
  font-size: 1.4rem;
}

/* Prescription Detail */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-item {
  padding: 0;
}

.detail-item .label {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-item .value {
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-primary);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  top: auto;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toast {
  padding: 18px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  font-size: 0.9rem;
  font-weight: 300;
}

.toast-success {
  border-bottom: 2px solid var(--success);
}

.toast-error {
  border-bottom: 2px solid var(--danger);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 1s linear infinite;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 24px;
  stroke-width: 1;
  opacity: 0.5;
  width: 64px;
  height: 64px;
}

.empty-state p {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Patient Card (Doctor View) */
.patient-queue {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.patient-card {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  cursor: pointer;
}

.patient-card:hover {
  background: var(--bg-secondary);
  border-color: var(--border-focus);
  transform: translateX(8px);
}

.patient-card .pc-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.patient-card .pc-token {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.patient-card .pc-name {
  font-weight: 400;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.patient-card .pc-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 300;
}



/* ═══════════════════════════════════════════
   MEDICINE AUTOCOMPLETE
   ═══════════════════════════════════════════ */
.med-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  z-index: 100;
  border-radius: var(--radius-sm);
  max-height: 350px;
  min-width: 280px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
}

.med-sugg-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.med-sugg-item:hover {
  background: var(--bg-card-hover);
}

.med-sugg-item:last-child {
  border-bottom: none;
}

.med-sugg-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.med-sugg-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Scrollbar for suggestions */
.med-suggestions::-webkit-scrollbar {
  width: 3px;
}

.med-suggestions::-webkit-scrollbar-thumb {
  background: var(--accent);
}

/* ═══════════════════════════════════════════
   TOKEN GRID SELECTION
   ═══════════════════════════════════════════ */
.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 12px;
}

.btn-token {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  outline: none;
}

.btn-token:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.btn-token.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.token-grid::-webkit-scrollbar {
  width: 4px;
}

.token-grid::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.token-grid::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* Used Token Styling */
.btn-token.btn-token-used {
  background: #e2e8f0 !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
  pointer-events: none;
  /* Prevents clicking visually and functionally */
}

.btn-token.btn-token-used::after {
  content: '❌';
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.65rem;
  opacity: 0.9;
}

/* ═══ DISABLE NUMBER INPUT SPINNERS ═══ */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* Added for active highlights */
.stat-card.active-card {
  border: 2px solid var(--accent) !important;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2) !important;
  transform: translateY(-4px);
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%) !important;
}

.btn-outline.active,
.btn-filter.active {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
}


/* ═══════════════════════════════════════════
   SPLIT LOGIN DESIGN WITH MATCHED BG
   ═══════════════════════════════════════════ */

.split-login-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

.split-login-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  background: #ffffff url('/static/images/WhatsApp Image 2026-06-06 at 1.15.23 PM.jpeg') left center no-repeat;
  background-size: auto 101%;
  overflow: hidden;
}

/* LEFT SIDE: Image */
.split-image-side {
  flex: 1.1;
  position: relative;
  overflow: hidden;
  background: transparent;
  z-index: 2;
}

.split-image-side::after {
  display: none;
}

.side-image-content {
  display: none;
}

/* RIGHT SIDE: Interaction Area */
.split-form-side {
  flex: 1;
  background: transparent;
  /* Matches the end of the gradient */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 5;
}

/* Subtle background glow to match image tones */
.split-form-side::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.split-overlay-content {
  width: 100%;
  max-width: 520px;
  text-align: center;
  padding: 40px;
  background: transparent;
  /* Remove glass effect */
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.active-view {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hidden-view {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
}

/* Role Selection Header */
.role-header {
  margin-bottom: 40px;
}

.role-logo {
  width: 90px;
  /* Slightly larger for the new circular logo */
  height: 90px;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  overflow: hidden;
}

.clinic-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

.role-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.role-subtitle {
  font-size: 0.95rem;
  color: #64748b;
}

/* Role Selection Grid */
.role-selection-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  width: 100%;
}

/* 5 or 6 items: 2 per row */
.role-selection-grid.total-5,
.role-selection-grid.total-6 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 7, 8, 9+ items: max 3 per row */
.role-selection-grid.total-7,
.role-selection-grid.total-8,
.role-selection-grid.total-9,
.role-selection-grid[class*="total-"] {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.role-card-v3 {
  flex: 0 1 260px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  /* Clearly visible but subtle border */
  border-radius: 16px;
  padding: 24px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.role-card-v3.active {
  border-color: #3b82f6;
  background: #f0f9ff;
}

.role-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.role-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1e293b;
}

.role-subname {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 400;
}

.role-card-v3:hover {
  border-color: #3b82f6;
  background: #f8faff;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.08);
  transform: translateY(-4px);
}



.role-icon-v3 {
  width: 48px;
  height: 48px;
  background: #f8fafc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.25s ease;
}

.role-card-v3:hover .role-icon-v3 {
  background: #eff6ff;
  color: #3b82f6;
}

.role-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.role-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
}

.role-subtext {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
}

.role-footer {
  font-size: 0.75rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 20px;
}

/* Back Button */
.btn-back {
  position: absolute;
  top: 0;
  left: 0;
  background: none;
  border: none;
  padding: 10px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.btn-back:hover {
  color: #3b82f6;
}

/* Login Form Refinements */
.login-header-v2 {
  position: relative;
  margin-bottom: 32px;
}

.v2-input-group input {
  background: #f8fafc;
  border-color: #f1f5f9;
}

.v2-input-group input:focus {
  background: #fff;
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Restoring login form button styles */
.btn-premium-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.btn-premium-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
  filter: brightness(1.1);
}

.btn-full {
  width: 100%;
}

.alert-error {
  background: #fef2f2;
  color: #ef4444;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  border: 1px solid #fee2e2;
  text-align: left;
}

/* ═══════════════════════════════════════════
   RESPONSIVE DESIGN SYSTEM (TV, Laptop, Tablet, Mobile)
   ═══════════════════════════════════════════ */

/* TV & Ultra-Large Displays (min-width: 1400px) */
@media (min-width: 1400px) {
  .login-container {
    max-width: 500px;
  }
  .split-overlay-content {
    max-width: 600px;
    padding: 60px;
  }
  .modal {
    max-width: 800px;
  }
  .main-content {
    padding: 40px 60px !important;
  }
}

/* Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .sidebar {
    width: 80px;
  }

  .sidebar-header h2,
  .sidebar-header small,
  .nav-item {
    font-size: 0;
  }

  .user-info .name,
  .user-info .role-label {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 16px;
  }

  .nav-item svg {
    width: 24px;
    height: 24px;
    margin: 0;
  }

  .main-content {
    margin-left: 80px;
    padding: 32px;
    width: calc(100% - 80px);
    max-width: calc(100% - 80px);
  }
}

/* Split Login Mobile / Tablet Adjustments (max-width: 900px) */
@media (max-width: 900px) {
  .split-login-container {
    background: #ffffff url('/static/images/login-bg-mobile.jpeg') center center no-repeat !important;
    background-size: cover !important;
    background-attachment: fixed !important;
  }
  .split-image-side {
    display: none !important;
  }
  .split-form-side {
    flex: 1 !important;
    width: 100% !important;
    padding: 20px !important;
  }
  .split-overlay-content {
    padding: 30px 20px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  }
}

/* Mobile & Small Tablets - Bottom Navigation (max-width: 768px) */
@media (max-width: 768px) {

  .tab-filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 8px;
    width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .tab-filters::-webkit-scrollbar {
    display: none;
  }

  .role-cards,
  .responsive-grid,
  .responsive-grid-3 {
    grid-template-columns: 1fr !important;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .medicine-row {
    grid-template-columns: 1fr 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .patient-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Bottom Navigation Override */
  .sidebar {
    display: flex !important;
    flex-direction: row !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: 60px !important;
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border) !important;
    border-right: none !important;
    z-index: 1000 !important;
    padding: 0 16px !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
  }

  .sidebar-header {
    display: none !important;
  }

  .sidebar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex: 1 !important;
    justify-content: space-around !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px;
  }

  .nav-item {
    font-size: 0.65rem !important;
    padding: 8px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    width: auto !important;
    flex-direction: column !important;
    gap: 4px !important;
    color: var(--text-secondary) !important;
  }
  
  .nav-item svg {
    margin: 0 !important;
    width: 22px !important;
    height: 22px !important;
    color: var(--text-secondary) !important;
  }

  .nav-item.active {
    color: var(--accent) !important;
    background: #f0f9ff !important;
  }

  .nav-item.active svg {
    color: var(--accent) !important;
  }

  .sidebar-footer {
    display: flex !important;
    flex-direction: row !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border-top: none !important;
    background: transparent !important;
    align-items: center !important;
  }

  .user-info {
    display: none !important;
  }
  
  .sidebar-footer .btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
    margin-left: 8px !important;
  }

  .main-content {
    margin-left: 0 !important;
    margin-bottom: 70px !important; /* Spacing for the bottom navigation bar */
    padding: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Mobile Phones (max-width: 600px) */
@media (max-width: 600px) {
  .card-body-np,
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 16px;
  }

  .data-table {
    display: table !important;
    width: 100% !important;
    white-space: nowrap;
  }

  .medicine-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    border-bottom: 1px solid var(--border) !important;
    padding-bottom: 16px !important;
  }

  .btn-remove-med {
    width: 100% !important;
    margin-top: 4px;
  }

  .split-card {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .split-label {
    font-size: 0.85rem !important;
  }
  .split-val {
    font-size: 1rem !important;
  }

  .stats-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .stat-card {
    padding: 16px !important;
  }

  .modal {
    width: 95% !important;
    padding: 16px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
  }
  
  .page-header h1 {
    font-size: 1.5rem !important;
  }
}