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

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #dcfce7;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --accent: #f59e0b;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;
  --dark: #1e293b;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== LANDING PAGE NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 2rem;
  height: 70px;
  display: flex; align-items: center;
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.5rem; font-weight: 800; color: var(--primary);
}
.logo-icon {
  width: 42px; height: 42px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 24px; height: 24px; fill: white; }
.logo span { color: var(--secondary); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-weight: 500; color: var(--gray-600); transition: var(--transition);
  font-size: .95rem;
}
.nav-links a:hover { color: var(--primary); }

.nav-btns { display: flex; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .6rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem; transition: var(--transition);
  cursor: pointer;
}
.btn-outline {
  border: 2px solid var(--primary); color: var(--primary); background: transparent;
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: var(--secondary-dark); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { filter: brightness(.9); }
.btn-sm { padding: .4rem 1rem; font-size: .8rem; }
.btn-lg { padding: .875rem 2rem; font-size: 1rem; border-radius: var(--radius); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
  display: flex; align-items: center;
  padding: 100px 2rem 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-text { color: white; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  color: white; padding: .4rem 1rem; border-radius: 50px;
  font-size: .85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-title span { color: #fbbf24; }
.hero-desc { font-size: 1.1rem; opacity: .9; margin-bottom: 2rem; line-height: 1.7; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { border: 2px solid rgba(255,255,255,.5); color: white; background: rgba(255,255,255,.1); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }

.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat strong { display: block; font-size: 1.75rem; font-weight: 800; }
.hero-stat span { font-size: .85rem; opacity: .8; }

.hero-visual {
  display: flex; flex-direction: column; gap: 1rem;
}
.demo-card {
  background: rgba(255,255,255,.12); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg); padding: 1.5rem; color: white;
}
.demo-card-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.demo-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.icon-admin { background: rgba(251,191,36,.3); }
.icon-teacher { background: rgba(16,185,129,.3); }
.icon-student { background: rgba(139,92,246,.3); }
.demo-card h4 { font-weight: 700; font-size: .95rem; }
.demo-card p { font-size: .8rem; opacity: .7; }
.demo-items { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.demo-tag {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px; padding: .2rem .75rem; font-size: .75rem; font-weight: 500;
}

/* ===== SECTIONS ===== */
.section { padding: 80px 2rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-badge {
  display: inline-block; background: var(--primary-light);
  color: var(--primary); padding: .35rem 1rem; border-radius: 50px;
  font-size: .8rem; font-weight: 700; margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--gray-900); margin-bottom: 1rem; }
.section-desc { font-size: 1.05rem; color: var(--gray-500); max-width: 600px; margin: 0 auto; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: white; border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow); border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { color: var(--gray-500); font-size: .9rem; line-height: 1.6; }

/* ===== ROLES ===== */
.roles-section { background: var(--gray-900); }
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.role-card {
  border-radius: var(--radius-lg); padding: 2rem;
  border: 1px solid rgba(255,255,255,.1); transition: var(--transition);
  position: relative; overflow: hidden;
}
.role-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.role-admin { background: linear-gradient(135deg, #1e3a8a22, #2563eb11); }
.role-admin::before { background: var(--primary); }
.role-teacher { background: linear-gradient(135deg, #05966922, #10b98111); }
.role-teacher::before { background: var(--secondary); }
.role-student { background: linear-gradient(135deg, #7c3aed22, #8b5cf611); }
.role-student::before { background: #8b5cf6; }
.role-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); }
.role-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.role-icon { font-size: 2rem; }
.role-header h3 { font-size: 1.2rem; font-weight: 700; color: white; }
.role-header p { font-size: .8rem; color: var(--gray-400); }
.role-features { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.role-feature {
  display: flex; align-items: center; gap: .6rem;
  font-size: .875rem; color: var(--gray-300);
}
.role-feature::before {
  content: '✓'; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex; align-items: center;
  justify-content: center; font-size: .65rem; flex-shrink: 0;
  text-align: center; line-height: 18px;
}

/* ===== HOW IT WORKS ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { text-align: center; position: relative; }
.step:not(:last-child)::after {
  content: '→'; position: absolute; right: -1rem; top: 1.5rem;
  font-size: 1.5rem; color: var(--gray-300);
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; margin: 0 auto 1rem;
}
.step h4 { font-weight: 700; margin-bottom: .5rem; color: var(--gray-800); }
.step p { font-size: .875rem; color: var(--gray-500); }

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900); color: var(--gray-400);
  padding: 60px 2rem 30px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-logo-text { font-size: 1.25rem; font-weight: 800; color: white; }
.footer-desc { font-size: .875rem; line-height: 1.7; }
.footer-col h4 { color: white; font-weight: 700; margin-bottom: 1rem; font-size: .95rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { font-size: .875rem; transition: var(--transition); }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #0ea5e9 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.login-box {
  background: white; border-radius: var(--radius-lg);
  padding: 2.5rem; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .logo { justify-content: center; font-size: 1.75rem; }
.login-logo p { color: var(--gray-500); font-size: .875rem; margin-top: .5rem; }
.login-tabs { display: flex; gap: .5rem; background: var(--gray-100); border-radius: var(--radius-sm); padding: .35rem; margin-bottom: 1.75rem; }
.login-tab {
  flex: 1; text-align: center; padding: .6rem;
  border-radius: 6px; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); color: var(--gray-500);
}
.login-tab.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: .4rem; }
.form-control {
  width: 100%; padding: .7rem 1rem; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: .9rem; transition: var(--transition);
  color: var(--gray-800); background: white;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-control::placeholder { color: var(--gray-400); }
.btn-login { width: 100%; padding: .8rem; font-size: 1rem; margin-top: .5rem; border-radius: var(--radius-sm); }

/* ===== DASHBOARD LAYOUT ===== */
.dashboard { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px; height: 100vh;
  background: var(--gray-900); color: white;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; z-index: 100;
  transition: var(--transition);
  overflow: hidden;
}
.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: .75rem;
}
.sidebar-logo { font-size: 1.2rem; font-weight: 800; color: white; }
.sidebar-logo span { color: #fbbf24; }
.sidebar-badge {
  font-size: .65rem; background: var(--primary);
  color: white; padding: .2rem .5rem; border-radius: 4px; font-weight: 600;
}
.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.nav-section-title {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gray-500);
  padding: .75rem 1.5rem .35rem; margin-top: .5rem;
}
.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1.5rem; font-size: .875rem; font-weight: 500;
  color: var(--gray-400); cursor: pointer; transition: var(--transition);
  border-left: 3px solid transparent; position: relative;
}
.nav-item:hover { background: rgba(255,255,255,.05); color: white; }
.nav-item.active {
  background: rgba(37,99,235,.2); color: white;
  border-left-color: var(--primary);
}
.nav-item .icon { width: 20px; height: 20px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto; background: var(--danger);
  color: white; font-size: .65rem; font-weight: 700;
  padding: .15rem .45rem; border-radius: 50px; min-width: 20px; text-align: center;
}
.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.user-info { display: flex; align-items: center; gap: .75rem; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: .875rem;
}
.user-name { font-size: .875rem; font-weight: 600; color: white; }
.user-role { font-size: .75rem; color: var(--gray-400); }
.logout-btn {
  display: flex; align-items: center; gap: .5rem;
  color: var(--gray-400); font-size: .8rem; padding: .4rem;
  border-radius: 6px; transition: var(--transition); margin-left: auto;
}
.logout-btn:hover { color: var(--danger); background: rgba(239,68,68,.1); }

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1; margin-left: 260px;
  display: flex; flex-direction: column;
  min-height: 100vh;
}
.topbar {
  height: 64px; background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 1.75rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.page-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); }
.breadcrumb { font-size: .8rem; color: var(--gray-400); }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--gray-100); border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); cursor: pointer; transition: var(--transition);
  position: relative;
}
.topbar-btn:hover { background: var(--gray-200); }
.notif-dot {
  width: 8px; height: 8px; background: var(--danger); border-radius: 50%;
  position: absolute; top: 6px; right: 6px; border: 2px solid white;
}
.topbar-avatar {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--primary); color: white; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .875rem;
}

.content-area { padding: 1.75rem; flex: 1; }
.content-page { display: none; }
.content-page.active { display: block; }

/* ===== STATS CARDS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 1.75rem; }
.stat-card {
  background: white; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
  display: flex; justify-content: space-between; align-items: flex-start;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-info {}
.stat-label { font-size: .8rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); }
.stat-change { font-size: .78rem; margin-top: .35rem; font-weight: 600; }
.stat-change.up { color: var(--secondary); }
.stat-change.down { color: var(--danger); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}

/* ===== CARDS ===== */
.card {
  background: white; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--gray-800); }
.card-subtitle { font-size: .8rem; color: var(--gray-500); margin-top: .2rem; }

/* ===== TABLE ===== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: .75rem 1rem; text-align: left;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--gray-500);
  background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
}
tbody td {
  padding: .875rem 1rem; font-size: .875rem;
  border-bottom: 1px solid var(--gray-100); color: var(--gray-700);
}
tbody tr:hover { background: var(--gray-50); }
tbody tr:last-child td { border-bottom: none; }
.td-name { display: flex; align-items: center; gap: .75rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; padding: .25rem .75rem;
  border-radius: 50px; font-size: .75rem; font-weight: 600;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-purple { background: #ede9fe; color: #5b21b6; }

/* ===== FORM STYLES ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-full { grid-column: 1 / -1; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: var(--radius-lg); padding: 2rem;
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  transform: scale(.95); transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; transition: var(--transition); }
.modal-close:hover { background: var(--gray-200); }
.modal-footer { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--gray-100); }

/* ===== SEARCH & FILTERS ===== */
.search-bar {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.25rem;
}
.search-input-wrap { position: relative; flex: 1; }
.search-input-wrap input { padding-left: 2.5rem; }
.search-icon {
  position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); font-size: 1rem;
}
.filter-select { width: auto; min-width: 150px; }

/* ===== ATTENDANCE ===== */
.attendance-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
.att-day {
  aspect-ratio: 1; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 600; cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
}
.att-present { background: #d1fae5; color: #065f46; }
.att-absent { background: #fee2e2; color: #991b1b; }
.att-late { background: #fef3c7; color: #92400e; }
.att-empty { background: var(--gray-100); color: var(--gray-400); cursor: default; }

/* ===== PROGRESS BAR ===== */
.progress-bar { background: var(--gray-200); border-radius: 50px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 50px; transition: width .5s ease; }
.progress-primary { background: var(--primary); }
.progress-success { background: var(--secondary); }
.progress-warning { background: var(--warning); }
.progress-danger { background: var(--danger); }

/* ===== SCHEDULE ===== */
.schedule-grid { display: grid; grid-template-columns: 80px repeat(6, 1fr); gap: .5rem; }
.schedule-time { font-size: .75rem; color: var(--gray-500); text-align: right; padding-right: .5rem; display: flex; align-items: center; justify-content: flex-end; }
.schedule-cell {
  border-radius: var(--radius-sm); padding: .6rem .75rem;
  font-size: .75rem; font-weight: 600; min-height: 60px;
  display: flex; flex-direction: column; justify-content: center;
}
.schedule-empty { background: var(--gray-50); border: 1px dashed var(--gray-200); }
.schedule-class { cursor: pointer; transition: var(--transition); }
.schedule-class:hover { filter: brightness(.95); transform: scale(1.02); }
.schedule-header { font-size: .7rem; color: var(--gray-500); font-weight: 600; text-align: center; padding: .5rem; }

/* ===== CHART PLACEHOLDER ===== */
.chart-container { position: relative; height: 200px; display: flex; align-items: flex-end; gap: .5rem; padding: 1rem 0; }
.chart-bar { flex: 1; border-radius: 6px 6px 0 0; position: relative; transition: height .5s ease; cursor: pointer; }
.chart-bar:hover { filter: brightness(.9); }
.chart-label { position: absolute; bottom: -1.5rem; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--gray-400); white-space: nowrap; }

/* ===== ALERTS & NOTIFICATIONS ===== */
.alert {
  padding: .875rem 1rem; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: .75rem;
  font-size: .875rem; margin-bottom: 1rem;
}
.alert-info { background: #e0f2fe; color: #0369a1; border-left: 4px solid var(--info); }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--secondary); }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }
.alert-danger { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }

/* ===== MOBILE MENU ===== */
.menu-toggle { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .nav-links { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== UTILITY ===== */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-4 { margin-bottom: 1rem; }
.text-sm { font-size: .875rem; } .text-xs { font-size: .75rem; }
.text-gray { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-success { color: var(--secondary); }
.text-danger { color: var(--danger); }
.font-bold { font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }

/* ===== TOAST ===== */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  background: white; border-radius: var(--radius-sm); padding: .875rem 1rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .75rem;
  min-width: 280px; animation: slideIn .3s ease; font-size: .875rem;
  border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--secondary); }
.toast.error { border-left-color: var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
