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

:root {
  --background: #070a13;
  /* Rich dark background */
  --foreground: #f8fafc;
  /* Ice white text */
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-image:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.03) 0, transparent 50%),
    radial-gradient(at 50% 0%, rgba(16, 185, 129, 0.03) 0, transparent 50%);
  background-attachment: fixed;
}

/* Custom Scrollbar for dark theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #070a13;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Glassmorphism SaaS Components */
.glass-panel {
  background-color: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 85, 0.35);
  /* border-slate-700/35 */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.glass-panel:hover {
  border-color: rgba(59, 130, 246, 0.25);
  transition: border-color 0.2s ease-in-out;
}

/* Status stamp / badge accents */
.badge-status {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: monospace;
  border-width: 1px;
}

.badge-status-new {
  background-color: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.2);
}

.badge-status-assigned {
  background-color: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.2);
}

.badge-status-progress {
  background-color: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
}

.badge-status-parts {
  background-color: rgba(249, 115, 22, 0.1);
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.2);
}

.badge-status-resolved {
  background-color: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
}

.badge-status-closed {
  background-color: rgba(100, 116, 139, 0.1);
  color: #94a3b8;
  border-color: rgba(100, 116, 139, 0.2);
}

/* Custom Tailwind Overrides/Additions for CDN compatibility */
.bg-emerald-450 {
  background-color: #34d399;
}

.text-emerald-450 {
  color: #34d399;
}

.hover\:bg-emerald-450:hover {
  background-color: #34d399;
}

.border-emerald-500\/20 {
  border-color: rgba(16, 31, 26, 0.2);
}

.bg-emerald-500\/10 {
  background-color: rgba(3, 7, 6, 0.1)
}

.bg-slate-900\/60 {
  background-color: rgba(15, 23, 42, 0.6);
}

.bg-slate-950\/40 {
  background-color: rgba(2, 6, 23, 0.4);
}

.bg-slate-950\/80 {
  background-color: rgba(2, 6, 23, 0.8);
}

.border-slate-900\/60 {
  border-color: rgba(15, 23, 42, 0.6);
}

.border-slate-800\/80 {
  border-color: rgba(30, 41, 59, 0.8);
}

.border-slate-700\/80 {
  border-color: rgba(51, 65, 85, 0.8);
}

.text-slate-450 {
  color: #94a3b8;
}

.text-slate-455 {
  color: #cbd5e1;
}

.bg-slate-850 {
  background-color: #1e293b;
}

.hover\:bg-slate-850:hover {
  background-color: #1e293b;
}

/* ========================================== */
/*           LIGHT MODE OVERRIDES             */
/* ========================================== */
.light-mode {
  --background: #f8fafc;
  /* Pleasant soft white/light gray */
  --foreground: #0f172a;
  /* Dark slate text */
}

.light-mode body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  background-image:
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.04) 0, transparent 50%),
    radial-gradient(at 50% 0%, rgba(59, 130, 246, 0.04) 0, transparent 50%) !important;
}

/* Light Mode custom scrollbar */
.light-mode ::-webkit-scrollbar-track {
  background: #f8fafc !important;
}

.light-mode ::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
}

.light-mode ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

/* UI Elements & Typography Overrides */
.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h4,
.light-mode h5,
.light-mode h6 {
  color: #0f172a !important;
}

.light-mode .glass-panel {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(203, 213, 225, 0.6) !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05) !important;
}

.light-mode .glass-panel:hover {
  border-color: rgba(16, 185, 129, 0.4) !important;
}

