/* ==========================================================================
   IBSC STUDENT FINANCE & ACADEMIC TRACKING SYSTEM - DESIGN SYSTEM (style.css)
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
  /* Light Theme Colors (Minimalist Blue-Slate) */
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-modal: #ffffff;
  --border-color: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  /* Primary Brand - Deep Royal Blue */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 255, 0.1);

  /* Semantic Alerts */
  --green: #10b981;
  --green-light: #ecfdf5;
  --green-hover: #059669;
  
  --yellow: #d97706;
  --yellow-light: #fef3c7;
  
  --red: #ef4444;
  --red-light: #fef2f2;
  --red-hover: #dc2626;

  --cyan: #0891b2;
  --cyan-light: #ecfeff;

  --purple: #7c3aed;
  --purple-light: #f5f3ff;

  --orange: #ea580c;
  --orange-light: #fff7ed;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-sans: 'Outfit', 'Prompt', 'Inter', system-ui, -apple-system, sans-serif;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-app: #090d16;
  --bg-sidebar: #0f172a;
  --bg-card: #1e293b;
  --bg-modal: #1e293b;
  --border-color: #334155;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: rgba(59, 130, 246, 0.12);
  --primary-glow: rgba(59, 130, 246, 0.25);

  --green-light: rgba(16, 185, 129, 0.15);
  --yellow-light: rgba(217, 119, 6, 0.15);
  --red-light: rgba(239, 68, 68, 0.15);
  --cyan-light: rgba(8, 145, 178, 0.15);
  --purple-light: rgba(124, 58, 237, 0.15);
  --orange-light: rgba(234, 88, 12, 0.15);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Hide Scrollbars nicely */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Helper Utilities */
.hidden {
  display: none !important;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-bold { font-weight: 600; }
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.margin-top-md { margin-top: 1.5rem; }

/* Custom Badge Tags */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.status-active { background-color: var(--green-light); color: var(--green); }
.status-leave { background-color: var(--yellow-light); color: var(--yellow); }
.status-maintaining { background-color: var(--cyan-light); color: var(--cyan); }
.status-inactive { background-color: var(--orange-light); color: var(--orange); }
.status-graduated { background-color: var(--purple-light); color: var(--purple); }
.status-withdrawn { background-color: var(--red-light); color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-light);
}
.btn-secondary:hover {
  background-color: var(--primary-glow);
}

.btn-danger {
  background-color: var(--red-light);
  color: var(--red);
  border-color: var(--red-light);
}
.btn-danger:hover {
  background-color: var(--red);
  color: var(--text-inverse);
}

