/* ==========================================================================
   🏫 EDUCORE PRO - DESIGN SYSTEM & STYLESHEET
   Crafted with Vanilla CSS3, Modern Glassmorphism, Dynamic Theming
   ========================================================================== */

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

:root {
  /* Brand Theme Variables (Configurable & Overridable) */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-rgb: 79, 70, 229;
  
  --secondary: #0ea5e9;
  --secondary-hover: #0284c7;
  
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --info: #6366f1;

  /* Dark Theme Palette (Default Premium Dark Surface) */
  --bg-app: #090d16;
  --bg-sidebar: #0d1322;
  --bg-card: rgba(18, 26, 44, 0.75);
  --bg-card-hover: rgba(26, 36, 60, 0.85);
  --bg-elevated: #162035;
  --bg-input: #111a2d;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --sidebar-width: 260px;
  --header-height: 72px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
body.light-theme {
  --bg-app: #f4f6fb;
  --bg-sidebar: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-elevated: #ffffff;
  --bg-input: #f8fafc;
  
  --border-subtle: #e2e8f0;
  --border-focus: rgba(79, 70, 229, 0.4);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.15);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

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

ul {
  list-style: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.4);
}

/* ==========================================================================
   App Layout
   ========================================================================== */
#app {
  display: flex;
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 10% 10%, rgba(79, 70, 229, 0.08), transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.06), transparent 40%),
              var(--bg-app);
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: transform var(--transition-normal);
  backdrop-filter: blur(12px);
}

.brand-section {
  padding: 24px 20px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.35);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: #ffffff;
}

.logo-upload-preview-box {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(var(--primary-rgb), 0.4);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.logo-upload-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.brand-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-main);
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Nav Menu */
.nav-menu {
  flex: 1;
  padding: 20px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 12px 10px 4px 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-item i {
  font-size: 17px;
  width: 20px;
  text-align: center;
  transition: transform var(--transition-fast);
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.05));
  color: #818cf8;
  font-weight: 600;
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.1);
}

.nav-item.active i {
  color: var(--primary);
  transform: scale(1.1);
}

.nav-badge {
  margin-left: auto;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: rgba(var(--primary-rgb), 0.2);
  color: #a5b4fc;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.15);
}

.sync-status-card {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.sync-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--warning);
}
.status-dot.online { background-color: var(--success); box-shadow: 0 0 8px var(--success); }
.status-dot.offline { background-color: var(--warning); }
.status-dot.syncing { background-color: var(--secondary); animation: pulse 1s infinite; }
.status-dot.error { background-color: var(--danger); }

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.btn-quick-sync {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.btn-quick-sync:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Top App Header */
.app-header {
  height: var(--header-height);
  padding: 0 32px;
  background-color: var(--bg-card);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle-btn {
  display: none;
  font-size: 20px;
  color: var(--text-muted);
}

.header-search {
  position: relative;
  width: 320px;
}

.header-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 15px;
}

.header-search input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 13px;
  transition: all var(--transition-fast);
}

.header-search input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.system-badge-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
}

.icon-action-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  position: relative;
}

.icon-action-btn:hover {
  color: var(--text-main);
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.15);
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-profile-widget:hover {
  background: rgba(255, 255, 255, 0.07);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.user-role-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Page Content Area
   ========================================================================== */
.content-body {
  flex: 1;
  padding: 32px;
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title-group h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.page-title-group p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.page-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #ffffff;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn-danger:hover {
  background: #ef4444;
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}
.stat-trend.positive { color: var(--success); }
.stat-trend.neutral { color: var(--text-dim); }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.indigo { background: rgba(79, 70, 229, 0.15); color: #818cf8; }
.stat-icon.sky { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.stat-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

/* ==========================================================================
   Tables
   ========================================================================== */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.custom-table td {
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.custom-table tbody tr {
  transition: background var(--transition-fast);
}

.custom-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.table-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-elevated);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); }
.badge-info { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.25); }

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-window {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  font-size: 18px;
  color: var(--text-muted);
  padding: 4px;
}
.modal-close-btn:hover { color: var(--text-main); }

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ==========================================================================
   Auth / Login Screen
   ========================================================================== */
.auth-wrapper {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(79, 70, 229, 0.25), transparent 70%),
              radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.15), transparent 60%),
              #070a12;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: rgba(18, 25, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo-badge {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4);
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Tabs */
.auth-tabs {
  display: flex;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  border: 1px solid var(--border-subtle);
}

.auth-tab-btn {
  flex: 1;
  padding: 9px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.4);
}

.demo-pills-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.demo-pill {
  flex: 1;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: all var(--transition-fast);
}

.demo-pill:hover {
  background: rgba(var(--primary-rgb), 0.2);
  color: #a5b4fc;
  border-color: rgba(var(--primary-rgb), 0.4);
}

