@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cambay:ital,wght@0,400;0,700;1,400;1,700&display=swap);
/* ============================================ */
/* VP School MIS - Educational Institute Theme  */
/* ============================================ */

/* Import Google Fonts - Inter (modern) + Cambay (ePrashasan) */

/* ============================================ */
/* Strict Zero Horizontal Overflow Protection   */
/* ============================================ */
html, body, #root {
  max-width: 100vw;
  width: 100%;
  overflow-x: hidden !important;
  position: relative;
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

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

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* CSS Custom Properties - Academic Design Tokens */
:root {
  /* Default: Oxford Navy & Academic Gold (Flagship Educational) */
  --primary: #1e3a8a;
  --primary-dark: #172554;
  --primary-light: #eff6ff;
  --primary-rgb: 30, 58, 138;
  --secondary: #d97706;
  --secondary-light: #fef3c7;
  --secondary-dark: #b45309;
  --sidebar-bg: #0f172a;
  --sidebar-header-bg: #090d16;
  --sidebar-text: #94a3b8;
  --sidebar-text-hover: #ffffff;
  --sidebar-icon: #38bdf8;
  --sidebar-active-bg: rgba(59, 130, 246, 0.16);
  --sidebar-section-text: #64748b;
  --sidebar-width: 220px;

  /* Top Bar Default */
  --topbar-bg: #ffffff;
  --topbar-text: #0f172a;
  --topbar-border: #e2e8f0;
  --topbar-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);

  /* Content Area Default */
  --content-bg: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);

  /* Alert Accent Colors */
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --info: #3b82f6;
  --info-light: #dbeafe;

  /* Text Colors Default */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  /* Borders & Spacing */
  --border-color: #cbd5e1;
  --border-light: #f1f5f9;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ============================================ */
/* Custom Scrollbar Styling */
/* ============================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(30, 58, 138, 0.25);
  background: rgba(var(--primary-rgb), 0.25);
  border-radius: 10px;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(30, 58, 138, 0.45);
  background: rgba(var(--primary-rgb), 0.45);
}

/* ============================================ */
/* Enhanced Card & Surface Animations */
/* ============================================ */
@keyframes shimmerGlow {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-animate-in {
  animation: fadeSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.card-premium {
  background: #ffffff;
  background: var(--card-bg);
  border: 1px solid #e2e8f0;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  box-shadow: var(--card-shadow);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e3a8a, #d97706, #1e3a8a);
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.card-premium:hover::before {
  opacity: 1;
  animation: shimmerGlow 2s linear infinite;
}

/* ============================================ */
/* Enhanced Table Styling */
/* ============================================ */
.table-premium .MuiTableHead-root .MuiTableCell-head {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(30, 58, 138, 0.03) 100%) !important;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.03) 100%) !important;
  color: #0f172a !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 2px solid #1e3a8a !important;
  border-bottom: 2px solid var(--primary) !important;
  white-space: nowrap;
}

.table-premium .MuiTableBody-root .MuiTableRow-root {
  transition: all 0.2s ease !important;
}

.table-premium .MuiTableBody-root .MuiTableRow-root:nth-of-type(even) {
  background-color: rgba(30, 58, 138, 0.02) !important;
  background-color: rgba(var(--primary-rgb), 0.02) !important;
}

.table-premium .MuiTableBody-root .MuiTableRow-root:hover {
  background-color: rgba(30, 58, 138, 0.06) !important;
  background-color: rgba(var(--primary-rgb), 0.06) !important;
}

/* ============================================ */
/* Form Field Focus States */
/* ============================================ */
.MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #1e3a8a !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1) !important;
}

.MuiInputLabel-root.Mui-focused {
  color: #1e3a8a !important;
  color: var(--primary) !important;
}

/* ============================================ */
/* Gradient Header Bar Utility */
/* ============================================ */
.header-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 20px 24px;
  border-radius: 16px 16px 0 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
}

.header-gradient::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* Theme 1: Oxford Navy & Academic Gold (Prestigious Default) */
.theme-navy {
  --primary: #1e3a8a;
  --primary-dark: #172554;
  --primary-light: #eff6ff;
  --primary-rgb: 30, 58, 138;
  --secondary: #d97706;
  --secondary-light: #fef3c7;
  --secondary-dark: #b45309;
  --sidebar-bg: #0f172a;
  --sidebar-header-bg: #090d16;
  --sidebar-text: #94a3b8;
  --sidebar-icon: #38bdf8;
  --sidebar-active-bg: rgba(59, 130, 246, 0.16);
  --sidebar-section-text: #64748b;
}

/* Theme 2: Scholastic Emerald & Warm Amber */
.theme-emerald {
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-light: #f0fdfa;
  --primary-rgb: 15, 118, 110;
  --secondary: #d97706;
  --secondary-light: #fef3c7;
  --secondary-dark: #b45309;
  --sidebar-bg: #132a26;
  --sidebar-header-bg: #0b1a17;
  --sidebar-text: #a7c4bc;
  --sidebar-icon: #2dd4bf;
  --sidebar-active-bg: rgba(20, 184, 166, 0.16);
  --sidebar-section-text: #5e847c;
}

/* Theme 3: Royal Academy Blue */
.theme-ocean {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-rgb: 37, 99, 235;
  --secondary: #0284c7;
  --secondary-light: #e0f2fe;
  --secondary-dark: #0369a1;
  --sidebar-bg: #0c1c33;
  --sidebar-header-bg: #071120;
  --sidebar-text: #93c5fd;
  --sidebar-icon: #60a5fa;
  --sidebar-active-bg: rgba(37, 99, 235, 0.16);
  --sidebar-section-text: #60a5fa;
}

/* Theme 4: Heritage Maroon & Bronze (with rose alias for compatibility) */
.theme-maroon, .theme-rose {
  --primary: #881337;
  --primary-dark: #4c0519;
  --primary-light: #fff1f2;
  --primary-rgb: 136, 19, 55;
  --secondary: #b45309;
  --secondary-light: #fef3c7;
  --secondary-dark: #92400e;
  --sidebar-bg: #240c14;
  --sidebar-header-bg: #15060b;
  --sidebar-text: #fecdd3;
  --sidebar-icon: #fb7185;
  --sidebar-active-bg: rgba(244, 63, 94, 0.16);
  --sidebar-section-text: #fda4af;
}

/* Fallback/Alias: STEM Midnight (replaces legacy cyber) */
.theme-cyber {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #f0f9ff;
  --primary-rgb: 2, 132, 199;
  --secondary: #0d9488;
  --secondary-light: #ccfbf1;
  --secondary-dark: #0f766e;
  --sidebar-bg: #081b29;
  --sidebar-header-bg: #040e16;
  --sidebar-text: #7dd3fc;
  --sidebar-icon: #38bdf8;
  --sidebar-active-bg: rgba(14, 165, 233, 0.16);
  --sidebar-section-text: #38bdf8;
}

/* --- Dark Mode Variables Overrides --- */
.dark-mode {
  --content-bg: #0b0f17;
  --card-bg: #151d2a;
  --card-border: #242f41;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  
  --topbar-bg: #151d2a;
  --topbar-text: #f1f5f9;
  --topbar-border: #242f41;
  --topbar-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --border-color: #242f41;
  --border-light: #1c2738;
}