/* Background Overrides */
.light-mode .bg-slate-950 {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

.light-mode .bg-slate-900 {
  background-color: #f1f5f9 !important;
}

.light-mode .bg-slate-900\/60 {
  background-color: rgba(241, 245, 249, 0.6) !important;
}

.light-mode .bg-slate-950\/40 {
  background-color: rgba(248, 250, 252, 0.6) !important;
}

.light-mode .bg-slate-950\/80 {
  background-color: rgba(255, 255, 255, 0.85) !important;
}

.light-mode .bg-slate-850 {
  background-color: #f8fafc !important;
}

.light-mode .hover\:bg-slate-850:hover {
  background-color: #e2e8f0 !important;
}

.light-mode .bg-slate-900\/50 {
  background-color: rgba(226, 232, 240, 0.5) !important;
}

/* Border Overrides */
.light-mode .border-slate-800,
.light-mode .border-slate-850,
.light-mode .border-slate-900,
.light-mode .border-slate-700\/35 {
  border-color: #e2e8f0 !important;
}

.light-mode .border-slate-900\/80 {
  border-color: rgba(226, 232, 240, 0.8) !important;
}

/* Text Overrides */
.light-mode .text-slate-400,
.light-mode .text-slate-450 {
  color: #475569 !important;
}

.light-mode .text-slate-455 {
  color: #334155 !important;
}

.light-mode .text-slate-300,
.light-mode .text-slate-205,
.light-mode .text-slate-200 {
  color: #1e293b !important;
}

.light-mode .text-slate-100,
.light-mode .text-slate-105,
.light-mode .text-white {
  color: #0f172a !important;
}

/* Specific Interactive Controls Overrides */
.light-mode input,
.light-mode select,
.light-mode textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

.light-mode input:focus,
.light-mode select:focus,
.light-mode textarea:focus {
  border-color: #10b981 !important;
  outline: none !important;
}

/* Table Row Hover Override */
.light-mode tr.hover\:bg-slate-900\/30:hover {
  background-color: #f1f5f9 !important;
}

/* Stepper Stepping Accents */
.light-mode .step-icon {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}

.light-mode .border-emerald-500 {
  border-color: #10b981 !important;
}

.light-mode .bg-emerald-500\/10 {
  background-color: rgba(16, 185, 129, 0.1) !important;
}

.light-mode .text-emerald-400 {
  color: #059669 !important;
}

.light-mode #timeline-progress-line {
  background-color: #10b981 !important;
}

/* Buttons Theme Optimization */
.light-mode .bg-emerald-500 {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

.light-mode .bg-emerald-500:hover,
.light-mode .hover\:bg-emerald-450:hover {
  background-color: #059669 !important;
}

.light-mode .bg-amber-500 {
  background-color: #d97706 !important;
  color: #ffffff !important;
}

.light-mode .bg-amber-500:hover,
.light-mode .hover\:bg-amber-400:hover {
  background-color: #b45309 !important;
}

.light-mode .bg-indigo-500 {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
}

.light-mode .bg-indigo-500:hover,
.light-mode .hover\:bg-indigo-400:hover {
  background-color: #4338ca !important;
}

.light-mode .bg-orange-500 {
  background-color: #ea580c !important;
  color: #ffffff !important;
}

.light-mode .bg-orange-500:hover,
.light-mode .hover\:bg-orange-400:hover {
  background-color: #c2410c !important;
}

.light-mode .text-slate-950,
.light-mode .text-slate-955 {
  color: #ffffff !important;
}

/* Badge accents for light mode */
.light-mode .badge-status-new {
  background-color: rgba(59, 130, 246, 0.08) !important;
  color: #1d4ed8 !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
}

.light-mode .badge-status-assigned {
  background-color: rgba(99, 102, 241, 0.08) !important;
  color: #4338ca !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
}

.light-mode .badge-status-progress {
  background-color: rgba(217, 119, 6, 0.08) !important;
  color: #b45309 !important;
  border-color: rgba(217, 119, 6, 0.25) !important;
}

.light-mode .badge-status-parts {
  background-color: rgba(234, 88, 12, 0.08) !important;
  color: #c2410c !important;
  border-color: rgba(234, 88, 12, 0.25) !important;
}

.light-mode .badge-status-resolved {
  background-color: rgba(16, 185, 129, 0.08) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

.light-mode .badge-status-closed {
  background-color: rgba(100, 116, 139, 0.08) !important;
  color: #475569 !important;
  border-color: rgba(100, 116, 139, 0.25) !important;
}

/* ========================================== */
/*    DISPATCH ACTIVITY CALENDAR (Zhihu Spec) */
/* ========================================== */

/* Year navigation header */
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.cal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cal-year-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: 12px;
  padding: 3px 6px;
}

.cal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-nav-btn:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.cal-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.cal-year-label {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  font-family: monospace;
  min-width: 44px;
  text-align: center;
  letter-spacing: 0.05em;
}

.cal-ticket-count {
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  font-family: monospace;
}

.cal-ticket-count .count-num {
  color: #34d399;
}

/* Legend */
.cal-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-family: monospace;
  color: #64748b;
}

