/* ==========================================================================
   SMART SCHOOL CONNECT - PREMIUM STYLE SYSTEM
   ========================================================================== */

/* Design Tokens & Variables */
:root {
  --primary: #1e3a8a;          /* Deep Sapphire Blue */
  --primary-light: #3b82f6;    /* Modern Sky Blue */
  --primary-dark: #172554;     /* Navy Background */
  --accent: #d97706;           /* Rich Amber/Gold */
  --accent-light: #f59e0b;     /* Bright Gold Accent */
  --accent-hover: #b45309;
  
  --bg-gradient: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  --bg-dark: #0f172a;          /* Dark Slate */
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(255, 255, 255, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  --text-main: #1e293b;        /* Slate 800 */
  --text-muted: #475569;       /* Slate 600 */
  --text-light: #f8fafc;       /* Off White */
  
  --border-color: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 15px 40px rgba(15, 23, 42, 0.12);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-dark);
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}
::-webkit-scrollbar-thumb {
  background: rgba(30, 58, 138, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(30, 58, 138, 0.4);
}

/* Utility Layouts */
.max-width {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.max-width-md {
  max-width: 768px;
  width: 100%;
}
.max-width-sm {
  max-width: 480px;
  width: 100%;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-3-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}
.span-2 {
  grid-column: span 2;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-align {
  display: flex;
  align-items: center;
}
.flex-column {
  display: flex;
  flex-direction: column;
}
.gap-2 { gap: 12px; }
.gap-3 { gap: 20px; }
.flex-wrap { flex-wrap: wrap; }

/* Text Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 40px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.p-3 { padding: 16px; }
.p-4 { padding: 24px; }
.p-5 { padding: 40px; }
.w-100 { width: 100%; }
.w-auto { width: auto; }
.text-nowrap { white-space: nowrap; }

/* Buttons & Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}
.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--card-border);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-light:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn:active {
  transform: translateY(0);
}


/* Toast Notifications */
.toast-notification {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--bg-dark);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 99999 !important;
  opacity: 0;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  border-left: 4px solid var(--accent);
  max-width: 90%;
  width: max-content;
  text-align: center;
}
.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Main App Shell routing */
.app-view {
  display: none;
  min-height: 100vh;
}
.app-view.active {
  display: block;
  animation: fadeIn var(--transition-slow);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   PARENTS LANDING SITE
   ========================================================================== */

/* School Header */
.school-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.school-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-holder {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.logo-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.school-name {
  font-size: 1.4rem;
  line-height: 1.2;
}
.school-tagline {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Announcement Ticker Banner */
.ticker-wrap {
  width: 100%;
  background: var(--accent);
  color: white;
  height: 40px;
  display: flex;
  overflow: hidden;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.ticker-title {
  background: var(--bg-dark);
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  z-index: 5;
  white-space: nowrap;
}
.ticker {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 25s linear infinite;
}
.ticker:hover {
  animation-play-state: paused;
}
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Layout Content Grid */
.content-grid {
  margin-top: 30px;
}

/* Cards & Glassmorphism */
.card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: white;
  transition: all var(--transition-normal);
}
.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(248, 250, 252, 0.7);
}
.card-header h2 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-header h3 {
  font-size: 1.1rem;
}
.card-body {
  padding: 24px;
}

.section-row {
  margin-bottom: 24px;
}

/* Responsive columns */
.two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Banner Slider Component */
.slider-container {
  position: relative;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
}
.slider-wrapper {
  height: 100%;
  display: flex;
  transition: transform var(--transition-slow);
}
.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: white;
}
.slide-content {
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  width: 100%;
}
.slide-content h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 8px;
}
.slide-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}
.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.dot.active {
  background: white;
  width: 24px;
  border-radius: 10px;
}

/* Quick Stats cards */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--card-border);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.stat-card:hover {
  transform: translateY(-3px);
  background: white;
}
.stat-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  font-size: 1.2rem;
}
.stat-card h3 {
  font-size: 1.4rem;
  margin-bottom: 2px;
}
.stat-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Principal Details body layout */
.principal-message-body {
  display: flex;
  gap: 20px;
}
.principal-avatar-container {
  flex-shrink: 0;
}
.principal-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--card-border);
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.principal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quote-text {
  font-style: italic;
  color: var(--text-muted);
  position: relative;
  padding-left: 15px;
  border-left: 3px solid var(--accent);
  margin-top: 10px;
}

/* Mission & Vision grid inside about us */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.mv-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 10px;
}
.mv-card h4 {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mv-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Styled Lists for Achievements & Infrastructure */
.styled-list {
  list-style: none;
}
.styled-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.styled-list li i {
  margin-top: 4px;
}

/* Holiday list */
.holiday-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.holiday-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.date-badge {
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  min-width: 65px;
  text-transform: uppercase;
}
.holiday-info strong {
  font-size: 0.9rem;
  color: var(--primary-dark);
}
.holiday-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Notice Board */
.notice-board-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 200px;
  overflow-y: auto;
}
.notice-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}
.notice-item:last-child {
  border-bottom: none;
}
.notice-date {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 2px;
}
.notice-item p {
  font-size: 0.85rem;
}