/* Dark Mode Override Helper Styles */
.dark-mode .MuiInputBase-root,
.dark-mode .MuiInputBase-input {
  color: #0f172a !important;
  color: var(--text-primary) !important;
}
.dark-mode .MuiFormLabel-root {
  color: #475569 !important;
  color: var(--text-secondary) !important;
}
.dark-mode .MuiFormLabel-root.Mui-focused {
  color: #1e3a8a !important;
  color: var(--primary) !important;
}
.dark-mode .MuiOutlinedInput-notchedOutline {
  border-color: #e2e8f0 !important;
  border-color: var(--card-border) !important;
}
.dark-mode .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: #cbd5e1 !important;
  border-color: var(--border-color) !important;
}
.dark-mode .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #1e3a8a !important;
  border-color: var(--primary) !important;
}
.dark-mode .MuiTableCell-root {
  border-bottom-color: #e2e8f0 !important;
  border-bottom-color: var(--card-border) !important;
  color: #0f172a !important;
  color: var(--text-primary) !important;
}
.dark-mode .MuiTableCell-head {
  background-color: #f1f5f9 !important;
  background-color: var(--border-light) !important;
  color: #0f172a !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}
.dark-mode .MuiTableRow-root:hover {
  background-color: rgba(255, 255, 255, 0.02) !important;
}
.dark-mode .MuiDialog-paper {
  background-color: #ffffff !important;
  background-color: var(--card-bg) !important;
  color: #0f172a !important;
  color: var(--text-primary) !important;
  border: 1px solid #e2e8f0;
  border: 1px solid var(--card-border);
}
.dark-mode .MuiDialogTitle-root {
  color: #0f172a !important;
  color: var(--text-primary) !important;
}
.dark-mode .MuiDialogContentText-root {
  color: #475569 !important;
  color: var(--text-secondary) !important;
}
.dark-mode .MuiDivider-root {
  border-color: #e2e8f0 !important;
  border-color: var(--card-border) !important;
}
.dark-mode .MuiSelect-icon {
  color: #475569 !important;
  color: var(--text-secondary) !important;
}
.dark-mode .MuiChip-outlined {
  color: #0f172a !important;
  color: var(--text-primary) !important;
  border-color: #e2e8f0 !important;
  border-color: var(--card-border) !important;
}
.dark-mode .MuiAlert-root {
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.dark-mode .MuiCardHeader-title {
  color: #0f172a !important;
  color: var(--text-primary) !important;
}
.dark-mode .MuiCardHeader-subheader {
  color: #475569 !important;
  color: var(--text-secondary) !important;
}
.dark-mode .MuiTabs-root {
  border-bottom: 1px solid #e2e8f0;
  border-bottom: 1px solid var(--card-border);
}
.dark-mode .MuiTab-root {
  color: #475569 !important;
  color: var(--text-secondary) !important;
}
.dark-mode .MuiTab-root.Mui-selected {
  color: #1e3a8a !important;
  color: var(--primary) !important;
}

/* ============================================ */
/* MACOS DOCK SYSTEM */
/* ============================================ */
.mac-dock-container {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: slideDockUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 600px) {
  .mac-dock-container {
    display: none !important;
  }
}

@keyframes slideDockUp {
  from {
    transform: translateX(-50%) translateY(100px);
  }
  to {
    transform: translateX(-50%) translateY(0);
  }
}

.mac-dock {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 8px 14px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 
              inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom center;
}

.dark-mode .mac-dock {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              inset 0 1px 0px rgba(255, 255, 255, 0.05);
}

.mac-dock-divider {
  width: 1px;
  height: 40px;
  background: rgba(0, 0, 0, 0.15);
  margin: 0 4px;
  align-self: center;
}

.dark-mode .mac-dock-divider {
  background: rgba(255, 255, 255, 0.12);
}

.mac-dock-item-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.mac-dock-item {
  position: relative;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              width 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.2s, 
              border-color 0.2s;
  transform-origin: bottom center;
  overflow: visible;
}

.dark-mode .mac-dock-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-dock-item:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.dark-mode .mac-dock-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.15);
}

.mac-dock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #1e3a8a;
  background-color: var(--primary);
  position: absolute;
  bottom: -6px;
  box-shadow: 0 0 8px #1e3a8a;
  box-shadow: 0 0 8px var(--primary);
  transition: all 0.3s ease;
}

/* ============================================ */
/* LAUNCHPAD FULLSCREEN OVERLAY */
/* ============================================ */
.launchpad-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1300;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.launchpad-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.dark-mode .launchpad-overlay {
  background: rgba(15, 23, 42, 0.85);
}

.launchpad-search-container {
  width: 100%;
  max-width: 400px;
  margin-bottom: 40px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.launchpad-overlay.open .launchpad-search-container {
  transform: translateY(0);
}

.launchpad-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  color: #0f172a !important;
  color: var(--text-primary) !important;
  padding: 10px 16px 10px 40px;
  font-size: 16px;
  outline: none;
  transition: all 0.2s;
}

.dark-mode .launchpad-search-input {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.launchpad-search-input:focus {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: #1e3a8a !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.dark-mode .launchpad-search-input:focus {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: #1e3a8a !important;
  border-color: var(--primary) !important;
}

.launchpad-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  color: var(--text-muted);
}

.launchpad-grid-container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.launchpad-overlay.open .launchpad-grid-container {
  transform: translateY(0);
}

.launchpad-category-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.launchpad-category-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1e3a8a;
  color: var(--primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 8px;
}

.dark-mode .launchpad-category-title {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.launchpad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.launchpad-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  border-radius: 18px;
  cursor: pointer;
  background: transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.launchpad-item:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

.dark-mode .launchpad-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.launchpad-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
  margin-bottom: 10px;
  transition: transform 0.2s;
}

.launchpad-item:hover .launchpad-item-icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
}

.launchpad-item-text {
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  color: #0f172a;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ============================================ */
/* ULTRA MODERN BUTTONS & TRANSFORMS */
/* ============================================ */
.MuiButton-contained {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%) !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  letter-spacing: 0.5px !important;
  padding: 8px 20px !important;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25) !important;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.25) !important;
  text-transform: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
}

.MuiButton-contained:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%) !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4), 
              0 0 12px rgba(30, 58, 138, 0.2) !important;
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4), 
              0 0 12px rgba(var(--primary-rgb), 0.2) !important;
  transform: translateY(-2px) scale(1.03) !important;
}

.MuiButton-contained:active {
  transform: translateY(0) scale(1.0) !important;
}

.MuiButton-containedSecondary {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%) !important;
  box-shadow: 0 4px 14px rgba(255, 179, 0, 0.25) !important;
}

.MuiButton-containedSecondary:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%) !important;
  box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4), 
              0 0 12px rgba(255, 179, 0, 0.2) !important;
}

.MuiButton-containedError {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c) !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25) !important;
}

.MuiButton-containedError:hover {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c) !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