.btn-text {
  background: transparent;
  color: var(--text-muted);
}
.btn-text:hover {
  color: var(--primary);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.btn-icon:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.input-wrapper {
  position: relative;
}
.input-wrapper i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.input-wrapper input {
  padding-left: 2.5rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.form-desc-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.form-help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Alert Boxes */
.alert {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
}
.alert-danger {
  background-color: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.alert-danger i {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   2. Auth / Login Screen
   ========================================================================== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  padding: 2rem;
  transition: background-color var(--transition-normal);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .auth-container {
  background-color: #0b0f19;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  border: 1px solid var(--border-color);
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-logo {
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.auth-logo i {
  width: 20px;
  height: 20px;
}

.auth-header h1 {
  font-family: 'Outfit', 'Prompt', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}
.auth-header .subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Minimalist Demo quick logins underneath form */
.demo-login-panel-minimal {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.demo-login-panel-minimal .demo-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.demo-login-panel-minimal .demo-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}
.btn-demo-link-minimal {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.btn-demo-link-minimal:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}
.demo-login-panel-minimal .divider {
  color: var(--border-color);
  user-select: none;
}

/* ==========================================================================
   3. Main Application Layout
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: 260px;
  background-color: #0f172a; /* Deep Slate Blue */
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: transform var(--transition-normal);
  color: #f8fafc;
}

.sidebar-brand {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.brand-logo {
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
  color: var(--text-inverse);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(37, 99, 255, 0.3);
  transition: all var(--transition-fast);
}
.brand-logo i {
  width: 20px;
  height: 20px;
}
.brand-text h1 {
  font-family: 'Outfit', 'Prompt', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}
.brand-text p {
  font-size: 0.6875rem;
  color: #94a3b8;
  font-weight: 500;
}

.sidebar-nav {
  padding: 1.25rem 0.875rem;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  border-radius: 8px;
  margin-bottom: 0.375rem;
  transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}
.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transform: translateX(4px);
}
.nav-item.active {
  background-color: rgba(59, 130, 246, 0.12); /* Subtle blue-slate tint */
  color: #ffffff;
  font-weight: 600;
  border-left: 3px solid #3b82f6; /* Soft modern minimalist blue indicator */
  padding-left: calc(0.875rem - 3px);
  border-radius: 0 8px 8px 0;
  transform: translateX(4px);
}
.nav-item i {
  width: 18px;
  height: 18px;
  color: inherit;
}
.nav-item.nav-restricted {
  opacity: 0.35;
  cursor: not-allowed;
}
.nav-item.nav-restricted:hover {
  background-color: transparent;
  color: #94a3b8;
}

.nav-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.5px;
  padding: 1.25rem 0.875rem 0.5rem;
  text-transform: uppercase;
}

.nav-programs-list {
  display: flex;
  flex-direction: column;
}

/* Sidebar Footer Profile Card */
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.2);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 170px;
}
.user-avatar {
  width: 36px;
  height: 36px;
  background-color: var(--primary);
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  flex-shrink: 0;
}
.user-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.user-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role-badge {
  font-size: 0.6875rem;
  color: #60a5fa;
  font-weight: 500;
}
.btn-logout-icon {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.btn-logout-icon:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Main Content Layout Adjustments */
.main-content {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Header */
.header {
  height: 70px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
#sidebar-toggle {
  display: none;
}

/* Title container with floating leaf decoration */
.view-title-container {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.header-decor-leaf {
  width: 18px;
  height: 18px;
  color: var(--green); /* Faded Green */
  animation: floatLeaf 4s ease-in-out infinite;
  display: inline-block;
  opacity: 0.8;
}

@keyframes floatLeaf {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(5deg);
  }
}

.view-title {
  font-family: 'Outfit', 'Prompt', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Modern Role Switcher Pill - Minimalist Style */
.header-role-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-app);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.header-role-switcher:hover {
  background: var(--border-color);
}
.header-role-switcher .switcher-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}
.header-role-switcher label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.select-role {
  border: none;
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  outline: none;
  padding: 0;
  margin: 0;
  min-width: 140px;
}
.select-role:focus {
  outline: none;
  box-shadow: none;
}

/* Theme Toggle Button Enhancement */
#theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
#theme-toggle:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg) scale(1.05);
}
[data-theme="dark"] #theme-toggle {
  border-color: #334155;
  background: #1e293b;
}
[data-theme="dark"] #theme-toggle:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  color: #3b82f6;
}

/* App Views Content Body */
.content-body {
  padding: 2rem;
  flex: 1;
  min-width: 0;
}

/* ==========================================================================
   4. Cards & General Layouts
   ========================================================================== */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Filter Card Styling */