/* ==========================================================================
   Printable Fee Receipt Styles
   ========================================================================== */
.printable-receipt-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  max-width: 700px;
  margin: 0 auto;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.receipt-school-name {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.receipt-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
  font-size: 13px;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.receipt-table th {
  background: #f8fafc;
  border-bottom: 2px solid #cbd5e1;
  padding: 10px;
  text-align: left;
  font-size: 12px;
  color: #475569;
}

.receipt-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 10px;
  font-size: 16px;
  font-weight: 800;
  background: #f1f5f9;
  border-radius: 6px;
  margin-top: 10px;
}

.receipt-footer-stamp {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
  color: #64748b;
}

.stamp-box {
  text-align: center;
  border-top: 1px dashed #94a3b8;
  padding-top: 8px;
  width: 180px;
}

.doc-school-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 3px;
  background: #ffffff;
  flex-shrink: 0;
  display: block;
}

.doc-school-monogram {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.id-card-school-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: block;
  margin: 0 auto 6px auto;
}

.id-card-school-monogram {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin: 0 auto 6px auto;
}

/* Printable Admission Card */
.printable-admission-card {
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #0f172a;
  border-radius: 8px;
  padding: 32px;
  max-width: 680px;
  margin: 0 auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: var(--shadow-lg);
}

.admission-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #0f172a;
}

.admission-title-box {
  flex: 1;
}

.admission-badge-pill {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.admission-photo-box {
  width: 100px;
  height: 120px;
  border: 2px solid #0f172a;
  border-radius: 6px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admission-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admission-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  padding: 20px 0;
  font-size: 13px;
  border-bottom: 1px dashed #cbd5e1;
}

.admission-field {
  display: flex;
  flex-direction: column;
}

.admission-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}

.admission-field-value {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}

.admission-instructions {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.5;
}

.admission-signatures-row {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 10px;
}

.admission-sign-col {
  text-align: center;
  border-top: 1px solid #475569;
  width: 180px;
  padding-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

/* Printable Fee Clearance Certificate */
.printable-certificate-card {
  background: #ffffff;
  color: #0f172a;
  border: 8px double var(--primary);
  border-radius: 12px;
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.certificate-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.certificate-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  display: inline-block;
}

.certificate-body {
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
  margin: 28px 0;
  text-align: justify;
  text-align-last: center;
}

.certificate-body strong {
  color: #0f172a;
  font-weight: 700;
}

.certificate-signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding: 0 20px;
}

/* ==========================================================================
   Comprehensive Print Engine Styles
   ========================================================================== */
#globalPrintContainer {
  display: none;
}

/* Printable Academic Report Card */
.printable-report-card {
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #0f172a;
  border-radius: 8px;
  padding: 32px;
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: var(--shadow-lg);
}

.report-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #0f172a;
}

.report-title-box {
  flex: 1;
}

.report-badge-pill {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.report-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 16px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed #cbd5e1;
}

.report-meta-item {
  display: flex;
  flex-direction: column;
}

.report-meta-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}

.report-meta-value {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.report-table th {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
}

.report-table td {
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  font-size: 12px;
  color: #334155;
}

.report-summary-box {
  display: flex;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13px;
  font-weight: 700;
}

@page {
  size: A4 portrait;
  margin: 10mm;
}

@media print {
  /* 1. Global Reset & Print Layout */
  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100% !important;
    font-size: 12pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* 2. Hide Screen-only UI Chrome */
  #sidebar,
  .sidebar,
  .app-header,
  .sidebar-footer,
  .menu-toggle-btn,
  .system-badge-pill,
  .user-profile-widget,
  .header-search,
  .auth-wrapper,
  .btn,
  button,
  .no-print,
  .modal-header,
  .modal-footer,
  .modal-close-btn,
  .license-lock-overlay,
  .toast-container,
  #toastContainer,
  .btn-quick-sync {
    display: none !important;
    visibility: hidden !important;
  }

  /* 3. When is-printing-document is active (using #globalPrintContainer) */
  body.is-printing-document > *:not(#globalPrintContainer) {
    display: none !important;
  }

  body.is-printing-document #globalPrintContainer {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #0f172a !important;
  }

  body.is-printing-document #globalPrintContainer .printable-area {
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* 4. Native Print Fallback (When printing directly with active modal or Ctrl+P) */
  body:not(.is-printing-document):has(.modal-overlay.active) #app,
  body:not(.is-printing-document) .modal-overlay:not(.active) {
    display: none !important;
  }

  .modal-overlay.active {
    position: static !important;
    inset: auto !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
  }

  .modal-overlay.active .modal-window {
    position: static !important;
    transform: none !important;
    max-height: none !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .modal-overlay.active .modal-body {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    max-height: none !important;
    background: #ffffff !important;
  }

  /* 5. Document containers in print */
  .printable-area {
    position: static !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-sizing: border-box !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .printable-admission-card,
  .printable-receipt-card,
  .printable-certificate-card,
  .printable-character-card,
  .printable-experience-card,
  .printable-report-card {
    box-shadow: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    color: #0f172a !important;
  }

  /* Guarantee color fidelity on paper / PDF */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-wrapper {
    margin-left: 0;
  }
  .menu-toggle-btn {
    display: block;
  }
}

@media (max-width: 640px) {
  .app-header {
    padding: 0 16px;
  }
  .content-body {
    padding: 16px;
  }
  .header-search {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Software License Lock Screen Styles
   ========================================================================== */
body.system-license-locked #app {
  filter: blur(8px) grayscale(40%);
  pointer-events: none !important;
  user-select: none !important;
}

body.system-license-locked {
  overflow: hidden !important;
}

.license-lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInLock 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInLock {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.license-lock-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  text-align: center;
  position: relative;
}

.license-lock-header {
  margin-bottom: 20px;
}

.license-lock-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 30px;
  margin: 0 auto 16px auto;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35);
}

.license-lock-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.license-lock-header p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.license-error-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.4;
  margin-bottom: 18px;
  text-align: left;
}