/* Badge Display for Affiliations */
.badge-display {
  padding: 10px;
}
.badge-tag {
  display: inline-block;
  margin-top: 12px;
  background: rgba(30, 58, 138, 0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Contact Details Panel styles */
.contact-details-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}
.contact-card i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-top: 3px;
}
.quick-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.contact-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  transition: all var(--transition-fast);
}
.contact-action-btn:hover {
  transform: translateY(-2px);
}
.contact-action-btn.phone { background: #0ea5e9; }
.contact-action-btn.whatsapp { background: #22c55e; }
.contact-action-btn.email { background: #ef4444; }
.contact-action-btn.website { background: #6366f1; }

.social-links-panel h4 {
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.social-row {
  display: flex;
  gap: 10px;
}
.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-fast);
}
.social-circle.fb { background: #3b5998; }
.social-circle.ig { background: #e1306c; }
.social-circle.yt { background: #ff0000; }
.social-circle:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   PARENTS DRAWER (LEFT DRAWER)
   ========================================================================== */
.parents-window-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  display: none;
}
.parents-window-overlay.active {
  display: block;
}

.parents-window-drawer {
  position: fixed;
  top: 0;
  left: -400px;
  width: 400px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1100;
  box-shadow: var(--shadow-lg);
  border-right: 1px solid var(--border-color);
  transition: left var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.parents-window-drawer.open {
  left: 0;
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
}
.drawer-close-absolute {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.08);
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  font-size: 1rem;
  cursor: pointer;
  color: #475569;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
  z-index: 1200;
  flex-shrink: 0;
}
.drawer-close-absolute:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #dc2626;
  transform: scale(1.08);
}
.drawer-header-custom {
  padding: 20px 60px 14px 24px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.drawer-header-custom .vcard-section-title {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 1.25rem;
}
.drawer-header-custom .vcard-section-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.drawer-content {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.drawer-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 20px;
}
.drawer-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition-fast);
  color: var(--text-muted);
}
.drawer-tab-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.drawer-tab-pane {
  display: none;
}
.drawer-tab-pane.active {
  display: block;
}

.glass-box {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 16px;
}
.glass-box h4 {
  font-size: 1rem;
}

/* Custom form elements */
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-dark);
}
.form-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: white;
  color: var(--text-main);
  transition: all var(--transition-fast);
}
.form-select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.sync-status {
  font-size: 0.8rem;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}
.badge-warning {
  background: rgba(217, 119, 6, 0.1);
  color: var(--accent);
}
.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}
.badge-light {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}
.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* Online Admission Documents */
.document-download-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}
.doc-download-item:hover {
  border-color: var(--primary-light);
  background: rgba(248, 250, 252, 0.6);
}
.doc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.doc-meta strong {
  font-size: 0.85rem;
  display: block;
  color: var(--text-main);
}
.doc-meta small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Process steps mapping via layout visual elements */
.admission-process-mock-image {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.process-step {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.process-step p {
  font-size: 0.8rem;
  font-weight: 600;
}
.process-step-connector {
  width: 2px;
  height: 12px;
  background: var(--border-color);
  margin-left: 11px;
}
.info-highlight-box {
  border-left: 4px solid var(--primary);
}

/* Academics class sync loaded panels */
.academic-block h4 {
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 8px;
}
.academic-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.academic-item-card {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 12px;
  transition: all var(--transition-fast);
}
.academic-item-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-1px);
}
.academic-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.academic-item-header h5 {
  font-size: 0.9rem;
  color: var(--primary);
}
.academic-item-header small {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.academic-item-card p {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 8px;
}
.attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.attachment-pill:hover {
  background: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
}

/* ==========================================================================
   ADMIN PORTAL SHELL & SUB PANELS (Super Admin, School Admin, Teacher)
   ========================================================================== */
.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-top: 40px;
  padding-bottom: 60px;
}
.admin-sidebar {
  padding: 24px;
  height: fit-content;
}
.admin-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}
.admin-info-header h3 {
  font-size: 1.1rem;
  line-height: 1.2;
}
.admin-info-header small {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}
.admin-nav-item:hover {
  background: rgba(30, 58, 138, 0.05);
  color: var(--primary);
}
.admin-nav-item.active {
  background: var(--primary);
  color: white;
}
.admin-main {
  min-height: 500px;
}
.admin-tab-pane {
  display: none;
}
.admin-tab-pane.active {
  display: block;
  animation: fadeIn var(--transition-fast);
}

/* Tables styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
.data-table th, .data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}
.data-table th {
  background: rgba(0, 0, 0, 0.02);
  font-weight: 700;
  color: var(--primary-dark);
}
.data-table tr:hover {
  background: rgba(30, 58, 138, 0.02);
}

/* Action button configurations inside tables */
.btn-action-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-muted);
}
.btn-action-circle:hover {
  background: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
}
.btn-action-circle.danger:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Login Wrapper overlays */
.login-wrapper {
  margin: 100px auto;
}

.hint-block {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: 6px;
}

.qrcode-wrapper {
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

/* Enquiry List style in admin */
.enquiry-list-admin {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 250px;
  overflow-y: auto;
}
.enquiry-item-admin {
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.enquiry-item-admin p {
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Modal Viewer design */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-dialog {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalIn var(--transition-normal);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  flex-shrink: 0;
}
.modal-header h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.modal-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}
.modal-body {
  padding: 22px;
  max-height: 75vh;
  overflow-y: auto;
}

/* Media viewers */
.modal-img-attachment {
  max-width: 100%;
  max-height: 50vh;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.pdf-viewer-placeholder {
  padding: 40px;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px dashed var(--border-color);
}

/* Footer & alignment helpers */
.text-center { text-align: center; }
.flex-end {
  display: flex;
  align-items: flex-end;
}
.qr-canvas-holder {
  display: flex;
  justify-content: center;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    height: auto;
  }
  .grid-3-split {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .two-columns, .grid-3 {
    grid-template-columns: 1fr;
  }
  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .principal-message-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .quote-text {
    padding-left: 0;
    border-left: none;
    border-top: 3px solid var(--accent);
    padding-top: 10px;
  }
  .parents-window-drawer {
    width: 100%;
    left: -100%;
  }
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    gap: 12px;
  }
  .header-actions {
    width: 100%;
  }
  .header-actions button {
    width: 100%;
  }
  .slider-container {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .quick-stats {
    grid-template-columns: 1fr;
  }
  .slide-content h2 {
    font-size: 1.4rem;
  }
}

/* Horizontal Demo Switcher Bar & Digital Visiting Card Styling */
body {
  padding-top: 70px;
}

/* ==========================================================================
   APP HEADER & NAVIGATION BAR
   ========================================================================== */
.app-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  z-index: 1000;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
}

.navbar-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
}

.navbar-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-right {
  display: flex;
  align-items: center;
}

/* Hamburger Icon */
.navbar-hamburger {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  opacity: 0.75;
}

.navbar-hamburger:hover {
  background: rgba(30, 58, 138, 0.06);
  color: var(--primary-light);
  opacity: 1;
  transform: scale(1.05);
}

/* Dark theme hover override */
.theme-midnight-dark .navbar-hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Dropdown Menu */
.navbar-dropdown {
  position: absolute;
  top: 75px;
  right: 24px;
  width: 200px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 1001;
}

.navbar-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.dropdown-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
}