.filter-card {
  padding: 1.25rem 1.5rem;
}
.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}
.filter-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}
.filter-title i {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.filters-grid .form-group {
  margin-bottom: 0;
}

/* Dashboard Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.stat-icon i {
  width: 20px;
  height: 20px;
}

/* Color Themes for Statistics */
.icon-blue { background-color: var(--primary-light); color: var(--primary); }
.icon-green { background-color: var(--green-light); color: var(--green); }
.icon-yellow { background-color: var(--yellow-light); color: var(--yellow); }
.icon-cyan { background-color: var(--cyan-light); color: var(--cyan); }
.icon-orange { background-color: var(--orange-light); color: var(--orange); }
.icon-purple { background-color: var(--purple-light); color: var(--purple); }
.icon-red { background-color: var(--red-light); color: var(--red); }

.stat-info h3 {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}
.stat-info p {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.125rem;
}

/* Financial Specific Stats Grid */
.financial-stats-grid {
  grid-template-columns: repeat(3, 1fr);
}

.financial-card {
  border-bottom: 4px solid transparent;
}
.financial-card.card-total {
  border-bottom-color: var(--primary);
}
.financial-card.card-total .stat-icon { background-color: var(--primary-light); color: var(--primary); }

.financial-card.card-paid {
  border-bottom-color: var(--green);
}
.financial-card.card-paid .stat-icon { background-color: var(--green-light); color: var(--green); }

.financial-card.card-debt {
  border-bottom-color: var(--red);
}
.financial-card.card-debt .stat-icon { background-color: var(--red-light); color: var(--red); }

/* Progress Card Visualizer */
.progress-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}
.progress-container-large {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.progress-bar-large {
  width: 100%;
  height: 12px;
  background-color: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}
[data-theme="dark"] .progress-bar-large {
  background-color: #1e293b;
}
.progress-fill-green {
  height: 100%;
  background-color: var(--green);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 500;
}
#label-paid-percent { color: var(--green); }
#label-debt-percent { color: var(--red); }

/* Program header Card */
.program-header-card {
  background: linear-gradient(90deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}
[data-theme="dark"] .program-header-card {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: var(--border-color);
}
.program-title-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.program-title-area h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.25rem;
}
.program-badge {
  background-color: var(--primary);
  color: var(--text-inverse);
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.program-filters-grid {
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
}

/* ==========================================================================
   5. Tables Design
   ========================================================================== */
.table-card {
  padding: 0;
  overflow: hidden;
}
.table-card h3 {
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.table-header h3 {
  padding: 0;
}
.count-badge {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  cursor: grab;
  transition: cursor var(--transition-fast);
}
.table-responsive.active-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
#view-program .data-table {
  min-width: 1250px; /* Prevent squishing of wide student table and force scrollbar */
}
.data-table th, .data-table td {
  padding: 1rem 1.5rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border-color);
}
.data-table th {
  background-color: var(--bg-app);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.data-table tbody tr {
  transition: background-color var(--transition-fast);
}
.data-table tbody tr:hover {
  background-color: rgba(241, 245, 249, 0.8);
}
[data-theme="dark"] .data-table tbody tr:hover {
  background-color: rgba(51, 65, 85, 0.4);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.student-link {
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.student-link:hover {
  text-decoration: underline;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-table-action {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.btn-table-action:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}
.btn-table-action.delete:hover {
  background-color: var(--red-light);
  color: var(--red);
}

/* ==========================================================================
   6. Modals & Overlays
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-container {
  background-color: var(--bg-modal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border-color);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-large { max-width: 960px; }
.modal-medium { max-width: 600px; }
.modal-small { max-width: 420px; }

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}
.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.375rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.btn-close-modal:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Student details Layout inside Modal */
.student-details-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.details-section-card {
  background-color: rgba(248, 250, 252, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
[data-theme="dark"] .details-section-card {
  background-color: rgba(15, 23, 42, 0.2);
}
.details-section-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.details-section-card h3 i {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}
.section-card-header h3 {
  margin-bottom: 0;
}

/* Info Table (Basic Info) */
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th, .info-table td {
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  text-align: left;
}
.info-table th {
  color: var(--text-muted);
  font-weight: 500;
  width: 120px;
}
.info-table td {
  color: var(--text-main);
  font-weight: 600;
}

/* Status Timeline */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px dashed var(--border-color);
  margin-left: 0.5rem;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-marker {
  position: absolute;
  left: -29px;
  width: 12px;
  height: 12px;
  background-color: var(--bg-card);
  border: 2.5px solid var(--primary);
  border-radius: var(--radius-full);
}
.timeline-item.active .timeline-marker {
  background-color: var(--primary);
}
.timeline-content {
  font-size: 0.75rem;
}
.timeline-date {
  color: var(--text-muted);
  font-weight: 500;
}
.timeline-status {
  font-weight: 600;
  margin: 0.125rem 0;
  color: var(--text-main);
}
.timeline-note {
  color: var(--text-muted);
}

/* Ledger Panel Card */
.ledger-financial-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0.875rem;
  background-color: var(--bg-app);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  text-align: center;
}
.ledger-financial-summary div {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.ledger-financial-summary span {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.ledger-financial-summary strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Finance Years List styling */
.finance-years-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.year-finance-group {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.year-finance-header {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}
.year-finance-header h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.semester-payments-list {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.semester-payment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background-color: var(--bg-app);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}
.semester-payment-row:hover {
  background-color: var(--border-color);
}
.sem-title {
  font-weight: 600;
  width: 140px;
}
.sem-money-breakdown {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
}
.money-item span {
  font-size: 0.6875rem;
  display: block;
}
.money-item strong {
  font-size: 0.8125rem;
  color: var(--text-main);
}

/* Thesis Milestones UI */
.thesis-milestones {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.thesis-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background-color: var(--bg-app);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.thesis-step-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.thesis-step-num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.thesis-step.passed .thesis-step-num {
  background-color: var(--green);
  color: var(--text-inverse);
}
.thesis-step.registered .thesis-step-num {
  background-color: var(--primary);
  color: var(--text-inverse);
}

.thesis-step-text strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-main);
}
.thesis-step-text span {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.thesis-status-badge {
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}
.thesis-status-badge.passed { background-color: var(--green-light); color: var(--green); }
.thesis-status-badge.registered { background-color: var(--primary-light); color: var(--primary); }
.thesis-status-badge.not-yet { background-color: var(--border-color); color: var(--text-muted); }

/* Edit payment Modal Info Box */
.form-payment-info-box {
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   7. Profile Avatar and Miscellaneous Details
   ========================================================================== */
.avatar-large {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: var(--text-inverse);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--border-color);
  overflow: hidden;
  position: relative;
}
.avatar-large-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.student-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.student-table-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}
.student-profile-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.student-profile-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
}
.student-profile-title p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--text-main);
  color: var(--bg-sidebar);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   8. Responsive Design (Mobile / Tablet Support)
   ========================================================================== */
@media (max-width: 1024px) {
  .student-details-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  #sidebar-toggle {
    display: inline-flex;
  }
  .filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .program-filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .financial-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .filters-grid, .program-filters-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .header {
    padding: 0 1rem;
  }
  .content-body {
    padding: 1rem;
  }
  .auth-card {
    padding: 1.5rem;
  }
  .header-role-switcher {
    display: none;
  }
}

/* Split-Screen Login Layout */
.auth-wrapper-split {
  display: flex;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 8px 15px -6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  overflow: hidden;
  width: 100%;
  max-width: 860px;
  min-height: 500px;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}

.auth-banner-side {
  width: 50%;
  background-color: #f8fafc;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  border-right: 1px solid var(--border-color);
}
[data-theme="dark"] .auth-banner-side {
  background-color: #0b0f19;
}

.auth-banner-img {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
  opacity: 0.85;
}

.auth-banner-overlay {
  margin-top: 1.5rem;
  text-align: center;
}
.auth-banner-overlay h2 {
  font-family: 'Outfit', 'Prompt', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.3px;
}
.auth-banner-overlay p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.auth-card-side {
  width: 50%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Dashboard Welcome Banner */
.dashboard-welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .dashboard-welcome-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: var(--border-color);
}

.welcome-text-area h1 {
  font-family: 'Outfit', 'Prompt', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.375rem;
}
.welcome-text-area p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.welcome-decor-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  opacity: 0.15;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .welcome-decor-img {
  mix-blend-mode: screen;
  opacity: 0.08;
}

/* Media Queries for Split Login & Welcome Card */
@media (max-width: 768px) {
  .auth-wrapper-split {
    flex-direction: column;
    max-width: 400px;
    min-height: auto;
  }
  .auth-banner-side {
    width: 100%;
    padding: 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .auth-banner-img {
    max-height: 120px;
  }
  .auth-card-side {
    width: 100%;
    padding: 1.5rem;
  }
  .dashboard-welcome-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }
  .welcome-decor-img {
    display: none;
  }
  }
}

/* Sidebar Bodhi Leaf Quote Card */
.sidebar-decor-card {
  margin: 1.25rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}
.sidebar-decor-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.decor-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981; /* Bodhi Leaf Green */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.decor-card-icon i {
  width: 16px;
  height: 16px;
}
.decor-quote {
  font-size: 0.75rem;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.4;
  font-style: italic;
}
.decor-sub {
  display: block;
  font-size: 0.625rem;
  color: #64748b;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Nav Item Badges */
.nav-item-badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  margin-left: auto; /* Pushes to the right edge */
  text-transform: uppercase;
}
.badge-ba { background-color: rgba(147, 197, 253, 0.08); color: #93c5fd; }
.badge-ma { background-color: rgba(252, 211, 77, 0.08); color: #fcd34d; }
.badge-phd { background-color: rgba(192, 132, 252, 0.08); color: #c084fc; }
.badge-cert { background-color: rgba(134, 239, 172, 0.08); color: #86efac; }

/* Inactive Sidebar Program Icon Colors (Minimalist Pastel) */
.icon-ba { color: #93c5fd; opacity: 0.85; transition: color var(--transition-fast), opacity var(--transition-fast); }
.icon-ma { color: #fcd34d; opacity: 0.85; transition: color var(--transition-fast), opacity var(--transition-fast); }
.icon-phd { color: #c084fc; opacity: 0.85; transition: color var(--transition-fast), opacity var(--transition-fast); }
.icon-cert { color: #86efac; opacity: 0.85; transition: color var(--transition-fast), opacity var(--transition-fast); }

.nav-item:hover .icon-ba { opacity: 1; }
.nav-item:hover .icon-ma { opacity: 1; }
.nav-item:hover .icon-phd { opacity: 1; }
.nav-item:hover .icon-cert { opacity: 1; }

/* Keep active link text contrast clean */
.nav-item.active .nav-item-badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.nav-item.active i.nav-item-icon {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Compact Table Cells Styling */
.student-table-subtext {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}
.student-table-subtext strong {
  color: var(--text-main);
  font-weight: 500;
}
.finance-table-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.75rem;
}
.finance-item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.finance-item-row .lbl {
  color: var(--text-muted);
  font-size: 0.6875rem;
  width: 50px;
}
.finance-item-row .sub {
  color: var(--text-muted);
  font-size: 0.725rem;
}
.thesis-table-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.thesis-table-cell .thesis-status-badge {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  text-align: center;
  width: max-content;
  font-weight: 600;
  white-space: nowrap;
}

/* Demographics Charts Grid */
.stats-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.chart-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.chart-title i {
  color: var(--primary);
  width: 16px;
  height: 16px;
}

.chart-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex: 1;
}

.chart-canvas-container {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.chart-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.chart-center-text .count-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.chart-center-text .count-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.125rem;
}

.chart-legend-container {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  max-height: 130px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.725rem;
  color: var(--text-main);
  line-height: 1.3;
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  overflow: hidden;
}

.legend-color-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.legend-right {
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 0.375rem;
  white-space: nowrap;
}

/* Adjust layout on mobile */
@media (max-width: 640px) {
  .chart-content {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
  .chart-legend-container {
    width: 100%;
    max-height: none;
  }
}

/* ==========================================================================
   Logo Visual Integration Styles
   ========================================================================== */
.logo-login {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
  display: inline-block;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}
[data-theme="dark"] .logo-login {
  border-color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  filter: brightness(0.85);
}
.logo-login:hover {
  transform: scale(1.05);
}
[data-theme="dark"] .logo-login:hover {
  filter: brightness(0.95);
}

.logo-brand {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), filter var(--transition-fast);
  background-color: #ffffff;
  opacity: 0.9;
}
[data-theme="dark"] .logo-brand {
  opacity: 0.8;
  filter: brightness(0.8);
  border-color: rgba(255, 255, 255, 0.1);
}
.logo-brand:hover {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}
[data-theme="dark"] .logo-brand:hover {
  filter: brightness(0.95);
  border-color: rgba(255, 255, 255, 0.25);
}

.logo-quote {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background-color: #ffffff;
  opacity: 0.85;
  transition: transform var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), filter var(--transition-fast);
  display: inline-block;
}
[data-theme="dark"] .logo-quote {
  opacity: 0.75;
  filter: brightness(0.8);
  border-color: rgba(255, 255, 255, 0.05);
}
.sidebar-decor-card:hover .logo-quote {
  opacity: 1;
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.3);
}
[data-theme="dark"] .sidebar-decor-card:hover .logo-quote {
  filter: brightness(0.95);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Dashboard Tabs & Executive Summary styles
   ========================================================================== */
.dashboard-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}
.dash-tab-btn {
  background: none;
  border: none;
  font-family: 'Prompt', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}
.dash-tab-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-app);
}
.dash-tab-btn.active {
  color: var(--primary);
  background-color: rgba(99, 102, 241, 0.1); /* fallback primary-tint */
  font-weight: 600;
}
[data-theme="dark"] .dash-tab-btn.active {
  background-color: rgba(99, 102, 241, 0.2);
}

.presentation-slide-card {
  padding: 2.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-family: 'Prompt', 'Inter', sans-serif;
}
.slide-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}
.slide-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.slide-logo-inline {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  border: 2px solid var(--border-color);
}
.slide-header-inline h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}
.slide-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 4px 0 0 0;
}

.slide-body-inline {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.slide-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}
.slide-stat-item-inline {
  background-color: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.slide-stat-item-inline:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.stat-number-inline {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}
.stat-label-inline {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}
.stat-sublabel-inline {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-align: center;
  font-weight: 500;
  opacity: 0.9;
}

.slide-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.25rem;
}
@media (max-width: 992px) {
  .slide-split-grid {
    grid-template-columns: 1fr;
  }
}

.slide-financial-details {
  background-color: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.slide-financial-details h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}
.slide-financial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.slide-fin-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.slide-fin-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.slide-fin-card strong {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 0.35rem;
  font-family: 'Outfit', sans-serif;
  word-break: break-all;
}
.slide-fin-card.total strong { color: var(--text-main); }
.slide-fin-card.paid strong { color: var(--green); }
.slide-fin-card.debt strong { color: var(--red); }

.slide-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.slide-chart-sub {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slide-chart-sub h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--text-main);
  text-align: center;
  width: 100%;
}
.canvas-wrapper-sub {
  position: relative;
  width: 130px;
  height: 130px;
}
.legend-exec-container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
  width: 100%;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
}

.slide-split-right {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.slide-split-right h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}
.exec-table-wrapper {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
}
.exec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.exec-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  background-color: var(--bg-app);
}
.exec-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}
.exec-table tbody tr:last-child td {
  border-bottom: none;
}
.exec-table tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.04);
}
.exec-table tbody tr.selected-row-highlight {
  background-color: rgba(99, 102, 241, 0.12) !important;
  border-left: 4px solid var(--primary);
}