.MuiButton-outlined {
  border: 1.5px solid #cbd5e1 !important;
  border: 1.5px solid var(--border-color) !important;
  color: #0f172a !important;
  color: var(--text-primary) !important;
  background: transparent !important;
  border-radius: 12px !important;
  text-transform: none !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  font-weight: 600 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.MuiButton-outlined:hover {
  border-color: #1e3a8a !important;
  border-color: var(--primary) !important;
  background: #eff6ff !important;
  background: var(--primary-light) !important;
  color: #1e3a8a !important;
  color: var(--primary) !important;
  transform: translateY(-1px) !important;
}

/* ============================================ */
/* 2D & 3D ANIMATIONS */
/* ============================================ */
.MuiCard-root {
  background: #ffffff !important;
  background: var(--card-bg) !important;
  border: 1px solid #e2e8f0 !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 16px !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  box-shadow: var(--card-shadow) !important;
  color: #0f172a !important;
  color: var(--text-primary) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s !important;
}

.MuiCard-root:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08), 
              0 0 1px rgba(30, 58, 138, 0.1) !important;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08), 
              0 0 1px rgba(var(--primary-rgb), 0.1) !important;
  border-color: rgba(30, 58, 138, 0.2) !important;
  border-color: rgba(var(--primary-rgb), 0.2) !important;
}

.dark-mode .MuiCard-root:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 
              0 0 1px rgba(30, 58, 138, 0.2) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 
              0 0 1px rgba(var(--primary-rgb), 0.2) !important;
}

/* Page fade-in/slide-up animation */
.page-fade-in {
  animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3D Flip Card Effect */
.flip-card {
  background-color: transparent;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  border-radius: var(--radius-lg);
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* Font override */

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

body {
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif;
  font-family: var(--font-family);
  background: #f8fafc;
  background: var(--content-bg);
  min-height: 100vh;
  color: #0f172a;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
}

/* ============================================ */
/* CARDS — Clean White Cards */
/* ============================================ */

.MuiCard-root {
  background: #ffffff !important;
  background: var(--card-bg) !important;
  border: 1px solid #e2e8f0 !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 16px !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  box-shadow: var(--card-shadow) !important;
  color: #0f172a !important;
  color: var(--text-primary) !important;
  transition: box-shadow 0.2s ease !important;
}

.MuiCard-root:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================ */
/* PAPER — Clean White */
/* ============================================ */

.MuiPaper-root {
  background: #ffffff !important;
  background: var(--card-bg) !important;
  color: #0f172a !important;
  color: var(--text-primary) !important;
}

/* ============================================ */
/* BUTTONS */
/* ============================================ */

.MuiButton-contained {
  background: #1e3a8a !important;
  background: var(--primary) !important;
  border: none !important;
  border-radius: 10px !important;
  border-radius: var(--radius-md) !important;
  font-weight: 700 !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  letter-spacing: 0.3px !important;
  padding: 6px 16px !important;
  box-shadow: none !important;
  text-transform: none !important;
  transition: background 0.2s ease !important;
}

.MuiButton-contained:hover {
  background: #172554 !important;
  background: var(--primary-dark) !important;
  box-shadow: 0 2px 6px rgba(26, 158, 143, 0.3) !important;
}

.MuiButton-containedSecondary {
  background: #d97706 !important;
  background: var(--secondary) !important;
}

.MuiButton-containedSecondary:hover {
  background: #1976d2 !important;
}

.MuiButton-containedError {
  background: #ef4444 !important;
  background: var(--danger) !important;
}

.MuiButton-containedError:hover {
  background: #c62828 !important;
}

.MuiButton-outlined {
  border: 1px solid #cbd5e1 !important;
  border: 1px solid var(--border-color) !important;
  color: #0f172a !important;
  color: var(--text-primary) !important;
  background: transparent !important;
  border-radius: 10px !important;
  border-radius: var(--radius-md) !important;
  text-transform: none !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  transition: all 0.2s ease !important;
}

.MuiButton-outlined:hover {
  border-color: #1e3a8a !important;
  border-color: var(--primary) !important;
  background: #eff6ff !important;
  background: var(--primary-light) !important;
  color: #1e3a8a !important;
  color: var(--primary) !important;
}

.MuiButton-text {
  text-transform: none !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
}

/* ============================================ */
/* APPBAR — White Top Bar */
/* ============================================ */

.MuiAppBar-root {
  background: #ffffff !important;
  background: var(--topbar-bg) !important;
  color: #0f172a !important;
  color: var(--topbar-text) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid var(--topbar-border) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  box-shadow: var(--topbar-shadow) !important;
}

/* ============================================ */
/* DRAWER — Dark Teal Sidebar */
/* ============================================ */

.MuiDrawer-paper {
  background: linear-gradient(180deg, #1a2332 0%, #15202e 50%, #0f1923 100%) !important;
  border-right: none !important;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2) !important;
  color: #94a3b8 !important;
  color: var(--sidebar-text) !important;
}

/* Sidebar Header */
.MuiDrawer-paper .MuiToolbar-root {
  background: #090d16 !important;
  background: var(--sidebar-header-bg) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  min-height: 56px !important;
}

/* Sidebar Section Headers */
.sidebar-section-header {
  color: #64748b !important;
  color: var(--sidebar-section-text) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 12px 16px 4px 16px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  -webkit-user-select: none !important;
          user-select: none !important;
}

.sidebar-section-header:hover {
  color: #ffffff !important;
  color: var(--sidebar-text-hover) !important;
}

/* Sidebar Menu Items */
.MuiDrawer-paper .MuiListItemButton-root {
  margin: 1px 0 !important;
  border-radius: 0 !important;
  padding: 6px 16px !important;
  transition: all 0.15s ease !important;
  color: #94a3b8 !important;
  color: var(--sidebar-text) !important;
  min-height: 36px !important;
}

.MuiDrawer-paper .MuiListItemButton-root:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  color: var(--sidebar-text-hover) !important;
}

.MuiDrawer-paper .MuiListItemButton-root.Mui-selected {
  background: rgba(59, 130, 246, 0.16) !important;
  background: var(--sidebar-active-bg) !important;
  color: #ffffff !important;
  color: var(--sidebar-text-hover) !important;
  border-left: 3px solid #38bdf8 !important;
  border-left: 3px solid var(--sidebar-icon) !important;
}

.MuiDrawer-paper .MuiListItemIcon-root {
  color: #94a3b8 !important;
  color: var(--sidebar-text) !important;
  min-width: 32px !important;
  transition: color 0.15s ease !important;
}

.MuiDrawer-paper .MuiListItemButton-root:hover .MuiListItemIcon-root,
.MuiDrawer-paper .MuiListItemButton-root.Mui-selected .MuiListItemIcon-root {
  color: #38bdf8 !important;
  color: var(--sidebar-icon) !important;
}

.MuiDrawer-paper .MuiListItemText-primary {
  font-size: 13px !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
}

.MuiDrawer-paper .MuiSvgIcon-root {
  font-size: 18px !important;
}

/* Nested sub-menu items */
.MuiDrawer-paper .MuiCollapse-root .MuiListItemButton-root {
  padding-left: 44px !important;
  font-size: 12.5px !important;
}

/* ============================================ */
/* TEXT FIELDS — Clean Inputs */
/* ============================================ */

.MuiTextField-root .MuiOutlinedInput-root {
  background: #ffffff !important;
  background: var(--card-bg) !important;
  border-radius: 10px !important;
  border-radius: var(--radius-md) !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
}

.MuiTextField-root .MuiOutlinedInput-notchedOutline {
  border-color: #cbd5e1 !important;
  border-color: var(--border-color) !important;
}

.MuiTextField-root .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: #1e3a8a !important;
  border-color: var(--primary) !important;
}

.MuiTextField-root .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #1e3a8a !important;
  border-color: var(--primary) !important;
  border-width: 2px !important;
}