.license-info-box {
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.3);
  color: #a5b4fc;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.4;
  margin-bottom: 18px;
  text-align: left;
}

.license-input {
  text-align: center;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  height: 48px;
}

.license-submit-btn {
  width: 100%;
  height: 46px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 14px;
}

.license-server-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-dim);
}

.license-server-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.license-help-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   🎓 Printable Official Student Character Certificate
   ========================================================================== */
.printable-character-card {
  background: #ffffff;
  color: #0b1528;
  position: relative;
  width: 100%;
  max-width: 794px; /* A4 aspect width */
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', Georgia, -apple-system, sans-serif;
  box-shadow: var(--shadow-lg);
  background-image: radial-gradient(ellipse at 50% 50%, #ffffff 40%, #fcfbf7 100%);
  overflow: hidden;
}

/* Ornate Multi-layered Border System */
.cc-outer-border {
  border: 4px solid #0f2b5c;
  padding: 4px;
  position: relative;
  background: #ffffff;
}

.cc-middle-border {
  border: 2px solid #c59b27;
  padding: 4px;
  position: relative;
}

.cc-inner-border {
  border: 1.5px solid #0f2b5c;
  padding: 28px 34px 22px 34px;
  position: relative;
  background: #ffffff;
  min-height: 980px;
}

/* Corner Ornaments */
.cc-corner-decor {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 2;
  pointer-events: none;
}
.cc-corner-tl { top: -2px; left: -2px; border-top: 4px solid #c59b27; border-left: 4px solid #c59b27; }
.cc-corner-tr { top: -2px; right: -2px; border-top: 4px solid #c59b27; border-right: 4px solid #c59b27; }
.cc-corner-bl { bottom: -2px; left: -2px; border-bottom: 4px solid #c59b27; border-left: 4px solid #c59b27; }
.cc-corner-br { bottom: -2px; right: -2px; border-bottom: 4px solid #c59b27; border-right: 4px solid #c59b27; }

/* Centered Subtle Watermark */
.cc-watermark-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  opacity: 0.055;
  pointer-events: none;
  z-index: 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.cc-content-wrapper {
  position: relative;
  z-index: 3;
}

/* Top Institutional Header */
.cc-top-motto {
  text-align: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #b48c36;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cc-second-motto {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0f2b5c;
  margin-bottom: 12px;
  font-style: italic;
}

.cc-crest-container {
  text-align: center;
  margin-bottom: 8px;
}

.cc-crest-img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid #c59b27;
  padding: 2px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 43, 92, 0.18);
}

.cc-school-name {
  font-size: 26px;
  font-weight: 900;
  color: #0f2b5c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  text-align: center;
  line-height: 1.25;
}

.cc-school-address {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
  text-align: center;
  margin-top: 6px;
}

/* Certificate Title Ribbon */
.cc-ribbon-wrapper {
  text-align: center;
  margin: 28px 0 20px 0;
}

.cc-ribbon-banner {
  display: inline-block;
  background: linear-gradient(135deg, #0f2b5c 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 8px 36px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-top: 2px solid #c59b27;
  border-bottom: 2px solid #c59b27;
  box-shadow: 0 4px 14px rgba(15, 43, 92, 0.22);
  position: relative;
}

/* Metadata Bar */
.cc-meta-ledger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #0f2b5c;
  border-right: 3px solid #c59b27;
  padding: 8px 16px;
  margin-bottom: 30px;
  font-size: 13px;
  color: #334155;
}

.cc-meta-ledger strong {
  color: #0f2b5c;
  font-weight: 800;
}

/* Statement Body */
.cc-statement-body {
  font-size: 16px;
  line-height: 2.3;
  color: #1e293b;
  text-align: justify;
  margin: 36px 0 60px 0;
  padding: 0 4px;
}

.cc-field-fill {
  font-weight: 800;
  color: #0b1528;
  border-bottom: 1.5px dotted #0f2b5c;
  padding: 0 6px;
}

/* Single Signature Section (Principal Only) */
.cc-single-signature-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 80px;
  padding-right: 20px;
}

.cc-sig-block-right {
  text-align: center;
  min-width: 220px;
}

.cc-sig-line {
  border-top: 2px solid #0f2b5c;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #0f2b5c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cc-sig-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* ==========================================================================
   👨‍🏫 Printable Official Teacher Experience & Service Certificate
   ========================================================================== */
.printable-experience-card {
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #0f172a;
  border-radius: 8px;
  padding: 44px 50px;
  max-width: 780px;
  margin: 0 auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.exp-cert-letterhead {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 3px double #0f172a;
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.exp-cert-title-badge {
  text-align: center;
  margin: 20px 0 28px 0;
}

.exp-cert-title-badge span {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 4px;
}

.exp-cert-body {
  font-size: 15px;
  line-height: 2.1;
  color: #1e293b;
  text-align: justify;
  margin-bottom: 40px;
}

/* ==========================================================================
   🌐 PUBLIC COLLEGE / SCHOOL LANDING PAGE STYLES
   ========================================================================== */
.landing-page-root {
  background: #090d16;
  color: #f1f5f9;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

/* Admin floating banner on public website */
.admin-landing-topbar {
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  color: #ffffff;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.admin-landing-topbar .btn-back-erp {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-landing-topbar .btn-back-erp:hover {
  background: #ffffff;
  color: #4f46e5;
}

/* Landing Header / Navbar */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #ffffff;
}

.landing-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.landing-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.landing-brand-text h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.landing-brand-text span {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.landing-nav-links a:hover {
  color: #38bdf8;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-portal-login {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: all 0.2s ease;
}

.btn-portal-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.5);
  background: linear-gradient(135deg, #4338ca, #3730a3);
}

/* Landing Hero */
.landing-hero {
  position: relative;
  padding: 90px 48px 70px 48px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(79, 70, 229, 0.18) 0%, rgba(6, 182, 212, 0.06) 40%, transparent 70%);
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.35);
  color: #818cf8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto 20px auto;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #818cf8, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 18px;
  color: #94a3b8;
  max-width: 720px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.5);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Institutional Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.stat-strip-box {
  text-align: center;
  padding: 10px;
}

.stat-strip-num {
  font-size: 32px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 4px;
}

.stat-strip-lbl {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
}

/* Common Section Layout */
.landing-section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-pill {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #818cf8;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}

.section-subtitle {
  font-size: 16px;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Facilities Grid */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.facility-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.25s ease;
}

.facility-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(79, 70, 229, 0.4);
  transform: translateY(-4px);
}

.facility-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.15);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.facility-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.facility-card p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* Programs / Classes Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.program-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.program-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.program-section-name {
  font-size: 12px;
  color: #38bdf8;
  font-weight: 600;
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.subject-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Faculty Grid */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.faculty-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: all 0.25s ease;
}

.faculty-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
}

.faculty-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  border: 3px solid #06b6d4;
  object-fit: cover;
  background: #ffffff;
}

.faculty-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.faculty-dept {
  font-size: 12.5px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 6px;
}

.faculty-qual {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.faculty-bio {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

/* Admission Inquiry Form */
.admission-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  max-width: 820px;
  margin: 0 auto;
}

.admission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.landing-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px;
  text-align: center;
  background: #060911;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 768px) {
  .landing-nav {
    padding: 14px 20px;
  }
  .landing-nav-links {
    display: none;
  }
  .landing-hero {
    padding: 60px 20px 40px 20px;
  }
  .hero-title {
    font-size: 34px;
  }
  .landing-section {
    padding: 50px 20px;
  }
  .admission-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   🛠️ SETTINGS TABS & LANDING PAGE WEBSITE CMS STYLING
   ========================================================================== */
.settings-nav-tabs {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.settings-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.settings-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.settings-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.settings-tab-pane {
  display: none;
  animation: fadeInSettingsTab 0.25s ease forwards;
}

.settings-tab-pane.active {
  display: block;
}

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

/* CMS Section Cards */
.cms-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.cms-section-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.cms-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.cms-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cms-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cms-section-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.cms-section-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.cms-section-hash-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cms-facilities-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.cms-facility-editor-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.cms-facility-editor-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.cms-top-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}