.dropdown-item:hover {
  background: rgba(30, 58, 138, 0.05);
  color: var(--primary);
}

.dropdown-item:hover i {
  color: var(--primary);
}

.dropdown-item.active {
  background: rgba(30, 58, 138, 0.08);
  color: var(--primary);
}

.dropdown-item.active i {
  color: var(--primary);
}

.dropdown-divider {
  height: 1px;
  background: rgba(226, 232, 240, 0.8);
  margin: 6px 0;
}

/* Restyled Horizontal Demo Switcher */
.demo-switcher {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: white;
  transform: translateY(0);
  transition: transform var(--transition-normal);
}

.demo-switcher.minimized {
  transform: translateY(-100%);
}

.demo-switcher-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent-light);
  letter-spacing: 0.5px;
}

.demo-logo i {
  animation: gear-spin 8s linear infinite;
}

@keyframes gear-spin {
  100% { transform: rotate(360deg); }
}

.demo-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-btn-group .switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.demo-btn-group .switcher-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  color: white;
}

.demo-btn-group .switcher-btn.active {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.demo-school-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-school-selector label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.demo-school-selector select {
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: white;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.demo-school-selector select:focus {
  border-color: var(--primary-light);
}

/* Minimize Toggle Handle */
.switcher-toggle-tab {
  position: absolute;
  top: 100%;
  right: 40px;
  height: 32px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 0 16px;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all var(--transition-fast);
}

.switcher-toggle-tab:hover {
  background: #1e293b;
  color: white;
  height: 35px;
}

.demo-switcher.minimized .switcher-toggle-tab i {
  transform: rotate(180deg);
}

/* Digital Business Card (VCard) Layout */
.vcard-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 15px 100px 15px; /* bottom padding for bottom nav */
  background: var(--vcard-bg, url('https://images.unsplash.com/photo-1557683316-973673baf926?w=1600') no-repeat center center fixed);
  background-size: cover;
  min-height: calc(100vh - 70px);
  position: relative;
}

/* Blur overlay for backdrop effect */
.vcard-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 0;
}

.vcard-container {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg-vcard, rgba(255, 255, 255, 0.9));
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: 1px solid var(--card-border-vcard, rgba(255, 255, 255, 0.8));
}

/* Banner Slider custom scale */
.vcard-banner-slider {
  position: relative;
  height: 255px;
  overflow: hidden;
}

.vcard-banner-slider .slide-content {
  padding: 24px 20px 76px 20px;
  position: relative;
  z-index: 2;
}

.vcard-banner-slider .slide-content h2 {
  font-size: 1.35rem;
  font-family: var(--font-heading);
  margin-bottom: 4px;
  line-height: 1.25;
}

.vcard-banner-slider .slide-content p {
  font-size: 0.85rem;
  line-height: 1.35;
}

.vcard-banner-slider .slider-dots {
  top: 14px;
  bottom: auto;
}

.vcard-banner-slider .slider-btn {
  top: 42%;
}

/* Overlapping logo */
.vcard-logo-avatar-container {
  position: relative;
  height: 50px;
  display: flex;
  justify-content: center;
  z-index: 5;
}

.vcard-logo-avatar {
  position: absolute;
  top: -50px;
  width: 100px;
  height: 100px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 4px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vcard-logo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vcard-logo-avatar i {
  color: var(--primary);
}

/* Identity Info */
.vcard-identity {
  text-align: center;
  padding: 10px 24px 15px 24px;
}

.vcard-school-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.vcard-school-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  font-style: italic;
}

/* Announcement Ticker */
.vcard-ticker-container {
  background: linear-gradient(90deg, #1e3a8a, #3b82f6);
  color: white;
  padding: 8px 16px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.vcard-ticker-title {
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
}

.vcard-ticker-text {
  overflow: hidden;
  white-space: nowrap;
}

.vcard-ticker-text span {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 15s linear infinite;
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Action Buttons Grid */
.vcard-action-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 0 16px;
  margin-bottom: 20px;
}

.vcard-action-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform var(--transition-fast);
}

.vcard-action-circle:hover {
  transform: translateY(-3px);
}

.vcard-action-circle i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  transition: background var(--transition-fast);
}