.MuiTextField-root .MuiInputBase-input {
  color: #0f172a !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  font-size: 14px !important;
}

.MuiTextField-root .MuiInputLabel-root {
  color: #475569 !important;
  color: var(--text-secondary) !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
}

.MuiTextField-root .MuiInputLabel-root.Mui-focused {
  color: #1e3a8a !important;
  color: var(--primary) !important;
}

/* ============================================ */
/* TABLES — Clean Tables */
/* ============================================ */

.MuiTableContainer-root {
  background: #ffffff !important;
  background: var(--card-bg) !important;
  border-radius: 16px !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid #e2e8f0 !important;
  border: 1px solid var(--card-border) !important;
  box-shadow: none !important;
}

.MuiTableHead-root {
  background: #f8f9fa !important;
}

.MuiTableCell-head {
  color: #0f172a !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  font-size: 13px !important;
  border-bottom: 2px solid #cbd5e1 !important;
  border-bottom: 2px solid var(--border-color) !important;
  background: transparent !important;
  padding: 10px 16px !important;
}

.MuiTableCell-body {
  color: #475569 !important;
  color: var(--text-secondary) !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-bottom: 1px solid var(--border-light) !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
}

.MuiTableRow-root:hover {
  background: #f5f8ff !important;
}

/* ============================================ */
/* CHIPS — Clean Tags */
/* ============================================ */

.MuiChip-root {
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  border-radius: var(--radius-sm) !important;
}

.MuiChip-colorSuccess {
  background: #d1fae5 !important;
  background: var(--success-light) !important;
  color: #10b981 !important;
  color: var(--success) !important;
}

.MuiChip-colorError {
  background: #fee2e2 !important;
  background: var(--danger-light) !important;
  color: #ef4444 !important;
  color: var(--danger) !important;
}

.MuiChip-colorPrimary {
  background: #eff6ff !important;
  background: var(--primary-light) !important;
  color: #1e3a8a !important;
  color: var(--primary) !important;
}

.MuiChip-colorInfo {
  background: #dbeafe !important;
  background: var(--info-light) !important;
  color: #3b82f6 !important;
  color: var(--info) !important;
}

.MuiChip-colorWarning {
  background: #fef3c7 !important;
  background: var(--warning-light) !important;
  color: #f59e0b !important;
  color: var(--warning) !important;
}

/* ============================================ */
/* DIALOGS — Clean Modal */
/* ============================================ */

.MuiDialog-paper {
  background: #ffffff !important;
  background: var(--card-bg) !important;
  border-radius: 16px !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}

.MuiDialogTitle-root {
  color: #0f172a !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-bottom: 1px solid var(--border-light) !important;
  padding: 16px 24px !important;
}

.MuiDialogActions-root {
  border-top: 1px solid #f1f5f9 !important;
  border-top: 1px solid var(--border-light) !important;
  padding: 12px 24px !important;
}

/* ============================================ */
/* TABS — Clean Tabs */
/* ============================================ */