.slide-footer-quote {
  text-align: center;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--primary);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

/* Executive Summary Data Analyst styles */
.exec-section-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
.exec-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}
.exec-kpi-grid {
  display: grid;
  gap: 1.25rem;
}
.exec-kpi-grid.staff-kpis {
  grid-template-columns: repeat(4, 1fr);
}
.exec-kpi-grid.student-kpis {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1024px) {
  .exec-kpi-grid.staff-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .exec-kpi-grid.student-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .exec-kpi-grid.staff-kpis, .exec-kpi-grid.student-kpis {
    grid-template-columns: 1fr;
  }
}
.kpi-card-inline {
  background-color: var(--bg-app);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.kpi-card-inline:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Color Coding for KPI cards */
.staff-kpis .kpi-card-inline:nth-child(1) { border-left-color: var(--primary); }
.staff-kpis .kpi-card-inline:nth-child(2) { border-left-color: var(--yellow); }
.staff-kpis .kpi-card-inline:nth-child(3) { border-left-color: var(--cyan); }
.staff-kpis .kpi-card-inline:nth-child(4) { border-left-color: var(--purple); }

.student-kpis .kpi-card-inline:nth-child(1) { border-left-color: #6366f1; } /* Indigo */
.student-kpis .kpi-card-inline:nth-child(2) { border-left-color: var(--green); }
.student-kpis .kpi-card-inline:nth-child(3) { border-left-color: #3b82f6; } /* Blue */
.student-kpis .kpi-card-inline:nth-child(4) { border-left-color: var(--green); }
.student-kpis .kpi-card-inline:nth-child(5) { border-left-color: var(--primary); }

.kpi-label-inline {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 0.25rem;
}
.kpi-number-inline {
  font-size: 2.35rem; /* Larger, readable numbers */
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
  margin: 0.15rem 0;
  letter-spacing: -0.5px;
}
.kpi-sublabel-inline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Specific text color overrides to match accents */
.staff-kpis .kpi-card-inline:nth-child(2) .kpi-number-inline { color: var(--yellow) !important; }
.staff-kpis .kpi-card-inline:nth-child(3) .kpi-number-inline { color: var(--cyan) !important; }
.staff-kpis .kpi-card-inline:nth-child(4) .kpi-number-inline { color: var(--purple) !important; }

.student-kpis .kpi-card-inline:nth-child(2) .kpi-number-inline { color: var(--green) !important; }
.student-kpis .kpi-card-inline:nth-child(3) .kpi-number-inline { font-size: 1.95rem; }
.student-kpis .kpi-card-inline:nth-child(4) .kpi-number-inline { color: var(--green) !important; font-size: 1.95rem; }
.student-kpis .kpi-card-inline:nth-child(5) .kpi-number-inline { color: var(--primary) !important; }

/* Print CSS specifically for Executive Summary PDF print out */
@page {
  size: A4 landscape;
  margin: 8mm;
}

@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .sidebar, 
  .header, 
  .dashboard-welcome-card, 
  .dashboard-tabs, 
  #dashboard-detailed-stats, 
  #btn-download-exec-pdf, 
  #exec-program-filter-container,
  .toast,
  .modal-overlay,
  #login-page {
    display: none !important;
  }
  .app-layout {
    display: block !important;
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }
  .main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: white !important;
  }
  .content-body {
    padding: 0 !important;
    margin: 0 !important;
  }
  #dashboard-presentation-summary {
    display: block !important;
  }
  .presentation-slide-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: white !important;
  }
  .kpi-card-inline, .exec-section-panel, .slide-stat-item-inline, .slide-financial-details, .slide-academic-details, .slide-chart-sub, .slide-split-right, .exec-insights-card, .exec-table th {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
  }
  .exec-table td {
    border-color: #e2e8f0 !important;
  }
  .kpi-number-inline, .stat-number-inline {
    color: #4f46e5 !important;
  }
}

