/* ==========================================================================
   DENİZ ÖĞRETMEN - Premium Modern Educational UI Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900;950&display=swap');

:root {
  /* Color Palette */
  --sky-blue: #0284c7;
  --sky-light: #e0f2fe;
  --ocean-blue: #0f172a;
  --navy: #1e293b;
  --coral: #ff5964;
  --coral-light: #fff0f1;
  --mint: #10b981;
  --mint-light: #d1fae5;
  --amber: #f59e0b;
  --amber-light: #fef3c7;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Glassmorphism & Elevation */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 20px rgba(255, 89, 100, 0.25);
  
  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
  min-height: 100%;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
}

button:active {
  transform: scale(0.97);
}

/* Loader */
.loader {
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  color: var(--sky-blue);
  background: var(--bg-gradient);
  animation: pulseLoader 1.5s ease-in-out infinite alternate;
}

@keyframes pulseLoader {
  0% { opacity: 0.7; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}

/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 10% 20%, rgba(224, 242, 254, 0.8), transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(254, 243, 199, 0.8), transparent 40%),
              radial-gradient(circle at 50% 50%, rgba(209, 250, 229, 0.5), transparent 50%),
              var(--bg-gradient);
}

.login-card {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideUpFade 0.6s ease-out;
}

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

.login-art {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #818cf8 100%);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.login-art::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  top: -80px;
  left: -80px;
}

.login-art::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  bottom: -50px;
  right: -50px;
}

.login-art i {
  font-size: 100px;
  font-style: normal;
  display: block;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
  animation: floatArt 3s ease-in-out infinite alternate;
}

@keyframes floatArt {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(4deg); }
}

.login-art h1 {
  font-size: 42px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -1px;
}

.login-art em {
  color: #fef08a;
  font-style: normal;
}

.login-art p {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 700;
  opacity: 0.95;
}

.login-form {
  padding: 50px 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form .eyebrow {
  color: var(--sky-blue);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 900;
  margin-bottom: 6px;
}

.login-form h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
}

.login-form p {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.login-form label, .modal label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}