/* Action Colors */
.vcard-action-circle.phone i { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.vcard-action-circle.whatsapp i { background: linear-gradient(135deg, #16a34a, #4ade80); box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3); }
.vcard-action-circle.email i { background: linear-gradient(135deg, #ea580c, #f97316); box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3); }
.vcard-action-circle.website i { background: linear-gradient(135deg, #0d9488, #14b8a6); box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3); }
.vcard-action-circle.location i { background: linear-gradient(135deg, #7c3aed, #8b5cf6); box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3); }

.vcard-action-circle span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Save Contacts */
.vcard-save-contacts-container {
  padding: 0 24px;
  margin-bottom: 25px;
}

.vcard-save-contacts-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #1e3a8a, #7e22ce);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(126, 34, 206, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.vcard-save-contacts-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(126, 34, 206, 0.4);
}

/* Modular Card Styles */
.card-vcard {
  background: var(--card-bg-inner, white);
  border-radius: 16px;
  padding: 20px;
  margin: 0 16px 20px 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid var(--border-color);
}

.vcard-section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(226, 232, 240, 0.5);
}

.vcard-section-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  margin-top: -8px;
}

/* Share row */
.vcard-share-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.vcard-share-row .social-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform var(--transition-fast);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.vcard-share-row .social-circle:hover {
  transform: scale(1.1);
}

.vcard-share-row .social-circle.wa { background: #25d366; }
.vcard-share-row .social-circle.sms { background: #0284c7; }
.vcard-share-row .social-circle.fb { background: #1877f2; }
.vcard-share-row .social-circle.tw { background: #0f1419; }
.vcard-share-row .social-circle.ln { background: #0a66c2; }

/* QR Code Card */
.vcard-qrcode-wrapper {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.vcard-qrcode-wrapper #parentsPortalQrCode {
  border: 4px solid white;
  padding: 8px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  background: white;
}

/* About section custom style */
.vcard-text-block {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 16px;
}

.vcard-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vcard-mv-box {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 12px;
}

.vcard-mv-box h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vcard-mv-box p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Principal desk custom style */
.vcard-principal-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.vcard-principal-photo-frame {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.vcard-principal-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vcard-principal-message-content h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.vcard-quote {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  border-left: 2px solid var(--accent);
  padding-left: 8px;
  margin: 0;
}

/* Campus Facilities/Services Grid */
.vcard-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.vcard-service-box {
  background: white;
  border: 2px solid #ea580c; /* Orange borders matching ref site */
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  transition: transform var(--transition-fast);
}

.vcard-service-box:hover {
  transform: translateY(-2px);
}

.vcard-service-icon {
  font-size: 1.5rem;
  color: #ea580c;
  margin-bottom: 6px;
}

.vcard-service-box h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vcard-service-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.35;
}

.vcard-enquiry-btn {
  padding: 6px 14px;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.2);
}

.vcard-enquiry-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

/* Achievements sub-card style */
.vcard-sub-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}

.vcard-list-body .styled-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vcard-list-body .styled-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.vcard-list-body .styled-list li:last-child {
  margin-bottom: 0;
}

.vcard-list-body .styled-list li i {
  margin-top: 3px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Notices & Holidays sub-tabs */
.vcard-sub-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 25px;
  padding: 4px;
  margin-bottom: 15px;
}

.vcard-sub-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.vcard-sub-tab-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.vcard-sub-tab-pane {
  display: none;
}

.vcard-sub-tab-pane.active {
  display: block;
}

.vcard-notice-board-list, .vcard-holiday-list {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Scrollbar styling */
.vcard-notice-board-list::-webkit-scrollbar, .vcard-holiday-list::-webkit-scrollbar {
  width: 4px;
}
.vcard-notice-board-list::-webkit-scrollbar-thumb, .vcard-holiday-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.vcard-notice-board-list .notice-item {
  border-bottom: 1px dashed #e2e8f0;
  padding: 10px 0;
}
.vcard-notice-board-list .notice-item:first-child { padding-top: 0; }
.vcard-notice-board-list .notice-item:last-child { border-bottom: none; }

.vcard-notice-board-list .notice-date {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 2px;
}

.vcard-notice-board-list .notice-item p {
  font-size: 0.8rem;
  color: var(--text-main);
  margin: 0;
  line-height: 1.4;
}

.vcard-holiday-list .holiday-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px dashed #e2e8f0;
  padding: 8px 0;
}
.vcard-holiday-list .holiday-item:first-child { padding-top: 0; }
.vcard-holiday-list .holiday-item:last-child { border-bottom: none; }

.vcard-holiday-list .date-badge {
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  min-width: 55px;
  text-align: center;
}

.vcard-holiday-list .holiday-info strong {
  font-size: 0.8rem;
  color: var(--text-main);
}

.vcard-holiday-list .holiday-info p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
}

/* Affiliations displayed inside card */
.vcard-affiliation-display {
  text-align: center;
  padding: 10px 0;
}

.vcard-affiliation-display i {
  color: var(--accent-light);
  margin-bottom: 10px;
}

.vcard-affiliation-display h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.vcard-affiliation-display p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* Location details & Map */
.vcard-contact-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.vcard-contact-card i {
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 3px;
}

.vcard-contact-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.vcard-contact-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.vcard-map-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.vcard-social-links-panel h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 700;
}

.vcard-social-row {
  display: flex;
  gap: 10px;
}

.vcard-social-row .social-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.vcard-social-row .social-circle:hover {
  transform: scale(1.1);
}

.vcard-social-row .social-circle.fb { background: #3b5998; }
.vcard-social-row .social-circle.ig { background: #e1306c; }
.vcard-social-row .social-circle.yt { background: #ff0000; }

/* Feedback Star Rating (adsnmore style stars selector) */
.vcard-form-group {
  margin-bottom: 12px;
}

.vcard-form-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.vcard-star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
}

.vcard-star-rating input {
  display: none;
}

.vcard-star-rating label {
  font-size: 1.4rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color var(--transition-fast);
  margin-bottom: 0;
}

.vcard-star-rating label:hover,
.vcard-star-rating label:hover ~ label,
.vcard-star-rating input:checked ~ label {
  color: #f59e0b; /* Golden stars on select/hover */
}

.vcard-form textarea {
  width: 100%;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  outline: none;
  resize: none;
  transition: border-color var(--transition-fast);
}

.vcard-form textarea:focus {
  border-color: var(--primary-light);
  background: white;
}

.vcard-submit-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
  transition: all var(--transition-fast);
}

.vcard-submit-btn:hover {
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

/* Fixed Bottom Navigation (adsnmore menu_bottom style) */
.vcard-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(45deg, #1e3a8a, #7e22ce);
  z-index: 998; /* Under the Left Drawer */
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vcard-nav-container {
  width: 100%;
  max-width: 480px;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.vcard-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.vcard-nav-item i {
  font-size: 1.15rem;
  transition: transform var(--transition-fast);
}

.vcard-nav-item:hover, .vcard-nav-item:focus {
  color: white;
}

.vcard-nav-item:hover i {
  transform: translateY(-2px);
}

/* Highlight item for Parents Portal Launch */
.vcard-nav-item.highlight {
  color: #f59e0b;
}

.vcard-nav-item.highlight:hover {
  color: #fbbf24;
}

/* Responsive Adjustments for Public View */
@media screen and (max-width: 500px) {
  .vcard-wrapper {
    padding: 0 0 80px 0; /* No page padding on actual mobile view */
  }
  .vcard-container {
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
  .vcard-bottom-nav {
    height: 52px;
  }
}

/* Responsive Navbar Adjustments */
@media screen and (max-width: 480px) {
  .navbar-title {
    font-size: 1rem;
  }
  .navbar-container {
    padding: 0 16px;
  }
  .navbar-dropdown {
    right: 12px;
    width: 185px;
  }
}

@media screen and (max-width: 360px) {
  .navbar-title {
    display: none;
  }
}

/* ==========================================================================
   THEME STYLING SCHEMES
   ========================================================================== */

/* 1. Classic Sapphire Blue (default theme - default variables exist on :root) */
.theme-default {
  /* Inherits default variables */
}

/* 2. Ocean Breeze Theme */
.theme-ocean-breeze {
  --primary: #0f766e;          /* Ocean Teal */
  --primary-light: #0d9488;
  --primary-dark: #115e59;
  
  --accent: #0284c7;           /* Sky Blue */
  --accent-light: #0ea5e9;
  --accent-hover: #0369a1;

  --vcard-bg: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1600') no-repeat center center fixed;
  --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #f0fdfa 100%);
  --card-bg-inner: #ffffff;
  --card-bg-vcard: rgba(255, 255, 255, 0.92);
}

/* 3. Forest Fresh Theme */
.theme-forest-fresh {
  --primary: #15803d;          /* Forest Green */
  --primary-light: #16a34a;
  --primary-dark: #14532d;
  
  --accent: #0f766e;           /* Sage Teal */
  --accent-light: #0d9488;
  --accent-hover: #115e59;

  --vcard-bg: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=1600') no-repeat center center fixed;
  --bg-gradient: linear-gradient(135deg, #f0fdf4 0%, #f0fdfa 100%);
  --card-bg-inner: #ffffff;
  --card-bg-vcard: rgba(255, 255, 255, 0.92);
}

/* 4. Sunset Glow Theme */
.theme-sunset-glow {
  --primary: #b45309;          /* Warm Amber */
  --primary-light: #d97706;
  --primary-dark: #78350f;
  
  --accent: #be123c;           /* Sunset Rose */
  --accent-light: #e11d48;
  --accent-hover: #9f1239;

  --vcard-bg: url('https://images.unsplash.com/photo-1518495973542-4542c06a5843?w=1600') no-repeat center center fixed;
  --bg-gradient: linear-gradient(135deg, #fffbeb 0%, #fff1f2 100%);
  --card-bg-inner: #ffffff;
  --card-bg-vcard: rgba(255, 255, 255, 0.92);
}

/* 5. Royal Purple Theme */
.theme-royal-purple {
  --primary: #6d28d9;          /* Royal Amethyst */
  --primary-light: #7c3aed;
  --primary-dark: #4c1d95;
  
  --accent: #be185d;           /* Magenta Pink */
  --accent-light: #db2777;
  --accent-hover: #9d174d;

  --vcard-bg: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?w=1600') no-repeat center center fixed;
  --bg-gradient: linear-gradient(135deg, #faf5ff 0%, #fce7f3 100%);
  --card-bg-inner: #ffffff;
  --card-bg-vcard: rgba(255, 255, 255, 0.92);
}

/* 6. Midnight Dark Theme */
.theme-midnight-dark {
  --primary: #38bdf8;          /* Vibrant Cyan for readability */
  --primary-light: #0ea5e9;
  --primary-dark: #f8fafc;     /* White/Light text headings */
  
  --accent: #f59e0b;           /* Bright Amber */
  --accent-light: #fbbf24;
  --accent-hover: #d97706;

  --bg-gradient: linear-gradient(135deg, #020617 0%, #0f172a 100%);
  --bg-dark: #020617;
  
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  --text-main: #f1f5f9;        /* Light Slate */
  --text-muted: #94a3b8;       /* Slate 400 */
  --border-color: rgba(51, 65, 85, 0.8);

  --vcard-bg: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?w=1600') no-repeat center center fixed;
  --card-bg-inner: #1e293b;    /* Dark Card background */
  --card-bg-vcard: rgba(15, 23, 42, 0.92);
  --card-border-vcard: rgba(255, 255, 255, 0.1);
}

/* Theme overrides for inputs/selections in dark theme */
.theme-midnight-dark input,
.theme-midnight-dark select,
.theme-midnight-dark textarea {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #475569 !important;
}

.theme-midnight-dark label {
  color: #94a3b8 !important;
}

.theme-midnight-dark h1,
.theme-midnight-dark h2,
.theme-midnight-dark h3,
.theme-midnight-dark h4,
.theme-midnight-dark h5,
.theme-midnight-dark h6 {
  color: #f8fafc !important;
}

.theme-midnight-dark .vcard-service-box {
  background: #1e293b !important;
  border-color: #334155 !important;
}

.theme-midnight-dark .vcard-save-contacts-btn {
  background: linear-gradient(135deg, #0284c7, #0ea5e9) !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3) !important;
}

.theme-midnight-dark .vcard-save-contacts-btn:hover {
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5) !important;
}

.theme-midnight-dark .vcard-enquiry-btn {
  background: #334155 !important;
  color: #f1f5f9 !important;
}

.theme-midnight-dark .vcard-enquiry-btn:hover {
  background: #475569 !important;
}

.theme-midnight-dark .app-navbar {
  background: rgba(15, 23, 42, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.theme-midnight-dark .navbar-title {
  background: linear-gradient(135deg, #f8fafc, #cbd5e1) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.theme-midnight-dark .navbar-dropdown {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.theme-midnight-dark .dropdown-item {
  color: #f1f5f9 !important;
}

.theme-midnight-dark .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

.theme-midnight-dark .dropdown-item.active {
  background: rgba(56, 189, 248, 0.1) !important;
  color: #38bdf8 !important;
}

.theme-midnight-dark .toast-notification {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-left-color: #fbbf24 !important;
}

.theme-midnight-dark .detail-modal-card {
  background: #1e293b !important;
  color: #f1f5f9 !important;
}

.theme-midnight-dark .detail-text-box {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* Responsive adjustments for School Admin Panel */
@media (max-width: 768px) {
  .admin-shell {
    margin-top: 20px;
    gap: 15px;
  }
  .admin-sidebar {
    padding: 16px;
    border-radius: 16px;
  }
  .admin-info-header {
    padding-bottom: 12px;
    margin-bottom: 12px;
    gap: 10px;
  }
  .admin-info-header i {
    font-size: 1.5rem;
  }
  .admin-info-header h3 {
    font-size: 1rem;
  }
  .admin-nav {
    flex-direction: row !important;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
  }
  .admin-nav::-webkit-scrollbar {
    height: 4px;
  }
  .admin-nav::-webkit-scrollbar-thumb {
    background: rgba(30, 58, 138, 0.15);
    border-radius: 2px;
  }
  .admin-nav-item {
    width: auto !important;
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .admin-nav-item.border-top {
    border-top: none !important;
    margin-top: 0 !important;
  }
  
  .card.glass-card {
    padding: 16px !important;
  }
  .card-header {
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
  }
  .card-header h2 {
    font-size: 1.15rem !important;
  }
  
  /* Make sure data tables scroll horizontally cleanly on mobile */
  .table-responsive {
    margin: 0 -8px;
    width: calc(100% + 16px);
  }
  .data-table th, .data-table td {
    padding: 10px 8px;
    font-size: 0.8rem;
  }
  
  /* Button stacking on forms */
  .flex-align.gap-2.flex-wrap {
    gap: 8px;
  }
  
  /* Ensure back to home demo switcher bar is out of way */
  .demo-switcher {
    padding: 0 16px;
  }
}

/* Brand Theme Colors Previews in Superadmin */
.theme-preview-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.03);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: fit-content;
}

.theme-preview-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.theme-preview-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  border: 1.5px solid white;
  display: inline-block;
}

/* ==========================================================================
   RESPONSIVE SIDEBAR DRAWER & UTILITIES
   ========================================================================== */

/* Base Utility Helpers */
.text-center {
  text-align: center !important;
}
.p-5 {
  padding: 3rem !important;
}
.p-4 {
  padding: 1.5rem !important;
}

@media (max-width: 768px) {
  .p-5 {
    padding: 1.5rem !important;
  }
  .p-4 {
    padding: 1rem !important;
  }
}

/* Close Button (Hidden on Desktop) */
.btn-sidebar-close {
  display: none;
}

/* Sidebar backdrop hidden on desktop so it never occupies a CSS grid column */
.admin-sidebar-backdrop {
  display: none;
}

/* Mobile Sidebar Toggle Header (Hidden on Desktop) */
.admin-mobile-header {
  display: none;
}

/* Workspace Topbar (Visible on Desktop, hidden on Mobile where .admin-mobile-header shows) */
.portal-workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-radius: 14px;
}

.btn-header-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-header-logout:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.btn-danger-outline:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 7px;
}

.btn-success-solid {
  background: #16a34a;
  color: #ffffff;
  border: 1px solid #16a34a;
}
.btn-success-solid:hover {
  background: #15803d;
}

.btn-danger-solid {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #dc2626;
}
.btn-danger-solid:hover {
  background: #b91c1c;
}

.super-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.facility-icon-preview {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(234, 88, 12, 0.12);
  color: #ea580c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(234, 88, 12, 0.25);
}

.facility-table-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Responsive Table & Modal Utilities */
.clickable-row {
  cursor: pointer;
}
.mobile-only-subtext {
  display: none;
}

.detail-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
}

.detail-modal-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
  flex-wrap: wrap;
}

.detail-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.detail-value {
  font-size: 0.9rem;
  color: var(--text-main);
}

.detail-text-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-action-bar {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.modal-action-bar > * {
  flex: 1;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  .mobile-only-subtext {
    display: block;
    margin-top: 3px;
  }
  .super-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .portal-workspace-topbar {
    display: none !important;
  }
  .admin-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    gap: 10px;
  }

  .btn-sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: background var(--transition-fast);
  }

  .btn-sidebar-toggle:hover {
    background: rgba(30, 58, 138, 0.08);
  }

  .admin-mobile-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-left: 12px;
    margin-right: auto;
  }

  /* Reset grid layout on admin shells to single column */
  #teacherDashboard.admin-shell,
  #schoolAdminDashboard.admin-shell,
  #superAdminDashboard.admin-shell {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    margin-top: 15px !important;
  }

  /* Slide-out drawer styles for Teacher, School Admin, and Super Admin sidebars */
  #teacherDashboard .admin-sidebar,
  #schoolAdminDashboard .admin-sidebar,
  #superAdminDashboard .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    z-index: 1010;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
    border-radius: 0 20px 20px 0 !important;
    height: 100vh !important;
    overflow-y: auto;
    background: white !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 24px 20px !important;
    border: none !important;
    border-right: 1px solid var(--border-color) !important;
  }

  #teacherDashboard .admin-sidebar.open,
  #schoolAdminDashboard .admin-sidebar.open,
  #superAdminDashboard .admin-sidebar.open {
    transform: translateX(0);
  }

  /* Close Button in Mobile Sidebar */
  #teacherDashboard .btn-sidebar-close,
  #schoolAdminDashboard .btn-sidebar-close,
  #superAdminDashboard .btn-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all var(--transition-fast);
    z-index: 10;
  }

  #teacherDashboard .btn-sidebar-close:hover,
  #schoolAdminDashboard .btn-sidebar-close:hover,
  #superAdminDashboard .btn-sidebar-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
  }

  /* Sidebar backdrop styling */
  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1005;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
  }

  .admin-sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Keep vertical layout inside mobile sidebars */
  #teacherDashboard .admin-nav,
  #schoolAdminDashboard .admin-nav,
  #superAdminDashboard .admin-nav {
    flex-direction: column !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    white-space: normal !important;
    gap: 8px !important;
    padding-bottom: 0 !important;
  }

  #teacherDashboard .admin-nav-item,
  #schoolAdminDashboard .admin-nav-item,
  #superAdminDashboard .admin-nav-item {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    display: flex !important;
    border-top: none !important;
    margin-top: 0 !important;
  }

  #teacherDashboard .admin-nav-item.border-top,
  #schoolAdminDashboard .admin-nav-item.border-top,
  #superAdminDashboard .admin-nav-item.border-top {
    border-top: 1px solid var(--border-color) !important;
    margin-top: 16px !important;
  }
}

/* ==========================================================================
   DESKTOP SCREEN COMPATIBILITY & OPTIMIZATIONS (min-width: 1025px)
   ========================================================================== */
@media (min-width: 1025px) {
  .admin-shell.max-width {
    max-width: 1400px;
    padding: 0 32px;
  }
  .admin-sidebar {
    position: sticky;
    top: 90px;
    z-index: 90;
  }
  .data-table th, .data-table td {
    padding: 16px 20px;
  }
  .card-body {
    padding: 32px;
  }
}

/* Camera upload trigger styling */
.btn-camera-trigger {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-camera-trigger:hover {
  background: var(--primary);
  color: white;
}

/* School Reports Section Styling */
/* ==========================================================================
   DYNAMIC ANIMATED LOGIN BACKGROUNDS & CENTERED GLASS CARDS
   ========================================================================== */
.auth-stage-wrapper {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 70px);
  overflow: hidden;
}

body.admin-body .auth-stage-wrapper {
  min-height: calc(100vh - 64px);
}

.auth-stage-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 16px 56px;
}

.auth-glass-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  padding: 34px 30px 26px;
  box-shadow: 0 28px 65px rgba(2, 6, 23, 0.35);
  text-align: left;
  animation: modalIn 0.35s ease;
}

.auth-card-top {
  text-align: center;
  margin-bottom: 22px;
}

.auth-card-top .auth-badge-icon {
  margin-bottom: 12px;
}

.auth-card-top h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.auth-card-top p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- 1. TEACHER LOGIN BACKGROUND: Rising Glowing Bubbles ---------- */
.auth-bg-teacher {
  background: radial-gradient(circle at 20% 20%, #1d4ed8 0%, #1e3a8a 42%, #0f172a 100%);
}

.auth-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.auth-bubbles span {
  position: absolute;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(96, 165, 250, 0.12) 60%, rgba(59, 130, 246, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.12), 0 8px 32px rgba(37, 99, 235, 0.25);
  animation: riseBubble var(--dur, 16s) linear infinite;
  animation-delay: var(--delay, 0s);
  left: var(--left, 10%);
  width: var(--size, 70px);
  height: var(--size, 70px);
}

@keyframes riseBubble {
  0% {
    transform: translateY(0) translateX(0) scale(0.85);
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  50% {
    transform: translateY(-55vh) translateX(var(--drift, 24px)) scale(1.05);
  }
  88% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-120vh) translateX(calc(var(--drift, 24px) * -0.6)) scale(1.15);
    opacity: 0;
  }
}

/* ---------- 2. SCHOOL ADMIN BACKGROUND: Flowing Aurora & Geometric Rings ---------- */
.auth-bg-school {
  background: linear-gradient(135deg, #06283d 0%, #0f4c5c 48%, #0f766e 100%);
}

.auth-aurora {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.65;
  animation: floatAurora 14s ease-in-out infinite alternate;
}

.aurora-blob.b1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #2dd4bf, #0284c7);
  top: -110px;
  left: -80px;
}

.aurora-blob.b2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #38bdf8, #2563eb);
  bottom: -120px;
  right: -70px;
  animation-delay: -5s;
  animation-duration: 18s;
}

