/* Sikkhalay — Professional Teacher Workspace CSS */
 
:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-border: #a7f3d0;
  --accent-teal: #0d9488;
  --dark-navy: #0f172a;
  --slate-dark: #1e293b;
  --slate-medium: #475569;
  --slate-light: #64748b;
  --slate-border: #e2e8f0;
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-muted: #f1f5f9;
  
  --badge-school-bg: #e0f2fe;
  --badge-school-text: #0369a1;
  --badge-coaching-bg: #fef3c7;
  --badge-coaching-text: #b45309;
  --badge-lms-bg: #f3e8ff;
  --badge-lms-text: #7e22ce;

  --max-width: 1320px;
  
  --live-red: #ef4444;
  --live-bg: #fef2f2;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --text-lg: 22px ;
  
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.12);
  
  --border-color: #E2E8F0;
  
  --font-sans: 'Plus Jakarta Sans', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-surface: #151c2c;
  --bg-muted: #1e293b;
  --dark-navy: #f8fafc;
  --slate-dark: #f1f5f9;
  --slate-medium: #cbd5e1;
  --slate-light: #94a3b8;
  --slate-border: #2d3748;
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--dark-navy);
  line-height: 1.5;
  padding-bottom: 84px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 40px;
  }
}

/* Container constraints */
.app-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .app-container {
    padding: 0 24px;
  }
}

/* Utility Helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }

.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; font-weight: 600; }
.text-xl { font-size: 20px; font-weight: 700; }
.text-2xl { font-size: 24px; font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-muted { color: var(--slate-light); }
.text-primary { color: var(--primary); }
.text-dark { color: var(--dark-navy); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-school { background-color: var(--badge-school-bg); color: var(--badge-school-text); }
.badge-coaching { background-color: var(--badge-coaching-bg); color: var(--badge-coaching-text); }
.badge-lms { background-color: var(--badge-lms-bg); color: var(--badge-lms-text); }
.badge-live { background-color: var(--live-bg); color: var(--live-red); border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-gray { background-color: var(--bg-muted); color: var(--slate-medium); }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--live-red);
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--dark-navy);
  border-color: var(--slate-border);
}
.btn-secondary:hover {
  background-color: var(--bg-muted);
  border-color: var(--slate-light);
}

.btn-live {
  background-color: var(--live-red);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

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

.btn-icon {
  padding: 10px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--slate-border);
  color: var(--slate-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-icon:hover {
  background-color: var(--bg-muted);
  color: var(--primary);
}

/* Cards */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--slate-border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand div{
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: flex-start;
}

.brand-logo {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background-color: #ffffff;
  background-image: url('../assets/images/logo.jpeg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border: 1.5px solid var(--border-color, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-pill, 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark-navy);
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 10px;
  font-weight: 700;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase; 
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-badge {
  position: relative;
  cursor: pointer;
}

.notification-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--live-red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
}

/* DESKTOP NAV / BREADCRUMB HEADER */
.subnav {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--slate-border);
  display: none;
}

@media (min-width: 1024px) {
  .subnav {
    display: block;
  }
  .desktop-only {
    display: inline !important;
  }
}

.subnav-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 48px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.subnav-tabs::-webkit-scrollbar {
  display: none;
}

.subnav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-light);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  height: 100%;
  padding: 0 4px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.subnav-tab svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.subnav-tab:hover {
  color: var(--primary);
}

.subnav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* FIXED MOBILE BOTTOM NAVIGATION */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--slate-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 55px;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px;
  color: var(--slate-light);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  width: 20%;
  height: 100%;
  cursor: pointer;
  transition: color 0.2s;
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-icon-wrapper {
  padding: 4px 12px;
  border-radius: 16px;
  transition: background-color 0.2s;
}

.bottom-nav-item.active .bottom-nav-icon-wrapper {
  background-color: var(--primary-light);
}

/* MAIN CONTENT LAYOUT */
.main-content {
  padding-top: 24px;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
 
/* GREETING & HERO WORKSPACE BANNER */
.greeting-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3), 0 8px 10px -6px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .greeting-card {
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 24px;
  }
}

@media (min-width: 1024px) {
  .greeting-card {
    border-radius: 24px;
    padding: 24px 28px;
  }
}

.greeting-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.greeting-header-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .greeting-header-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
}

.greeting-profile-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 640px) {
  .greeting-profile-group {
    gap: 16px;
  }
}

.greeting-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.greeting-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

@media (min-width: 640px) {
  .greeting-avatar {
    width: 58px;
    height: 58px;
  }
}

.greeting-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid #0f172a;
  border-radius: 50%;
}