input, select, textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  background: var(--surface);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--sky-blue);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.primary {
  border: none;
  background: linear-gradient(135deg, #ff5964 0%, #ff7466 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(255, 89, 100, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 24px rgba(255, 89, 100, 0.45);
  transform: translateY(-1px);
}

.login-form .primary {
  width: 100%;
  margin-top: 8px;
}

.demo {
  font-size: 12px;
  background: var(--amber-light);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #78350f;
}

.demo b {
  font-weight: 900;
  margin-bottom: 2px;
}

.error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ==========================================================================
   MAIN LAYOUT & SIDEBAR
   ========================================================================== */

.shell {
  min-height: 100vh;
  display: flex;
}

.side {
  width: 270px;
  position: fixed;
  inset: 0 auto 0 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.brand {
  border: 0;
  background: none;
  text-align: left;
  color: var(--navy);
  font-weight: 950;
  font-size: 28px;
  line-height: 1;
  padding: 4px 12px 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand em {
  font-style: normal;
  color: var(--coral);
}

.side nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side nav button {
  border: 0;
  background: none;
  text-align: left;
  border-radius: var(--radius-md);
  padding: 13px 18px;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition-fast);
}

.side nav button .nav-icon {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.side nav button:hover {
  background: rgba(2, 132, 199, 0.08);
  color: var(--sky-blue);
}

.side nav button.active {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3);
}

.side nav button.active .nav-icon {
  transform: scale(1.15);
}

.logout {
  margin-top: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.logout:hover {
  background: var(--coral-light);
  color: var(--coral);
  border-color: rgba(255, 89, 100, 0.3);
}

.work {
  margin-left: 270px;
  width: calc(100% - 270px);
  padding: 32px 40px 60px;
  max-width: 1400px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  margin-bottom: 28px;
}

.profile {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 14px;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-xp {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.streak-badge {
  background: linear-gradient(135deg, #ff9a44, #ff6b35);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  animation: streakPulse 2s ease-in-out infinite;
}

@keyframes streakPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 6px 18px rgba(255, 107, 53, 0.5); }
}

.level-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.level-icon {
  font-size: 22px;
  font-style: normal;
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--amber-light);
  border-radius: 50%;
  border: 2px solid #fcd34d;
}

.level-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.level-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.level-detail small {
  font-weight: 900;
  font-size: 13px;
  color: var(--navy);
}

.xp-bar {
  height: 10px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  overflow: hidden;
  min-width: 100px;
}

.xp-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--purple), #c084fc);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.xp-text {
  color: var(--text-muted);
  font-weight: 800;
  font-size: 11px !important;
}

/* ==========================================================================
   PAGE HEADERS & GRID SYSTEM
   ========================================================================== */

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

.pagehead h2 {
  font-size: 34px;
  font-weight: 950;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-top: 4px;
}

.eyebrow {
  color: var(--coral);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 950;
  text-transform: uppercase;
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card h2 {
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat {
  font-size: 44px;
  font-weight: 950;
  color: var(--mint);
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.progress {
  height: 12px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  overflow: hidden;
  margin: 12px 0 16px;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  transition: width 0.8s ease-out;
}

.student {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.student:last-child {
  border-bottom: none;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--sky-light);
  color: var(--sky-blue);
  font-weight: 950;
  font-size: 18px;
  font-style: normal;
}

.student b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}

.student small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.student strong {
  color: var(--mint);
  font-size: 15px;
  font-weight: 900;
}

.activity {
  font-size: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.activity:last-of-type {
  border-bottom: none;
}

.activity b {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 3px;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: var(--mint-light);
  color: #065f46;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
  margin-left: 6px;
}

.tag.bad {
  background: var(--amber-light);
  color: #92400e;
}

/* ==========================================================================
   MODULE VIEWS (Students, Courses, Questions, Tasks, Reports, Rewards)
   ========================================================================== */

.students, .rewards, .units {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.student-card {
  text-align: center;
}

.student-card .avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
  font-size: 32px;
}

.numbers {
  display: flex;
  justify-content: space-around;
  margin: 18px 0;
  padding: 12px 0;
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
}

.numbers b {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
}

.numbers small {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.outline {
  border: 2px solid var(--purple-light);
  color: var(--purple);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-weight: 850;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.outline:hover {
  background: var(--purple-light);
  color: #6d28d9;
}

.lesson {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.banner {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 22px;
  font-weight: 950;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.unit-edit {
  display: grid;
  grid-template-columns: 38px 1fr 80px 32px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.unit-edit span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sky-light);
  color: var(--sky-blue);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900;
  font-size: 14px;
}

.addrow {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.toolbar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.toolbar button {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  font-weight: 800;
  font-size: 13px;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.toolbar button.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.question {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.question > span {
  width: 42px;
  height: 42px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--amber-light);
  color: #92400e;
  border-radius: var(--radius-md);
  font-weight: 950;
  font-size: 16px;
}

.question h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 4px 0;
}

.question p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 8px;
}

.actions button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
}

.actions button:hover {
  background: var(--sky-light);
  color: var(--sky-blue);
}

.tablebox {
  overflow-x: auto;
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--surface-subtle);
  font-weight: 900;
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Rewards Page */
.reward {
  text-align: center;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.reward:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.reward i {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  border: 6px double #f59e0b;
  font-size: 46px;
  font-style: normal;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.reward h3 {
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
}

.reward small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 800;
}

.reward.locked {
  filter: grayscale(0.85);
  opacity: 0.5;
}

.reward.locked:after {
  content: "🔒";
  position: absolute;
  top: 50px;
  left: calc(50% - 16px);
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Units list for students */
.unit {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  color: var(--navy);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.unit > span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--amber-light);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 950;
  font-size: 18px;
}

.unit.locked {
  opacity: 0.5;
  filter: grayscale(1);
}

/* Quiz & Practice */
.quiz {
  max-width: 800px;
  margin: 0 auto;
}

.quiz .answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.answers button {
  border: 2px solid var(--line);
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-md);
  color: var(--navy);
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.answers button:hover {
  border-color: var(--sky-blue);
  background: var(--sky-light);
  transform: translateY(-2px);
}

.answers button.picked {
  border-color: var(--purple);
  background: var(--purple-light);
  color: #5b21b6;
}

.feedback {
  padding: 16px 20px;
  background: var(--amber-light);
  color: #92400e;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-weight: 800;
  font-size: 15px;
}

.feedback.good {
  background: var(--mint-light);
  color: #065f46;
}

/* Modals */
.modalbg {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 100;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: scaleUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.close {
  position: absolute;
  right: 20px;
  top: 18px;
  border: 0;
  background: none;
  font-size: 28px;
  color: var(--text-muted);
}

.close:hover {
  color: var(--coral);
}

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

.opts {
  display: grid;
  gap: 10px;
}

.opts div {
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 10px;
  align-items: center;
}

.modalfoot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.task-list {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.task-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition-normal);
}

.task-card:hover {
  box-shadow: var(--shadow-md);
}

.task-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
}

.task-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.approve-btn {
  border: 0;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.point-toast {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 32px;
  font-weight: 950;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.5);
  z-index: 10000;
  pointer-events: none;
  animation: floatUpFade 1.4s ease-out forwards;
}

@keyframes floatUpFade {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.6); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  40% { transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -130%) scale(1); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */

@media (max-width: 1080px) {
  .grid, .students, .rewards, .units {
    grid-template-columns: repeat(2, 1fr);
  }
  .lesson {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .shell {
    flex-direction: column;
  }
  
  /* Mobile Floating Glass Dock Bottom Navigation */
  .side {
    position: fixed;
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    height: 64px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-full);
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    z-index: 1000;
  }
  
  .brand, .logout {
    display: none;
  }
  
  .side nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    gap: 2px;
  }
  
  .side nav button {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6px 4px;
    border-radius: var(--radius-md);
    gap: 2px;
    min-width: 44px;
    height: 50px;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--text-muted);
  }
  
  .side nav button .nav-icon {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  
  .side nav button .nav-text {
    display: block;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
  }
  
  .side nav button.active {
    color: var(--sky-blue);
  }
  
  .side nav button.active .nav-icon {
    transform: translateY(-2px) scale(1.1);
  }

  .work {
    margin-left: 0;
    width: 100%;
    padding: 20px 16px 90px;
  }
  
  .top h1 {
    font-size: 24px;
  }
  
  .grid, .students, .rewards, .units {
    grid-template-columns: 1fr;
  }
  
  .quiz .answers {
    grid-template-columns: 1fr;
  }
  
  .two {
    grid-template-columns: 1fr;
  }
  
  .login-card {
    grid-template-columns: 1fr;
  }
  
  .login-art {
    display: none;
  }
  
  .login-form {
    padding: 36px 24px;
  }
}