.aurora-blob.b3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #34d399, #0d9488);
  top: 42%;
  left: 55%;
  animation-delay: -9s;
  animation-duration: 16s;
}

.geo-ring {
  position: absolute;
  border-radius: 28%;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  animation: spinGeo 26s linear infinite;
}

.geo-ring.r1 {
  width: 260px;
  height: 260px;
  top: 10%;
  right: 10%;
}

.geo-ring.r2 {
  width: 190px;
  height: 190px;
  bottom: 12%;
  left: 8%;
  animation-direction: reverse;
  animation-duration: 20s;
}

.geo-ring.r3 {
  width: 110px;
  height: 110px;
  top: 22%;
  left: 22%;
  border-radius: 50%;
  animation-duration: 15s;
}

@keyframes floatAurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, -30px) scale(1.12); }
  100% { transform: translate(-30px, 35px) scale(0.95); }
}

@keyframes spinGeo {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ---------- 3. SUPER ADMIN BACKGROUND: Indigo-Violet Floating Mesh ---------- */
.auth-bg-super {
  background: radial-gradient(circle at 80% 15%, #312e81 0%, #1e1b4b 45%, #090d16 100%);
}

.super-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  animation: floatAurora 16s ease-in-out infinite alternate;
}

.super-orb.s1 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #6366f1, #4338ca);
  top: -90px;
  right: -60px;
}