.cal-legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.swatch-lvl-0 { background: rgba(30,41,59,0.45); border: 1px solid rgba(51,65,85,0.35); }
.swatch-lvl-1 { background: rgba(6,78,59,0.55); border: 1px solid rgba(16,185,129,0.25); }
.swatch-lvl-2 { background: rgba(16,185,129,0.5); border: 1px solid rgba(16,185,129,0.4); }
.swatch-lvl-3 { background: rgba(16,185,129,0.75); border: 1px solid rgba(52,211,153,0.5); }
.swatch-lvl-4 { background: #10b981; border: 1px solid rgba(52,211,153,0.6); }

.light-mode .swatch-lvl-0 { background: #f1f5f9 !important; border: 1px solid #e2e8f0 !important; }
.light-mode .swatch-lvl-1 { background: #dcfce7 !important; border: 1px solid #bbf7d0 !important; }
.light-mode .swatch-lvl-2 { background: #86efac !important; border: 1px solid #4ade80 !important; }
.light-mode .swatch-lvl-3 { background: #34d399 !important; border: 1px solid #10b981 !important; }
.light-mode .swatch-lvl-4 { background: #059669 !important; border: 1px solid #047857 !important; }

/* Month Navigation Pills */
.cal-month-nav-pills {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cal-month-nav-pills::-webkit-scrollbar {
  display: none;
}

.cal-month-pill {
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  font-family: monospace;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.cal-month-pill:hover {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(51, 65, 85, 0.6);
}

.cal-month-pill.active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
}

/* Side Navigation Bar Buttons */
.cal-side-nav-btn {
  flex-shrink: 0;
  width: 36px;
  height: 160px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(30, 41, 59, 0.8);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.cal-side-nav-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

/* Single-Row Strip: All 12 months in one continuous horizontal row */
.cal-months-strip {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.cal-months-strip::-webkit-scrollbar {
  height: 6px;
}

.cal-months-strip::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 4px;
}

.cal-months-strip::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.7);
  border-radius: 4px;
}

.cal-months-strip::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.5);
}

/* Month Mini-Calendar Card (Zhihu reference spec) */
.month-mini-cal {
  flex: 0 0 auto;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 14px;
  padding: 10px 10px 8px 10px;
  min-width: 174px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.month-mini-cal:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.month-mini-cal.active-month-card {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.month-mini-cal-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.04em;
  color: #f8fafc;
  font-family: monospace;
  margin-bottom: 8px;
  text-align: center;
}

/* Weekday header row: Mo Tu We Th Fr Sa Su */
.month-weekday-header {
  display: grid;
  grid-template-columns: repeat(7, 20px);
  gap: 3px;
  margin-bottom: 4px;
  justify-content: center;
}

.month-weekday-lbl {
  width: 20px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 600;
  font-family: monospace;
  color: #64748b;
  user-select: none;
}

/* Month days grid: 7 columns (Mon-Sun) x rows */
.month-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 20px);
  gap: 3px;
  justify-content: center;
}

/* Individual date cell */
.cal-cell {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 600;
  font-family: monospace;
  cursor: pointer;
  position: relative;
  transition: all 0.12s ease;
  border: 1px solid transparent;
}

.cal-cell:hover {
  transform: scale(1.25);
  z-index: 30;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

.cal-cell:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 1px;
}

.cal-cell-empty {
  width: 20px;
  height: 20px;
  visibility: hidden;
}

/* Today highlight */
.cal-cell.cal-cell-today {
  outline: 2px solid #10b981;
  outline-offset: -1px;
  border-radius: 4px;
}
.light-mode .cal-cell.cal-cell-today {
  outline: 2px solid #059669 !important;
  background: #ecfdf5 !important;
  color: #059669 !important;
  font-weight: 800 !important;
}

/* Activity levels — dark mode */
.cal-cell[data-level="0"] {
  background: rgba(30, 41, 59, 0.45);
  border-color: rgba(51, 65, 85, 0.35);
  color: #475569;
}

.cal-cell[data-level="1"] {
  background: rgba(6, 78, 59, 0.55);
  border-color: rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
}

.cal-cell[data-level="2"] {
  background: rgba(16, 185, 129, 0.5);
  border-color: rgba(16, 185, 129, 0.4);
  color: #d1fae5;
}

.cal-cell[data-level="3"] {
  background: rgba(16, 185, 129, 0.75);
  border-color: rgba(52, 211, 153, 0.5);
  color: #ecfdf5;
}

.cal-cell[data-level="4"] {
  background: #10b981;
  border-color: rgba(52, 211, 153, 0.6);
  color: #ffffff;
}

/* Tooltip */
.cal-cell .cal-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 6px 10px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
  color: #e2e8f0;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  font-family: monospace;
}

.cal-cell .cal-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #334155;
}

.cal-cell:hover .cal-tooltip {
  display: block;
}

/* ══════════════════════════════════════════ */
/*    LIGHT MODE THEME (Zhihu White Theme)    */
/* ══════════════════════════════════════════ */

.light-mode #admin-heatmap-section {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.light-mode .cal-year-nav {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.light-mode .cal-nav-btn {
  color: #64748b !important;
}