.greeting-title-heading {
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Greeting Affiliations Pills */
.greeting-affiliations {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.greeting-affiliations .badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.greeting-affiliations .badge-school {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.greeting-affiliations .badge-coaching {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.greeting-affiliations .badge-lms {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.greeting-affiliations .badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

@media (max-width: 480px) {
  .greeting-affiliations {
    gap: 4px;
  }
  .greeting-affiliations .badge {
    font-size: 10.5px;
    padding: 2.5px 7px;
  }
}

.greeting-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

@media (min-width: 640px) {
  .greeting-actions-wrapper {
    width: auto;
    gap: 12px;
  }
}

.greeting-actions-wrapper .btn {
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .greeting-actions-wrapper .btn {
    flex: initial;
  }
}

/* Quick Metrics Ribbon */
.greeting-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .greeting-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
  }
}

.greeting-stat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

@media (min-width: 640px) {
  .greeting-stat-pill {
    background: transparent;
    border: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-align: left;
  }
}

.greeting-stat-label {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .greeting-stat-label {
    font-size: 13px;
    color: #cbd5e1;
  }
}

.greeting-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .greeting-stat-value {
    font-size: 14px;
  }
}

.greeting-stat-divider {
  display: none;
}

@media (min-width: 640px) {
  .greeting-stat-divider {
    display: block;
    opacity: 0.25;
    color: #ffffff;
  }
}

/* TIMELINE SECTION */
.timeline-container {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--slate-border);
  margin-top: 16px;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--slate-light);
  border: 3px solid var(--bg-surface);
}

.timeline-item.active-item::before {
  background-color: var(--live-red);
  box-shadow: 0 0 0 4px var(--live-bg);
}

/* QUICK ACTIONS GRID */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .quick-actions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quick-action-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-action-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary);
}

/* CLASS CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.class-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

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

.class-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 160px;
  background-color: var(--bg-muted);
  overflow: hidden;
}

.class-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.class-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.class-desc {
  font-size: 13px;
  color: var(--slate-medium);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 56px;
}

.class-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--slate-border);
  font-size: 12px;
  color: var(--slate-light);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* KPI METRICS GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* INSTITUTION CARDS (Coaching & School) */
.inst-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
}

.inst-banner {
  height: 110px;
  background: linear-gradient(135deg, #0f172a 0%, #0d9488 100%);
  position: relative;
}

.inst-content {
  padding: 20px;
  position: relative;
}

.inst-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 3px solid var(--bg-surface);
  position: absolute;
  top: -32px;
  left: 20px;
  background-color: white;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

/* TABLES */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-border);
  background-color: var(--bg-surface);
}

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

.custom-table th {
  background-color: var(--bg-muted);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--slate-light);
  border-bottom: 1px solid var(--slate-border);
}

.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--slate-border);
  color: var(--dark-navy);
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:hover td {
  background-color: var(--bg-main);
}

/* MODAL OVERLAY & DRAWER */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

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

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

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--slate-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: var(--bg-muted);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

/* DRAWER */
.drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 320px;
  height: 100%;
  background-color: var(--bg-surface);
  z-index: 250;
  box-shadow: var(--shadow-lg);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer.active {
  right: 0;
}

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

.drawer-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

/* STEPPERS */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--slate-border);
  z-index: 1;
  transform: translateY(-50%);
}

.step-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2px solid var(--slate-border);
  color: var(--slate-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  position: relative;
  z-index: 2;
  transition: all 0.2s;
}

.step-item.active {
  border-color: var(--primary);
  background-color: var(--primary);
  color: white;
}

.step-item.completed {
  border-color: var(--primary);
  background-color: var(--primary-light);
  color: var(--primary);
}

/* FORMS */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-border);
  background-color: var(--bg-surface);
  color: var(--dark-navy);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.upload-dropzone {
  border: 2px dashed var(--slate-border);
  border-radius: var(--radius-lg);
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  background-color: var(--bg-muted);
  transition: all 0.2s;
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

/* CHART SIMULATION */
.chart-container {
  width: 100%;
  height: 220px;
  position: relative;
}

/* TOAST NOTIFICATION */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--dark-navy);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   PROFILE PAGE ENHANCEMENT STYLES & MOBILE RESPONSIVENESS
   ========================================================================== */

/* Profile Hero Card */
.profile-hero-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.profile-cover-banner {
  height: 160px;
  background: linear-gradient(135deg, #059669 0%, #0d9488 40%, #0f172a 100%);
  position: relative;
}

.profile-cover-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
}

.profile-body-container {
  padding: 0 20px 20px 20px;
  position: relative;
}

.profile-header-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: -50px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .profile-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: -60px;
  }
}

.profile-avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .profile-avatar-wrapper {
    width: 110px;
    height: 110px;
  }
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--bg-surface);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.avatar-online-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #10b981;
  border: 2px solid var(--bg-surface);
}

.avatar-edit-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  border: 2px solid var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.avatar-edit-btn:hover {
  transform: scale(1.1);
}

.profile-identity-info {
  flex: 1;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .profile-identity-info {
    margin-top: 0;
    padding-bottom: 4px;
  }
}

.profile-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

@media (min-width: 768px) {
  .profile-action-buttons {
    width: auto;
  }
}

/* Stats Overview Bar */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .profile-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.profile-stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}

.profile-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-border);
}

.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Sub-Tabbed Navigation Bar */
.profile-tabs-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.profile-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.profile-nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: max-content;
}