.super-orb.s2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #0ea5e9, #1d4ed8);
  bottom: -100px;
  left: -60px;
  animation-delay: -6s;
}

.auth-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

@media (max-width: 520px) {
  .auth-glass-card {
    padding: 26px 20px 22px;
    border-radius: 18px;
  }
}

.login-wrapper {
  margin: 28px auto 56px;
  padding: 0 16px;
}

.login-wrapper.auth-wide {
  max-width: 960px;
  width: 100%;
}

.auth-split-shell {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.auth-brand-pane {
  background:
    radial-gradient(circle at 15% 18%, rgba(59, 130, 246, 0.35), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(14, 165, 233, 0.25), transparent 45%),
    linear-gradient(145deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%);
  color: #ffffff;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  text-align: left;
}

.auth-brand-pane.school-variant {
  background:
    radial-gradient(circle at 15% 18%, rgba(20, 184, 166, 0.3), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(59, 130, 246, 0.25), transparent 45%),
    linear-gradient(145deg, #0f172a 0%, #0f4c5c 55%, #1e3a8a 100%);
}

.auth-brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
}

.auth-brand-pill-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-role-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e0f2fe;
}

.auth-brand-copy h2 {
  color: #ffffff !important;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 10px;
}

.auth-brand-copy p {
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.92rem;
  line-height: 1.55;
}