.MuiTabs-root {
  background: transparent !important;
  border-bottom: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.MuiTab-root {
  color: #475569 !important;
  color: var(--text-secondary) !important;
  font-weight: 700 !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  text-transform: none !important;
  font-size: 13px !important;
  min-height: 40px !important;
}

.MuiTab-root.Mui-selected {
  color: #1e3a8a !important;
  color: var(--primary) !important;
}

.MuiTabs-indicator {
  background: #1e3a8a !important;
  background: var(--primary) !important;
  height: 3px !important;
  border-radius: 3px 3px 0 0 !important;
}

/* ============================================ */
/* AVATARS */
/* ============================================ */

.MuiAvatar-root {
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
}

/* ============================================ */
/* TOOLTIPS */
/* ============================================ */

.MuiTooltip-tooltip {
  background: #333 !important;
  border-radius: 6px !important;
  border-radius: var(--radius-sm) !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  font-size: 12px !important;
}

/* ============================================ */
/* MENUS — Dropdown */
/* ============================================ */

.MuiMenu-paper {
  background: #ffffff !important;
  background: var(--card-bg) !important;
  border: 1px solid #cbd5e1 !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 10px !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.MuiMenuItem-root {
  color: #0f172a !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  font-size: 13px !important;
}

.MuiMenuItem-root:hover {
  background: #f5f5f5 !important;
}

/* ============================================ */
/* DIVIDERS */
/* ============================================ */

.MuiDivider-root {
  border-color: #f1f5f9 !important;
  border-color: var(--border-light) !important;
}

/* ============================================ */
/* TYPOGRAPHY */
/* ============================================ */

.MuiTypography-root {
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  color: #0f172a;
  color: var(--text-primary);
}

.MuiTypography-colorTextSecondary {
  color: #475569 !important;
  color: var(--text-secondary) !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #0f172a;
  color: var(--text-primary);
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif;
  font-family: var(--font-family);
}

/* ============================================ */
/* SCROLLBAR */
/* ============================================ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

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

/* Sidebar scrollbar */
.MuiDrawer-paper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.MuiDrawer-paper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* ============================================ */
/* ICON BUTTONS — Top Bar Icons */
/* ============================================ */

.MuiIconButton-root {
  color: #475569 !important;
  color: var(--text-secondary) !important;
  transition: color 0.2s ease !important;
}

.MuiIconButton-root:hover {
  color: #1e3a8a !important;
  color: var(--primary) !important;
  background: rgba(26, 158, 143, 0.06) !important;
}

/* ============================================ */
/* PROGRESS */
/* ============================================ */

.MuiLinearProgress-root {
  background: #e0e0e0 !important;
  border-radius: 6px !important;
  border-radius: var(--radius-sm) !important;
}

.MuiLinearProgress-bar {
  background: #1e3a8a !important;
  background: var(--primary) !important;
  border-radius: 6px !important;
  border-radius: var(--radius-sm) !important;
}

.MuiCircularProgress-root {
  color: #1e3a8a !important;
  color: var(--primary) !important;
}

/* ============================================ */
/* ALERTS */
/* ============================================ */

.MuiAlert-root {
  border-radius: 10px !important;
  border-radius: var(--radius-md) !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
}

.MuiAlert-standardSuccess {
  background: #d1fae5 !important;
  background: var(--success-light) !important;
  color: #2e7d32 !important;
}

.MuiAlert-standardError {
  background: #fee2e2 !important;
  background: var(--danger-light) !important;
  color: #c62828 !important;
}

.MuiAlert-standardWarning {
  background: #fef3c7 !important;
  background: var(--warning-light) !important;
  color: #e65100 !important;
}

.MuiAlert-standardInfo {
  background: #dbeafe !important;
  background: var(--info-light) !important;
  color: #1565c0 !important;
}

/* ============================================ */
/* SELECT / AUTOCOMPLETE */
/* ============================================ */

.MuiSelect-select {
  color: #0f172a !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
}

.MuiSelect-icon {
  color: #475569 !important;
  color: var(--text-secondary) !important;
}

.MuiAutocomplete-paper {
  border: 1px solid #cbd5e1 !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================ */
/* CHECKBOX & RADIO */
/* ============================================ */

.MuiCheckbox-root,
.MuiRadio-root {
  color: #cbd5e1 !important;
  color: var(--border-color) !important;
}

.MuiCheckbox-root.Mui-checked,
.MuiRadio-root.Mui-checked {
  color: #1e3a8a !important;
  color: var(--primary) !important;
}

/* ============================================ */
/* SWITCH */
/* ============================================ */

.MuiSwitch-switchBase.Mui-checked {
  color: #1e3a8a !important;
  color: var(--primary) !important;
}

.MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track {
  background: #1e3a8a !important;
  background: var(--primary) !important;
  opacity: 0.5 !important;
}

/* ============================================ */
/* BREADCRUMBS */
/* ============================================ */

.MuiBreadcrumbs-root {
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  font-size: 13px !important;
}

/* ============================================ */
/* PAGINATION */
/* ============================================ */

.MuiPagination-root .MuiPaginationItem-root {
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
}

.MuiPagination-root .Mui-selected {
  background: #1e3a8a !important;
  background: var(--primary) !important;
  color: white !important;
}

/* ============================================ */
/* STAT CARDS — Dashboard Cards */
/* ============================================ */

.stat-card-primary {
  background: #1e3a8a !important;
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
}

.stat-card-secondary {
  background: #d97706 !important;
  background: var(--secondary) !important;
  color: white !important;
  border: none !important;
}

.stat-card-success {
  background: #10b981 !important;
  background: var(--success) !important;
  color: white !important;
  border: none !important;
}

.stat-card-warning {
  background: #f59e0b !important;
  background: var(--warning) !important;
  color: white !important;
  border: none !important;
}

/* ============================================ */
/* LOGOUT BUTTON — Red like ePrashasan */
/* ============================================ */

.logout-btn {
  background: #ef4444 !important;
  background: var(--danger) !important;
  color: white !important;
  border-radius: 10px !important;
  border-radius: var(--radius-md) !important;
  font-weight: 700 !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  text-transform: none !important;
  padding: 4px 16px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

.logout-btn:hover {
  background: #c62828 !important;
}

/* ============================================ */
/* TOP BAR SCHOOL NAME */
/* ============================================ */

.school-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
  color: var(--text-primary);
}

.school-name img {
  height: 36px;
  width: auto;
}

/* ============================================ */
/* TOP BAR ACTION ICONS */
/* ============================================ */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-actions .MuiIconButton-root {
  color: #475569 !important;
  color: var(--text-secondary) !important;
  padding: 8px !important;
}

.topbar-actions .MuiIconButton-root:hover {
  color: #1e3a8a !important;
  color: var(--primary) !important;
  background: rgba(26, 158, 143, 0.06) !important;
}

/* ============================================ */
/* FORM LABELS */
/* ============================================ */

.MuiFormLabel-root {
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  color: #475569 !important;
  color: var(--text-secondary) !important;
}

.MuiFormLabel-root.Mui-focused {
  color: #1e3a8a !important;
  color: var(--primary) !important;
}

/* ============================================ */
/* SNACKBAR / TOAST */
/* ============================================ */

.MuiSnackbarContent-root {
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
}

/* ============================================ */
/* MODERN ANIMATIONS & MICRO-INTERACTIONS      */
/* ============================================ */

/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

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

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

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

/* Animate cards on load */
.MuiCard-root {
  animation: fadeInUp 0.4s ease-out both !important;
}

.MuiGrid-item:nth-child(1) .MuiCard-root { animation-delay: 0.05s !important; }
.MuiGrid-item:nth-child(2) .MuiCard-root { animation-delay: 0.1s !important; }
.MuiGrid-item:nth-child(3) .MuiCard-root { animation-delay: 0.15s !important; }
.MuiGrid-item:nth-child(4) .MuiCard-root { animation-delay: 0.2s !important; }
.MuiGrid-item:nth-child(5) .MuiCard-root { animation-delay: 0.25s !important; }
.MuiGrid-item:nth-child(6) .MuiCard-root { animation-delay: 0.3s !important; }

/* Cards lift on hover */
.MuiCard-root {
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.MuiCard-root:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Stat card number animation */
.MuiCard-root .MuiTypography-h4,
.MuiCard-root .MuiTypography-h3 {
  animation: countUp 0.6s ease-out both;
}

/* Button press effect */
.MuiButton-contained:active {
  transform: scale(0.97) !important;
  transition: transform 0.1s ease !important;
}

/* Avatar pulse on hover */
.MuiAvatar-root {
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.MuiAvatar-root:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15) !important;
}

/* Sidebar item slide-in */
.MuiDrawer-paper .MuiListItemButton-root {
  animation: slideInLeft 0.3s ease-out both !important;
}

/* Gradient animated header for stat cards */
.stat-card-gradient {
  background: linear-gradient(-45deg, #1a9e8f, #2196f3, #4caf50, #1a9e8f) !important;
  background-size: 300% 300% !important;
  animation: gradientShift 6s ease infinite !important;
  color: white !important;
  border: none !important;
}

/* Loading skeleton shimmer */
.skeleton-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.5s infinite !important;
  border-radius: 10px !important;
  border-radius: var(--radius-md) !important;
}

/* Smooth page transitions */
.MuiBox-root {
  animation: fadeIn 0.3s ease-out;
}

/* Table row highlight animation */
.MuiTableRow-root {
  transition: background 0.2s ease !important;
}

/* Chip hover effect */
.MuiChip-root {
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.MuiChip-root:hover {
  transform: scale(1.05) !important;
}

/* Dialog slide-in */
.MuiDialog-paper {
  animation: fadeInUp 0.3s ease-out !important;
}

/* Circular progress spin enhancement */
.MuiCircularProgress-root {
  filter: drop-shadow(0 2px 4px rgba(26, 158, 143, 0.3)) !important;
}

/* Modern focus ring */
*:focus-visible {
  outline: 2px solid #1e3a8a !important;
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

/* Toast notification slide-in */
.Toastify__toast {
  border-radius: 10px !important;
  border-radius: var(--radius-md) !important;
  font-family: 'Inter', 'Cambay', 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-family: var(--font-family) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}

/* ============================================ */
/* MOBILE RESPONSIVE OPTIMIZATIONS */
/* ============================================ */
@media (max-width: 600px) {
  .launchpad-overlay {
    padding: 20px 16px 80px;
  }

  .launchpad-search-container {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .launchpad-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .launchpad-item {
    padding: 12px 4px;
    border-radius: 14px;
  }

  .launchpad-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin-bottom: 6px;
  }

  .launchpad-item-text {
    font-size: 10px;
  }

  .launchpad-category-title {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .launchpad-grid-container {
    gap: 20px;
  }

  /* Ensure cards don't break on mobile */
  .MuiCard-root {
    border-radius: 10px !important;
    border-radius: var(--radius-md) !important;
  }

  /* Compact table cells on mobile */
  .MuiTableCell-root {
    padding: 6px 8px !important;
    font-size: 12px !important;
  }

  /* Smaller buttons on mobile */
  .MuiButton-contained {
    padding: 6px 14px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }

  .MuiButton-outlined {
    padding: 5px 12px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }
}

/* Safe area for iOS notch */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 600px) {
    .mobile-bottom-nav {
      padding-bottom: calc(4px + env(safe-area-inset-bottom)) !important;
    }
  }
}

/* ============================================ */
/* Certificate & Enhanced UI Aesthetic Helpers */
/* ============================================ */
.cert-card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-card-glass:hover {
  box-shadow: 0 12px 36px rgba(31, 38, 135, 0.12);
  transform: translateY(-2px);
}

.cert-status-pending {
  background-color: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #ffedd5 !important;
  font-weight: 600 !important;
}

.cert-status-approved {
  background-color: #f0fdf4 !important;
  color: #15803d !important;
  border: 1px solid #dcfce7 !important;
  font-weight: 600 !important;
}

.cert-status-issued {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #dbeafe !important;
  font-weight: 600 !important;
}

.cert-status-rejected {
  background-color: #fef2f2 !important;
  color: #b91c1c !important;
  border: 1px solid #fee2e2 !important;
  font-weight: 600 !important;
}

/* Certificate Print Optimization */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .no-print, .MuiAppBar-root, .MuiDrawer-root, .no-print * {
    display: none !important;
  }
}

/* =================================================== */
/* 📱 MOBILE FIRST & RESPONSIVE DESIGN ENHANCEMENTS   */
/* =================================================== */

html, body {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Safe Area Inset Support for Modern iOS / Android Edge-to-Edge */
body {
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* Mobile-Friendly Table Containers */
.MuiTableContainer-root {
  -webkit-overflow-scrolling: touch !important;
  max-width: 100% !important;
  overflow-x: auto !important;
}

/* Responsive Touch Targets */
@media (max-width: 768px) {
  button, .MuiButton-root, .MuiIconButton-root, .MuiTab-root {
    min-height: 44px !important;
  }
  
  .MuiTableCell-root {
    padding: 10px 8px !important;
    font-size: 0.85rem !important;
  }

  .MuiTableCell-head {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  /* Responsive Cards & Dialogs */
  .MuiDialog-paper {
    margin: 12px !important;
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    border-radius: 12px !important;
  }

  .MuiCard-root {
    border-radius: 12px !important;
  }

  /* Fluid typography on small screens */
  h4.MuiTypography-root {
    font-size: 1.35rem !important;
  }
  h5.MuiTypography-root {
    font-size: 1.15rem !important;
  }
  h6.MuiTypography-root {
    font-size: 1rem !important;
  }

  /* Full-width action toolbars */
  .mobile-stack {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .mobile-full-width {
    width: 100% !important;
  }
}

/* Gallery image zoom overlay */
.timetable-gallery-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.timetable-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* ============================================
   MOBILE RESPONSIVE OVERRIDES
   ============================================ */

/* Mobile-first table & layout handling without viewport blowout */
@media (max-width: 768px) {
  /* Ensure all tables scroll internally inside containers without pushing page width */
  .MuiTableContainer-root {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
  }

  .MuiTableContainer-root > .MuiTable-root {
    width: -webkit-max-content;
    width: max-content;
    min-width: 100%;
  }

  .MuiTable-root {
    max-width: 100%;
  }

  /* Prevent MUI Grid container negative margin blowout */
  .MuiGrid-container {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Ensure tabs never blow out horizontal width */
  .MuiTabs-root {
    max-width: 100% !important;
  }
  .MuiTabs-scroller {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .MuiTableCell-root {
    padding: 6px 8px !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
  }

  .MuiTableCell-head {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
  }

  /* Compact cards on mobile */
  .MuiCard-root {
    margin-bottom: 8px;
  }

  .MuiCardContent-root {
    padding: 12px !important;
  }

  .MuiCardContent-root:last-child {
    padding-bottom: 12px !important;
  }

  /* Stack page headers vertically */
  .page-header,
  .MuiBox-root > .MuiBox-root:first-child {
    flex-wrap: wrap;
  }

  /* Full-width buttons on mobile */
  .MuiButton-root {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
  }

  /* Responsive form inputs */
  .MuiOutlinedInput-root {
    font-size: 0.85rem !important;
  }

  .MuiInputLabel-root {
    font-size: 0.8rem !important;
  }

  /* Modal/Dialog full-screen on mobile */
  .MuiDialog-paper {
    margin: 8px !important;
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
  }

  .MuiDialog-paperFullWidth {
    width: calc(100vw - 16px) !important;
  }

  /* Responsive typography */
  .MuiTypography-h4 {
    font-size: 1.25rem !important;
  }

  .MuiTypography-h5 {
    font-size: 1.1rem !important;
  }

  .MuiTypography-h6 {
    font-size: 0.95rem !important;
  }

  /* Fix select dropdowns on mobile */
  .MuiSelect-select {
    font-size: 0.85rem !important;
    padding: 8px 12px !important;
  }

  /* Tab labels smaller on mobile */
  .MuiTab-root {
    font-size: 0.7rem !important;
    min-width: 0 !important;
    padding: 6px 8px !important;
  }

  .MuiTabs-root {
    min-height: 36px !important;
  }

  /* Chip sizes */
  .MuiChip-root {
    height: 24px !important;
    font-size: 0.7rem !important;
  }

  /* Alert/Snackbar positioning */
  .MuiAlert-root {
    font-size: 0.8rem !important;
  }

  /* Tooltip */
  .MuiTooltip-tooltip {
    font-size: 0.7rem !important;
  }

  /* Bottom nav clearance for main content */
  main, [role="main"],
  .main-content {
    padding-bottom: 70px !important;
  }

  /* Attendance/Timetable wide tables */
  .timetable-grid-wrapper,
  .attendance-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
    max-width: 100%;
  }

  /* Grid form items - force stacking */
  .MuiGrid-item {
    padding: 4px 8px !important;
  }

  /* Breadcrumbs */
  .MuiBreadcrumbs-root {
    font-size: 0.75rem !important;
  }

  /* Pagination */
  .MuiTablePagination-root {
    overflow: visible;
  }

  .MuiTablePagination-toolbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 4px !important;
  }

  .MuiTablePagination-selectLabel,
  .MuiTablePagination-displayedRows {
    font-size: 0.7rem !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .MuiTypography-h4 {
    font-size: 1.1rem !important;
  }

  .MuiTypography-h5 {
    font-size: 0.95rem !important;
  }

  .MuiButton-root {
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
  }

  .MuiTableCell-root {
    padding: 4px 6px !important;
    font-size: 0.7rem !important;
  }

  .MuiCardContent-root {
    padding: 8px !important;
  }
}

/* Safe area insets for notched phones (iPhone X+) */
@supports (padding: max(0px)) {
  .mobile-bottom-nav {
    padding-bottom: max(4px, env(safe-area-inset-bottom)) !important;
  }

  main, [role="main"] {
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-bottom-nav {
    height: 42px !important;
  }

  .MuiBottomNavigationAction-root .MuiSvgIcon-root {
    font-size: 1rem !important;
  }

  .MuiBottomNavigationAction-label {
    font-size: 0.6rem !important;
  }
}

/* Print media - hide nav elements */
@media print {
  .mobile-bottom-nav,
  .MuiDrawer-root,
  .MuiAppBar-root {
    display: none !important;
  }

  main, [role="main"] {
    padding: 0 !important;
    margin: 0 !important;
  }
}

:root {
  --toastify-color-light: #fff;
  --toastify-color-dark: #121212;
  --toastify-color-info: #3498db;
  --toastify-color-success: #07bc0c;
  --toastify-color-warning: #f1c40f;
  --toastify-color-error: hsl(6, 78%, 57%);
  --toastify-color-transparent: rgba(255, 255, 255, 0.7);

  --toastify-icon-color-info: var(--toastify-color-info);
  --toastify-icon-color-success: var(--toastify-color-success);
  --toastify-icon-color-warning: var(--toastify-color-warning);
  --toastify-icon-color-error: var(--toastify-color-error);

  --toastify-container-width: fit-content;
  --toastify-toast-width: 320px;
  --toastify-toast-offset: 16px;
  --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
  --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
  --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
  --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
  --toastify-toast-background: #fff;
  --toastify-toast-padding: 14px;
  --toastify-toast-min-height: 64px;
  --toastify-toast-max-height: 800px;
  --toastify-toast-bd-radius: 6px;
  --toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  --toastify-font-family: sans-serif;
  --toastify-z-index: 9999;
  --toastify-text-color-light: #757575;
  --toastify-text-color-dark: #fff;

  /* Used only for colored theme */
  --toastify-text-color-info: #fff;
  --toastify-text-color-success: #fff;
  --toastify-text-color-warning: #fff;
  --toastify-text-color-error: #fff;

  --toastify-spinner-color: #616161;
  --toastify-spinner-color-empty-area: #e0e0e0;
  --toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
  --toastify-color-progress-dark: #bb86fc;
  --toastify-color-progress-info: var(--toastify-color-info);
  --toastify-color-progress-success: var(--toastify-color-success);
  --toastify-color-progress-warning: var(--toastify-color-warning);
  --toastify-color-progress-error: var(--toastify-color-error);
  /* used to control the opacity of the progress trail */
  --toastify-color-progress-bgo: 0.2;
}

.Toastify__toast-container {
  z-index: 9999;
  z-index: var(--toastify-z-index);
  -webkit-transform: translate3d(0, 0, 9999);
  -webkit-transform: translate3d(0, 0, var(--toastify-z-index));
  position: fixed;
  width: -webkit-fit-content;
  width: fit-content;
  width: var(--toastify-container-width);
  box-sizing: border-box;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.Toastify__toast-container--top-left {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  left: max(16px, env(safe-area-inset-left));
  left: var(--toastify-toast-left);
}
.Toastify__toast-container--top-center {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}
.Toastify__toast-container--top-right {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  right: max(16px, env(safe-area-inset-right));
  right: var(--toastify-toast-right);
  align-items: end;
}
.Toastify__toast-container--bottom-left {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  left: max(16px, env(safe-area-inset-left));
  left: var(--toastify-toast-left);
}
.Toastify__toast-container--bottom-center {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}
.Toastify__toast-container--bottom-right {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  right: max(16px, env(safe-area-inset-right));
  right: var(--toastify-toast-right);
  align-items: end;
}

.Toastify__toast {
  --y: 0;
  position: relative;
  touch-action: none;
  width: 320px;
  width: var(--toastify-toast-width);
  min-height: 64px;
  min-height: var(--toastify-toast-min-height);
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 14px;
  padding: var(--toastify-toast-padding);
  border-radius: 6px;
  border-radius: var(--toastify-toast-bd-radius);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  box-shadow: var(--toastify-toast-shadow);
  max-height: 800px;
  max-height: var(--toastify-toast-max-height);
  font-family: sans-serif;
  font-family: var(--toastify-font-family);
  /* webkit only issue #791 */
  z-index: 0;
  /* inner swag */
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  word-break: break-word;
}

@media only screen and (max-width: 480px) {
  .Toastify__toast-container {
    width: 100vw;
    left: env(safe-area-inset-left);
    margin: 0;
  }
  .Toastify__toast-container--top-left,
  .Toastify__toast-container--top-center,
  .Toastify__toast-container--top-right {
    top: env(safe-area-inset-top);
    transform: translateX(0);
  }
  .Toastify__toast-container--bottom-left,
  .Toastify__toast-container--bottom-center,
  .Toastify__toast-container--bottom-right {
    bottom: env(safe-area-inset-bottom);
    transform: translateX(0);
  }
  .Toastify__toast-container--rtl {
    right: env(safe-area-inset-right);
    left: auto;
    left: initial;
  }
  .Toastify__toast {
    --toastify-toast-width: 100%;
    margin-bottom: 0;
    border-radius: 0;
  }
}

.Toastify__toast-container[data-stacked='true'] {
  width: 320px;
  width: var(--toastify-toast-width);
}

.Toastify__toast--stacked {
  position: absolute;
  width: 100%;
  transform: translate3d(0, var(--y), 0) scale(var(--s));
  transition: transform 0.3s;
}

.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,
.Toastify__toast--stacked[data-collapsed] .Toastify__close-button {
  transition: opacity 0.1s;
}

.Toastify__toast--stacked[data-collapsed='false'] {
  overflow: visible;
}

.Toastify__toast--stacked[data-collapsed='true']:not(:last-child) > * {
  opacity: 0;
}

.Toastify__toast--stacked:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: calc(var(--g) * 1px);
  bottom: 100%;
}

.Toastify__toast--stacked[data-pos='top'] {
  top: 0;
}

.Toastify__toast--stacked[data-pos='bot'] {
  bottom: 0;
}

.Toastify__toast--stacked[data-pos='bot'].Toastify__toast--stacked:before {
  transform-origin: top;
}

.Toastify__toast--stacked[data-pos='top'].Toastify__toast--stacked:before {
  transform-origin: bottom;
}

.Toastify__toast--stacked:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  transform: scaleY(3);
  z-index: -1;
}

.Toastify__toast--rtl {
  direction: rtl;
}

.Toastify__toast--close-on-click {
  cursor: pointer;
}

.Toastify__toast-icon {
  -webkit-margin-end: 10px;
          margin-inline-end: 10px;
  width: 22px;
  flex-shrink: 0;
  display: flex;
}

.Toastify--animate {
  animation-fill-mode: both;
  animation-duration: 0.5s;
}

.Toastify--animate-icon {
  animation-fill-mode: both;
  animation-duration: 0.3s;
}

.Toastify__toast-theme--dark {
  background: #121212;
  background: var(--toastify-color-dark);
  color: #fff;
  color: var(--toastify-text-color-dark);
}

.Toastify__toast-theme--light {
  background: #fff;
  background: var(--toastify-color-light);
  color: #757575;
  color: var(--toastify-text-color-light);
}

.Toastify__toast-theme--colored.Toastify__toast--default {
  background: #fff;
  background: var(--toastify-color-light);
  color: #757575;
  color: var(--toastify-text-color-light);
}

.Toastify__toast-theme--colored.Toastify__toast--info {
  color: #fff;
  color: var(--toastify-text-color-info);
  background: #3498db;
  background: var(--toastify-color-info);
}

.Toastify__toast-theme--colored.Toastify__toast--success {
  color: #fff;
  color: var(--toastify-text-color-success);
  background: #07bc0c;
  background: var(--toastify-color-success);
}

.Toastify__toast-theme--colored.Toastify__toast--warning {
  color: #fff;
  color: var(--toastify-text-color-warning);
  background: #f1c40f;
  background: var(--toastify-color-warning);
}

.Toastify__toast-theme--colored.Toastify__toast--error {
  color: #fff;
  color: var(--toastify-text-color-error);
  background: hsl(6, 78%, 57%);
  background: var(--toastify-color-error);
}

.Toastify__progress-bar-theme--light {
  background: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
  background: var(--toastify-color-progress-light);
}

.Toastify__progress-bar-theme--dark {
  background: #bb86fc;
  background: var(--toastify-color-progress-dark);
}

.Toastify__progress-bar--info {
  background: #3498db;
  background: var(--toastify-color-progress-info);
}

.Toastify__progress-bar--success {
  background: #07bc0c;
  background: var(--toastify-color-progress-success);
}

.Toastify__progress-bar--warning {
  background: #f1c40f;
  background: var(--toastify-color-progress-warning);
}

.Toastify__progress-bar--error {
  background: hsl(6, 78%, 57%);
  background: var(--toastify-color-progress-error);
}

.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
  background: rgba(255, 255, 255, 0.7);
  background: var(--toastify-color-transparent);
}

.Toastify__close-button {
  color: #fff;
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  outline: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s ease;
  z-index: 1;
}

.Toastify__toast--rtl .Toastify__close-button {
  left: 6px;
  right: auto;
  right: initial;
}

.Toastify__close-button--light {
  color: #000;
  opacity: 0.3;
}

.Toastify__close-button > svg {
  fill: currentColor;
  height: 16px;
  width: 14px;
}

.Toastify__close-button:hover,
.Toastify__close-button:focus {
  opacity: 1;
}

@keyframes Toastify__trackProgress {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

.Toastify__progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.7;
  transform-origin: left;
}

.Toastify__progress-bar--animated {
  animation: Toastify__trackProgress linear 1 forwards;
}

.Toastify__progress-bar--controlled {
  transition: transform 0.2s;
}

.Toastify__progress-bar--rtl {
  right: 0;
  left: auto;
  left: initial;
  transform-origin: right;
  border-bottom-left-radius: 0;
  border-bottom-left-radius: initial;
}

.Toastify__progress-bar--wrp {
  position: absolute;
  overflow: hidden;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  border-bottom-left-radius: 6px;
  border-bottom-left-radius: var(--toastify-toast-bd-radius);
  border-bottom-right-radius: 6px;
  border-bottom-right-radius: var(--toastify-toast-bd-radius);
}

.Toastify__progress-bar--wrp[data-hidden='true'] {
  opacity: 0;
}

.Toastify__progress-bar--bg {
  opacity: 0.2;
  opacity: var(--toastify-color-progress-bgo);
  width: 100%;
  height: 100%;
}

.Toastify__spinner {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: #e0e0e0;
  border-color: var(--toastify-spinner-color-empty-area);
  border-right-color: #616161;
  border-right-color: var(--toastify-spinner-color);
  animation: Toastify__spin 0.65s linear infinite;
}

@keyframes Toastify__bounceInRight {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0);
  }
  75% {
    transform: translate3d(10px, 0, 0);
  }
  90% {
    transform: translate3d(-5px, 0, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutRight {
  20% {
    opacity: 1;
    transform: translate3d(-20px, var(--y), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(2000px, var(--y), 0);
  }
}

@keyframes Toastify__bounceInLeft {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(-3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(25px, 0, 0);
  }
  75% {
    transform: translate3d(-10px, 0, 0);
  }
  90% {
    transform: translate3d(5px, 0, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutLeft {
  20% {
    opacity: 1;
    transform: translate3d(20px, var(--y), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(-2000px, var(--y), 0);
  }
}

@keyframes Toastify__bounceInUp {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(0, 3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }
  75% {
    transform: translate3d(0, 10px, 0);
  }
  90% {
    transform: translate3d(0, -5px, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes Toastify__bounceOutUp {
  20% {
    transform: translate3d(0, calc(var(--y) - 10px), 0);
  }
  40%,
  45% {
    opacity: 1;
    transform: translate3d(0, calc(var(--y) + 20px), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -2000px, 0);
  }
}

@keyframes Toastify__bounceInDown {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(0, -3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 25px, 0);
  }
  75% {
    transform: translate3d(0, -10px, 0);
  }
  90% {
    transform: translate3d(0, 5px, 0);
  }
  to {
    transform: none;
  }
}

@keyframes Toastify__bounceOutDown {
  20% {
    transform: translate3d(0, calc(var(--y) - 10px), 0);
  }
  40%,
  45% {
    opacity: 1;
    transform: translate3d(0, calc(var(--y) + 20px), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 2000px, 0);
  }
}

.Toastify__bounce-enter--top-left,
.Toastify__bounce-enter--bottom-left {
  animation-name: Toastify__bounceInLeft;
}

.Toastify__bounce-enter--top-right,
.Toastify__bounce-enter--bottom-right {
  animation-name: Toastify__bounceInRight;
}

.Toastify__bounce-enter--top-center {
  animation-name: Toastify__bounceInDown;
}

.Toastify__bounce-enter--bottom-center {
  animation-name: Toastify__bounceInUp;
}

.Toastify__bounce-exit--top-left,
.Toastify__bounce-exit--bottom-left {
  animation-name: Toastify__bounceOutLeft;
}

.Toastify__bounce-exit--top-right,
.Toastify__bounce-exit--bottom-right {
  animation-name: Toastify__bounceOutRight;
}

.Toastify__bounce-exit--top-center {
  animation-name: Toastify__bounceOutUp;
}

.Toastify__bounce-exit--bottom-center {
  animation-name: Toastify__bounceOutDown;
}

@keyframes Toastify__zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}

@keyframes Toastify__zoomOut {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0;
    transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 0;
  }
}

.Toastify__zoom-enter {
  animation-name: Toastify__zoomIn;
}

.Toastify__zoom-exit {
  animation-name: Toastify__zoomOut;
}

@keyframes Toastify__flipIn {
  from {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    animation-timing-function: ease-in;
  }
  60% {
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }
  to {
    transform: perspective(400px);
  }
}

@keyframes Toastify__flipOut {
  from {
    transform: translate3d(0, var(--y), 0) perspective(400px);
  }
  30% {
    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);
    opacity: 1;
  }
  to {
    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);
    opacity: 0;
  }
}

.Toastify__flip-enter {
  animation-name: Toastify__flipIn;
}

.Toastify__flip-exit {
  animation-name: Toastify__flipOut;
}

@keyframes Toastify__slideInRight {
  from {
    transform: translate3d(110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInLeft {
  from {
    transform: translate3d(-110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInUp {
  from {
    transform: translate3d(0, 110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideInDown {
  from {
    transform: translate3d(0, -110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}

@keyframes Toastify__slideOutRight {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(110%, var(--y), 0);
  }
}

@keyframes Toastify__slideOutLeft {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(-110%, var(--y), 0);
  }
}

@keyframes Toastify__slideOutDown {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, 500px, 0);
  }
}

@keyframes Toastify__slideOutUp {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, -500px, 0);
  }
}

.Toastify__slide-enter--top-left,
.Toastify__slide-enter--bottom-left {
  animation-name: Toastify__slideInLeft;
}

.Toastify__slide-enter--top-right,
.Toastify__slide-enter--bottom-right {
  animation-name: Toastify__slideInRight;
}

.Toastify__slide-enter--top-center {
  animation-name: Toastify__slideInDown;
}

.Toastify__slide-enter--bottom-center {
  animation-name: Toastify__slideInUp;
}

.Toastify__slide-exit--top-left,
.Toastify__slide-exit--bottom-left {
  animation-name: Toastify__slideOutLeft;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--top-right,
.Toastify__slide-exit--bottom-right {
  animation-name: Toastify__slideOutRight;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--top-center {
  animation-name: Toastify__slideOutUp;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

.Toastify__slide-exit--bottom-center {
  animation-name: Toastify__slideOutDown;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

@keyframes Toastify__spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