/* Teaching Management View styles */
.teaching-prog-btn, .teaching-year-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: 'Prompt', 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.teaching-prog-btn:hover, .teaching-year-btn:hover {
  background: var(--bg-app);
  color: var(--text-main);
  border-color: var(--primary-light);
}

.teaching-prog-btn.active, .teaching-year-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.25);
  font-weight: 600;
}

.login-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.kpi-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  border-left-width: 6px !important;
}

#teaching-table tbody tr {
  transition: background-color 0.15s ease;
}
#teaching-table tbody tr:hover {
  background-color: var(--bg-app);
}

#teaching-filter-search:focus {
  width: 250px !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Redesigned Teaching Table Styling */
#teaching-table {
  min-width: 1900px; /* Ensure 19 columns have enough room to render fully and scroll horizontally */
}

#teaching-table th {
  background-color: var(--bg-card);
  font-family: 'Prompt', 'Inter', sans-serif;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.725rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
}

#teaching-table tbody tr {
  transition: all 0.2s ease;
}

#teaching-table tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.03) !important;
}

[data-theme="dark"] #teaching-table tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.05) !important;
}

.btn-table-action {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-table-action:hover {
  transform: translateY(-1px) scale(1.08);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

/* Program Specific KPI Cards styling */
.program-kpi-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem !important;
  margin-bottom: 0;
  border-radius: var(--radius-md) !important;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  border-left-width: 6px !important;
}

.program-kpi-icon-wrapper {
  padding: 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.program-kpi-card:hover .program-kpi-icon-wrapper {
  transform: scale(1.1);
}

.program-kpi-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  display: block;
}

.program-kpi-value {
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  margin: 0.1rem 0 0 0 !important;
  font-family: 'Outfit', 'Inter', sans-serif !important;
  color: var(--text-main) !important;
  line-height: 1 !important;
  letter-spacing: -1px !important;
}

/* =====================================================
   STAFF LEAVE PROFILE MODAL
   ===================================================== */
.leave-modal-profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--purple) 0%, var(--indigo, #4f46e5) 100%);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.leave-modal-profile-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.leave-modal-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.leave-modal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.leave-modal-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  font-family: 'Outfit', sans-serif;
}
.leave-modal-profile-info {
  flex: 1;
  min-width: 0;
}
.leave-modal-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leave-modal-position {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  margin-top: 2px;
  font-weight: 500;
}
.leave-modal-dept {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.leave-modal-id-chip {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 0.4rem 0.85rem;
  color: white;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  flex-shrink: 0;
}
.leave-modal-id-chip strong {
  font-family: 'Outfit', monospace;
  letter-spacing: 0.5px;
}

/* Quota Cards */
.leave-quota-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.leave-quota-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.leave-quota-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.leave-quota-card-icon svg {
  width: 18px;
  height: 18px;
}
.leave-quota-annual .leave-quota-card-icon {
  background: rgba(250, 176, 5, 0.15);
  color: #d97706;
}
.leave-quota-sick .leave-quota-card-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}
.leave-quota-personal .leave-quota-card-icon {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}
.leave-quota-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.leave-quota-stats {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0;
}
.leave-quota-used {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  line-height: 1;
}
.leave-quota-annual .leave-quota-used { color: #d97706; }
.leave-quota-sick .leave-quota-used { color: #ef4444; }
.leave-quota-personal .leave-quota-used { color: #6366f1; }
.leave-quota-sep {
  display: none;
}
.leave-quota-total {
  display: none;
}
.leave-quota-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 2px;
}
.leave-quota-bar-bg {
  display: none;
}
.leave-quota-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.leave-bar-annual { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.leave-bar-sick { background: linear-gradient(90deg, #ef4444, #f87171); }
.leave-bar-personal { background: linear-gradient(90deg, #6366f1, #818cf8); }
.leave-quota-remaining {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.leave-quota-remaining strong {
  color: var(--text-main);
  font-weight: 700;
}

/* Leave Type Badge/Chip */
.leave-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.leave-type-annual {
  background: rgba(250, 176, 5, 0.15);
  color: #d97706;
}
.leave-type-sick {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}
.leave-type-personal {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

/* Clickable staff name in table */
.staff-profile-link {
  color: var(--purple);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.staff-profile-link:hover {
  color: var(--pink);
  text-decoration: underline;
}

/* Program Stat Card Redesign - Info Presentation Theme */
.program-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.program-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 2.6fr 2fr 3.4fr;
  align-items: center;
  gap: 1.75rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-sm);
  cursor: default; /* Non-clickable */
}

.program-stat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}

.prog-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.prog-card-id-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  min-width: 80px;
  text-align: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.prog-card-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prog-card-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.prog-card-degree-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 99px;
  display: inline-block;
  width: fit-content;
  text-transform: uppercase;
}
.prog-card-degree-badge.bachelor { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.prog-card-degree-badge.master { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.prog-card-degree-badge.doctoral { background: rgba(236, 72, 153, 0.12); color: #ec4899; }
.prog-card-degree-badge.certificate { background: rgba(16, 185, 129, 0.12); color: #10b759; }

.prog-card-middle-students {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.prog-card-stat-label-large {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.prog-card-stat-value-large {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.prog-card-stat-value-large .unit {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--text-muted);
}

.prog-card-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.prog-status-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
}
.prog-status-badge.active { background: rgba(16, 185, 129, 0.1); color: #10b759; }
.prog-status-badge.leave { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.prog-status-badge.grad { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.prog-status-badge.maintaining { background: rgba(6, 182, 212, 0.1); color: #0891b2; }
.prog-status-badge.inactive { background: rgba(107, 114, 128, 0.1); color: #6b7280; }
.prog-status-badge.withdrawn { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.prog-card-middle-finance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  border-left: 1px solid var(--border-color);
  padding-left: 1.5rem;
}

.finance-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.finance-block .block-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

.finance-block .block-val {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  white-space: nowrap;
}

.finance-block .block-val .unit {
  font-size: 0.65rem;
  font-weight: normal;
  color: var(--text-muted);
}

.finance-block.green .block-lbl { color: #10b759; }
.finance-block.green .block-val { color: #10b759; }

.finance-block.red .block-lbl { color: #ef4444; }
.finance-block.red .block-val { color: #ef4444; font-weight: 800; }

.prog-card-right-progress-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prog-rate-badge-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.prog-rate-val {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}
.prog-rate-val.green { color: #10b759; }
.prog-rate-val.yellow { color: #f59e0b; }
.prog-rate-val.red { color: #ef4444; }

.prog-rate-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.prog-progress-bar-bg-large {
  height: 8px;
  background: var(--bg-hover);
  border-radius: 99px;
  overflow: hidden;
}

.prog-progress-bar-fill-large {
  height: 100%;
  border-radius: 99px;
}
.prog-progress-bar-fill-large.green { background: linear-gradient(90deg, #10b759, #34d399); }
.prog-progress-bar-fill-large.yellow { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.prog-progress-bar-fill-large.red { background: linear-gradient(90deg, #ef4444, #f87171); }

@media (max-width: 1024px) {
  .program-stat-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .prog-card-middle-finance-grid {
    border-left: none;
    border-right: none;
    padding: 0;
    margin: 0.5rem 0;
  }
}

/* Sidebar user settings trigger hover styles */
#sidebar-user-profile-trigger:hover {
  background: var(--bg-hover);
}
#sidebar-user-profile-trigger:hover .user-settings-hover-icon {
  opacity: 1 !important;
  color: var(--primary);
  transform: rotate(30deg);
}
.user-settings-hover-icon {
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Netflix Avatar selection gallery styles */
.avatar-selection-item {
  cursor: pointer;
  border-radius: 8px;
  border: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  width: 48px;
  height: 48px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}
.avatar-selection-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-selection-item:hover {
  transform: scale(1.08);
  border-color: var(--primary-light);
}
.avatar-selection-item.selected {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