.profile-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-medium);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.profile-tab-btn:hover {
  color: var(--primary);
  background-color: var(--bg-muted);
}

.profile-tab-btn.active {
  color: #ffffff;
  background-color: var(--primary);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

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

/* Toggle Switches */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--slate-border);
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Tag Pills */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  background-color: var(--bg-muted);
  color: var(--dark-navy);
  border: 1px solid var(--slate-border);
  cursor: pointer;
  transition: all 0.2s;
}

.tag-pill:hover, .tag-pill.active {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

/* Payment Method Cards */
.payment-card {
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-md);
  padding: 16px;
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s;
}

.payment-card:hover {
  border-color: var(--primary-border);
}

/* Document Cards */
.doc-card {
  border: 1px dashed var(--slate-border);
  border-radius: var(--radius-md);
  padding: 16px;
  background-color: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s;
}

.doc-card:hover {
  background-color: var(--bg-surface);
  border-color: var(--primary);
}

/* Form Layout Grid Helpers */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (min-width: 768px) {
  .form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CAMPUS AUTO-SWIPING PHOTO CAROUSEL (FULL BLEED - BREAKS OUT OF APP-CONTAINER) */
.campus-swiper-wrapper {
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-top: -24px;
  position: relative;
  overflow: hidden;
  background-color: #0F172A;
  border-radius: 0;
}

@media (min-width: 768px) {
  .campus-swiper-wrapper {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-top: -24px;
  }
}

/* TEACHER HERO GREETING CARD (FULL BLEED, FLUSH WITH SWIPER) */
.greeting-card-school {
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-bottom: 28px;
  padding: 8px 8px;
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 !important;
  box-shadow: 0 4px 24px rgba(3, 105, 161, 0.25);
  overflow: visible;
  color: #fff;
  position: relative;
}

@media (min-width: 768px) {
  .greeting-card-school {
    width: calc(100% + 48px);
    margin-left: -24px;
    padding: 10px 12px;
  }
}


.campus-swiper-container {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .campus-swiper-container {
    height: 240px;
  }
}

.campus-swiper-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.campus-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.campus-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.campus-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 32px;
  color: #ffffff;
}

.campus-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(5, 150, 105, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  width: fit-content;
  backdrop-filter: blur(4px);
}

.campus-slide-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
  .campus-slide-title {
    font-size: 28px;
  }
}

.campus-slide-subtitle {
  font-size: 14px;
  color: #cbd5e1;
  font-weight: 500;
}

/* Swiper Controls */
.campus-swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.campus-swiper-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.campus-swiper-btn.prev-btn { left: 16px; }
.campus-swiper-btn.next-btn { right: 16px; }

/* Swiper Dots */
.campus-swiper-dots {
  position: absolute;
  bottom: 16px;
  right: 28px;
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.campus-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.campus-dot.active {
  width: 28px;
  border-radius: 6px;
  background: var(--primary);
}

/* ==========================================
   STUDENT ATTENDANCE MODULE STYLES
   ========================================== */
.attendance-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--slate-border);
}

.att-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .att-stats-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

.att-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.att-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.att-stat-label {
  font-size: 12px;
  color: var(--slate-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.att-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-navy);
}

.att-segment {
  display: inline-flex;
  background: var(--bg-muted);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--slate-border);
  gap: 3px;
}

.att-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-medium);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.att-btn:hover {
  color: var(--dark-navy);
  background: rgba(0,0,0,0.04);
}

.att-btn.present.active {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.att-btn.absent.active {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.att-btn.late.active {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.student-att-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.student-att-row:hover {
  border-color: var(--primary-border);
  background: var(--primary-light);
}

[data-theme="dark"] .student-att-row:hover {
  background: rgba(5, 150, 105, 0.12);
}

.roll-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--dark-navy);
  font-weight: 800;
  font-size: 13px;
  border: 1px solid var(--slate-border);
}

.att-sticky-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--slate-border);
  padding: 12px 24px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.badge-present { background: #dcfce7; color: #15803d; }
.badge-absent { background: #fee2e2; color: #b91c1c; }
.badge-late { background: #fef3c7; color: #b45309; }

/* Quick Reason Preset Buttons */
.quick-reason-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  animation: fadeIn 0.2s ease-in-out;
}

.quick-reason-pill {
  border: 1px solid var(--slate-border);
  background: var(--bg-muted);
  color: var(--slate-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.quick-reason-pill:hover {
  background: var(--slate-border);
  color: var(--dark-navy);
  transform: translateY(-1px);
}

.quick-reason-pill.active-absent {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  font-weight: 700;
}

.quick-reason-pill.active-late {
  background: #fef3c7;
  color: #d97706;
  border-color: #fcd34d;
  font-weight: 700;
}

/* Enhanced Desktop Responsiveness */
@media (min-width: 1024px) {
  .student-att-row {
    display: grid;
    grid-template-columns: 280px 1fr 220px;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
  }

  .student-att-row .att-segment {
    justify-self: end;
  }
}