.light-mode .cal-nav-btn:hover:not(:disabled) {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #059669 !important;
}

.light-mode .cal-year-label {
  color: #0f172a !important;
}

.light-mode .cal-ticket-count {
  color: #0f172a !important;
}

.light-mode .cal-ticket-count .count-num {
  color: #059669 !important;
}

.light-mode .cal-legend {
  color: #64748b !important;
}

.light-mode .cal-month-pill {
  color: #64748b !important;
}

.light-mode .cal-month-pill:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

.light-mode .cal-month-pill.active {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #059669 !important;
}

.light-mode .cal-side-nav-btn {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.light-mode .cal-side-nav-btn:hover {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #059669 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2) !important;
}

.light-mode .cal-months-strip::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
}

.light-mode .cal-months-strip::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
}

.light-mode .cal-months-strip::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

/* White Month Cards (Zhihu White Theme) */
.light-mode .month-mini-cal {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.light-mode .month-mini-cal:hover {
  border-color: #86efac !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.12) !important;
}

.light-mode .month-mini-cal.active-month-card {
  border-color: #10b981 !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.2) !important;
}

.light-mode .month-mini-cal-title {
  color: #1e293b !important;
  font-weight: 700 !important;
}

.light-mode .month-weekday-header {
  background: transparent !important;
}

.light-mode .month-weekday-lbl {
  color: #64748b !important;
  font-weight: 600 !important;
}

.light-mode .month-days-grid {
  background: transparent !important;
}

.light-mode .cal-cell {
  color: #1e293b !important;
}

.light-mode .cal-cell-empty {
  background: transparent !important;
}

/* Zhihu Soft Mint/Emerald Activity Heat Tones */
.light-mode .cal-cell[data-level="0"] {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

.light-mode .cal-cell[data-level="1"] {
  background: #dcfce7 !important;
  border-color: #bbf7d0 !important;
  color: #166534 !important;
}

.light-mode .cal-cell[data-level="2"] {
  background: #86efac !important;
  border-color: #4ade80 !important;
  color: #14532d !important;
}

.light-mode .cal-cell[data-level="3"] {
  background: #34d399 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}

.light-mode .cal-cell[data-level="4"] {
  background: #059669 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
}

.light-mode .cal-cell:hover {
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.4) !important;
}

.light-mode .cal-tooltip {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.light-mode .cal-tooltip::after {
  border-top-color: #e2e8f0 !important;
}

/* ─── Responsive Breakpoints for All Devices ─── */

@media (max-width: 1024px) {
  .cal-side-nav-btn {
    width: 32px;
    height: 150px;
  }
}

@media (max-width: 767px) {
  .cal-side-nav-btn {
    width: 28px;
    height: 135px;
  }

  .cal-header {
    justify-content: center;
    text-align: center;
  }

  .cal-header-left {
    flex-direction: column;
    align-items: center;
  }

  .month-mini-cal {
    min-width: 160px;
    padding: 8px 6px 6px 6px;
  }

  .month-weekday-header,
  .month-days-grid {
    grid-template-columns: repeat(7, 18px);
    gap: 2px;
  }

  .month-weekday-lbl,
  .cal-cell,
  .cal-cell-empty {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .cal-header-left .cal-year-nav {
    margin-left: 0 !important;
  }

  .cal-single-row-wrapper {
    gap: 1;
  }

  .cal-side-nav-btn {
    width: 24px;
    min-width: 24px;
    height: 125px;
    border-radius: 8px;
  }
}