.auth-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.auth-highlight-item strong {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.auth-highlight-item span {
  display: block;
  font-size: 0.77rem;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.35;
}

.auth-security-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.85);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-form-pane {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background: #ffffff;
}

.auth-form-heading {
  margin-bottom: 22px;
}

.auth-form-heading h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lp-ink, #0f172a);
  margin-bottom: 4px;
}

.auth-form-heading p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap > i.input-lead-icon {
  position: absolute;
  left: 13px;
  color: #64748b;
  font-size: 0.9rem;
  pointer-events: none;
}

.input-icon-wrap .form-select {
  padding-left: 38px;
}

.input-password-wrap .form-select {
  padding-right: 44px;
}

.auth-submit-btn {
  padding: 13px 20px !important;
  font-size: 0.96rem !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.22);
}

.auth-links-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.auth-links-row a,
.auth-links-row button.link-btn {
  color: var(--primary);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth-links-row a:hover,
.auth-links-row button.link-btn:hover {
  text-decoration: underline;
}

.auth-demo-pill {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .auth-split-shell {
    grid-template-columns: 1fr;
  }
  .auth-brand-pane {
    padding: 26px 22px;
    gap: 18px;
  }
  .auth-highlights {
    display: none;
  }
  .auth-security-foot {
    display: none;
  }
  .auth-form-pane {
    padding: 26px 22px;
  }
}

.auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  text-align: center;
}

.auth-card-header {
  padding: 32px 28px 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #f1f5f9;
}

.auth-badge-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.22);
}

.auth-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.auth-card-header h2 {
  font-size: 1.45rem;
  margin-bottom: 6px;
}

.auth-card-header p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.auth-form {
  padding: 24px 28px 22px;
}

.text-left {
  text-align: left !important;
}

.input-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrap .form-select {
  padding-right: 44px;
}

.btn-eye-toggle {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-eye-toggle:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.auth-footer-note {
  padding: 14px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.form-actions-end {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.flex-align input[type="file"] {
  min-width: 0;
  flex: 1;
}

body.admin-body {
  padding-top: 68px;
}

.admin-topbar.demo-switcher {
  top: 0 !important;
  height: 64px;
  background: #0f172a;
  padding: 0 24px;
}

.admin-topbar .demo-switcher-content {
  padding: 0 !important;
}

.super-kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 960px) {
  .super-kpi-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .super-kpi-grid-4 {
    grid-template-columns: 1fr;
  }
  .auth-form,
  .auth-card-header {
    padding-left: 20px;
    padding-right: 20px;
  }
  .flex-align.gap-2 {
    flex-wrap: wrap;
  }
  .form-actions-end {
    justify-content: stretch;
  }
  .form-actions-end .btn {
    width: 100%;
  }
}

.teacher-published-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.published-item-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.published-item-main {
  flex: 1;
  min-width: 0;
}

.published-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .published-item-card {
    flex-direction: column;
  }
  .published-item-actions {
    width: 100%;
  }
  .published-item-actions .btn {
    flex: 1;
  }
}

.report-section {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.report-section h3 {
  font-size: 1.1rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 8px;
}

