/* ================================================================
   MAIN.CSS — Global Design System
   Tarih Öğretmeni Blog & Ders Planlama Platformu
   ================================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  /* Background & Surface */
  --color-bg:           #FAF8F5;
  --color-surface:      #FFFFFF;
  --color-surface-2:    #F4EFE8;
  --color-surface-3:    #EDE6DB;

  /* Brand Colors */
  --color-primary:      #1E293B;
  --color-primary-lt:   #334155;
  --color-accent:       #8B0000;
  --color-accent-hover: #6B0000;
  --color-accent-soft:  #9A3412;
  --color-accent-light: #FEF2F2;
  --color-accent-mid:   rgba(139,0,0,0.12);

  /* Text */
  --color-text:         #1E293B;
  --color-muted:        #64748B;
  --color-subtle:       #94A3B8;

  /* Border */
  --color-border:       #DDD5C8;
  --color-border-lt:    #EDE6DB;

  /* Status */
  --color-success:      #16A34A;
  --color-warning:      #D97706;
  --color-error:        #DC2626;
  --color-info:         #2563EB;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Font Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(30,41,59,0.05);
  --shadow-sm: 0 2px 8px rgba(30,41,59,0.07);
  --shadow-md: 0 4px 16px rgba(30,41,59,0.10);
  --shadow-lg: 0 8px 32px rgba(30,41,59,0.13);
  --shadow-xl: 0 16px 56px rgba(30,41,59,0.18);
  --shadow-accent: 0 4px 20px rgba(139,0,0,0.22);

  /* Transitions */
  --t-fast:  150ms cubic-bezier(0.4,0,0.2,1);
  --t-base:  250ms cubic-bezier(0.4,0,0.2,1);
  --t-slow:  400ms cubic-bezier(0.4,0,0.2,1);

  /* Layout */
  --container-max: 1280px;
  --nav-h:         72px;
  --sidebar-w:     260px;
}

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text); line-height: 1.6; min-height: 100vh; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: var(--text-base); }
iframe { border: none; }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.2; color: var(--color-text); }
h1 { font-size: var(--text-5xl); font-weight: 700; }
h2 { font-size: var(--text-4xl); font-weight: 700; }
h3 { font-size: var(--text-3xl); font-weight: 600; }
h4 { font-size: var(--text-2xl); font-weight: 600; }
h5 { font-size: var(--text-xl);  font-weight: 600; }
h6 { font-size: var(--text-lg);  font-weight: 600; }
p  { line-height: 1.75; color: var(--color-muted); }
strong { font-weight: 600; color: var(--color-text); }

/* ================================================================
   LAYOUT
   ================================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
.section { padding: var(--sp-24) 0; }
.section-sm { padding: var(--sp-16) 0; }

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-3);
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--sp-4);
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 580px;
  line-height: 1.7;
}
.section-header { margin-bottom: var(--sp-12); }
.section-header.centered { text-align: center; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-md);
  font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--t-base);
  cursor: pointer; white-space: nowrap; border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--color-accent); color: white;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(139,0,0,0.32);
}
.btn-secondary {
  background: var(--color-surface); color: var(--color-text);
  border-color: var(--color-border); box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  border-color: var(--color-accent); color: var(--color-accent);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-ghost { color: var(--color-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--color-surface-2); color: var(--color-text); }
.btn-sm  { padding: var(--sp-2) var(--sp-4); font-size: var(--text-xs); }
.btn-lg  { padding: var(--sp-4) var(--sp-8); font-size: var(--text-base); }
.btn-icon { padding: var(--sp-2); width: 36px; height: 36px; justify-content: center; border-radius: var(--r-md); }

/* ================================================================
   BADGES / TAGS
   ================================================================ */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-accent  { background: var(--color-accent-light); color: var(--color-accent); }
.badge-neutral { background: var(--color-surface-2);    color: var(--color-muted); }
.badge-dark    { background: var(--color-primary);       color: white; }
.badge-success { background: #DCFCE7; color: var(--color-success); }
.badge-warning { background: #FEF9C3; color: var(--color-warning); }

/* ================================================================
   CARD
   ================================================================ */
.card {
  background: var(--color-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--color-border-lt);
  overflow: hidden;
  transition: all var(--t-base);
  box-shadow: var(--shadow-xs);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--color-border); }
.card-body { padding: var(--sp-6); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: all var(--t-base);
}
.nav.scrolled {
  background: rgba(250,248,245,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-lt);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: var(--sp-6); }
.nav-logo { display: flex; flex-direction: column; gap: 1px; }
.nav-logo-name {
  font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 700;
  color: white; line-height: 1; transition: color var(--t-base);
}
.nav-logo-subtitle {
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  transition: color var(--t-base);
}
.nav.scrolled .nav-logo-name     { color: var(--color-text); }
.nav.scrolled .nav-logo-subtitle { color: var(--color-muted); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm); font-weight: 500;
  color: rgba(255,255,255,0.82);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  position: relative;
}
.nav-link:hover  { color: white; background: rgba(255,255,255,0.1); }
.nav-link.active { color: white; font-weight: 600; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 0; left: var(--sp-3); right: var(--sp-3);
  height: 2px; background: var(--color-accent); border-radius: 2px;
}
.nav.scrolled .nav-link         { color: var(--color-muted); }
.nav.scrolled .nav-link:hover   { color: var(--color-text); background: var(--color-surface-2); }
.nav.scrolled .nav-link.active  { color: var(--color-accent); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav-admin-btn {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--t-base);
}
.nav-admin-btn:hover { background: rgba(255,255,255,0.2); color: white; border-color: rgba(255,255,255,0.4); }
.nav.scrolled .nav-admin-btn { background: var(--color-surface-2); color: var(--color-muted); border-color: var(--color-border); }
.nav.scrolled .nav-admin-btn:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }

.nav-student-btn {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--color-accent); color: white;
  border: 1px solid var(--color-accent);
  transition: all var(--t-base);
}
.nav-student-btn:hover { background: #6a0000; border-color: #6a0000; transform: translateY(-1px); }
.nav.scrolled .nav-student-btn { box-shadow: var(--shadow-sm); }
.nav-admin-btn:hover { background: rgba(255,255,255,0.2); color: white; }
.nav.scrolled .nav-admin-btn {
  background: var(--color-surface-2); color: var(--color-muted);
  border-color: var(--color-border);
}
.nav.scrolled .nav-admin-btn:hover {
  background: var(--color-surface); color: var(--color-text);
  border-color: var(--color-text);
}
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: var(--sp-2); cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px; transition: all var(--t-base);
}
.nav.scrolled .nav-hamburger span { background: var(--color-text); }

/* Mobile nav */
.nav-mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-lt);
  box-shadow: var(--shadow-lg); padding: var(--sp-4);
  z-index: 999; flex-direction: column; gap: 2px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
  color: var(--color-muted); padding: var(--sp-3) var(--sp-4); display: block;
  border-radius: var(--r-md);
}
.nav-mobile .nav-link:hover   { background: var(--color-surface-2); color: var(--color-text); }
.nav-mobile .nav-link.active  { background: var(--color-accent-light); color: var(--color-accent); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--color-primary);
  padding: var(--sp-20) 0 var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand-name {
  font-family: var(--font-heading); font-size: var(--text-2xl);
  font-weight: 700; color: white; margin-bottom: var(--sp-1);
}
.footer-brand-role {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-accent);
  margin-bottom: var(--sp-5);
}
.footer-desc { font-size: var(--text-sm); line-height: 1.75; color: rgba(255,255,255,0.45); }
.footer-col-title {
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.8); margin-bottom: var(--sp-5);
}
.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-link {
  font-size: var(--text-sm); color: rgba(255,255,255,0.45);
  transition: color var(--t-fast); display: flex; align-items: center; gap: var(--sp-2);
}
.footer-link:hover { color: white; }
.footer-contact-row {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  margin-bottom: var(--sp-4); font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
}
.footer-contact-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
}
.footer-copy { font-size: var(--text-xs); color: rgba(255,255,255,0.3); }

/* ================================================================
   MODAL
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,23,42,0.65);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-base);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--color-surface);
  border-radius: var(--r-2xl); box-shadow: var(--shadow-xl);
  width: 100%; max-width: 860px; max-height: 90vh; overflow: hidden;
  transform: scale(0.95) translateY(12px);
  transition: transform var(--t-base);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--color-border-lt);
}
.modal-title { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 600; }
.modal-close {
  width: 36px; height: 36px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted); font-size: var(--text-lg);
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--color-surface-2); color: var(--color-text); }
.modal-body { padding: var(--sp-6); overflow-y: auto; max-height: calc(90vh - 72px); }

/* ================================================================
   FORM ELEMENTS
   ================================================================ */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--color-border); border-radius: var(--r-md);
  font-size: var(--text-sm); color: var(--color-text);
  background: var(--color-surface); outline: none;
  transition: all var(--t-fast);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139,0,0,0.09);
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-hint { font-size: var(--text-xs); color: var(--color-muted); }
.form-error { font-size: var(--text-xs); color: var(--color-error); display: none; }
.form-group.error .form-input,
.form-group.error .form-textarea { border-color: var(--color-error); }
.form-group.error .form-error { display: block; }

/* ================================================================
   DIVIDER / ORNAMENT
   ================================================================ */
.divider {
  display: flex; align-items: center; gap: var(--sp-4);
  color: var(--color-subtle); font-size: var(--text-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin: var(--sp-8) 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--color-border-lt);
}
.ornament {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft));
  border-radius: 2px; margin: var(--sp-4) auto;
}

/* ================================================================
   SCROLL REVEAL ANIMATIONS
   ================================================================ */
@keyframes fadeInUp  { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInLeft { from { opacity:0; transform:translateX(-24px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeIn    { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn   { from { opacity:0; transform:scale(0.94); } to { opacity:1; transform:scale(1); } }
@keyframes countUp   { from { opacity:0; } to { opacity:1; } }
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes pulse     { 0%,100% { opacity:1; } 50% { opacity:0.5; } }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: var(--sp-16) var(--sp-8);
  text-align: center; color: var(--color-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: var(--sp-4); opacity: 0.4; }
.empty-state-title { font-size: var(--text-lg); font-weight: 600; color: var(--color-text); margin-bottom: var(--sp-2); }

/* ================================================================
   TOAST / NOTIFICATION
   ================================================================ */
.toast-container { position: fixed; bottom: var(--sp-6); right: var(--sp-6); z-index: 9999; display: flex; flex-direction: column; gap: var(--sp-3); }
.toast {
  background: var(--color-primary); color: white;
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl); font-size: var(--text-sm);
  display: flex; align-items: center; gap: var(--sp-3);
  animation: slideInRight 0.3s ease forwards;
  max-width: 340px;
}
.toast.success { background: var(--color-success); }
.toast.error   { background: var(--color-error); }
.toast.warning { background: var(--color-warning); }
@keyframes slideInRight { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-surface-2); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-muted); }

/* ================================================================
   LOADING SPINNER
   ================================================================ */
.spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2.5px solid var(--color-border);
  border-top-color: var(--color-accent);
  animation: spin 0.7s linear infinite;
}

/* ================================================================
   RESPONSIVE UTILITIES
   ================================================================ */
.hide-mobile  { display: block; }
.show-mobile  { display: none; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-10); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  .section { padding: var(--sp-16) 0; }
  .section-title { font-size: var(--text-3xl); }
  .nav-links, .nav-admin-btn { display: none; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 var(--sp-4); }
  .hide-mobile  { display: none; }
  .show-mobile  { display: block; }
  .footer-grid  { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  .btn-lg { padding: var(--sp-3) var(--sp-6); }
}

/* ================================================================
   CUSTOM CONFIRM & PROMPT MODALS
   ================================================================ */
.custom-confirm-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.custom-confirm-overlay.show { opacity: 1; }
.custom-confirm-box {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--r-xl);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  width: 90%; max-width: 400px;
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.custom-confirm-overlay.show .custom-confirm-box { transform: translateY(0) scale(1); }
.custom-confirm-box p {
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.custom-prompt-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  margin-bottom: 1.5rem;
  font-family: inherit;
  font-size: var(--text-sm);
}
.custom-prompt-input:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139,0,0,0.1);
}
.custom-confirm-box .actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
  .nav, .student-nav, .admin-sidebar, .admin-topbar, .footer,
  .quick-actions, .planner-tabs, button {
    display: none !important;
  }
  body, .admin-main, .student-main {
    padding: 0 !important;
    margin: 0 !important;
    background: white !important;
  }
  .admin-content { margin-left: 0 !important; padding: 0 !important; }
  .schedule-wrap {
    overflow: visible !important;
  }
  .schedule-grid {
    width: 100% !important;
    border: 1px solid black !important;
  }
  .schedule-grid > div {
    border: 1px solid black !important;
  }
  .schedule-class-card {
    background: white !important;
    color: black !important;
    border: 1px solid black !important;
    box-shadow: none !important;
  }
  .student-card {
    box-shadow: none !important;
    border: 1px solid black !important;
  }
}

/* ================================================================
   DARK THEME
   ================================================================ */
body.dark-theme {
  /* main.css vars */
  --color-bg: #0f172a;
  --color-surface: #1e293b;
  --color-surface-2: #334155;
  --color-primary: #f8fafc;
  --color-accent: #f87171; 
  --color-accent-light: rgba(248, 113, 113, 0.15);
  --color-text: #f8fafc;
  --color-muted: #94a3b8;
  --color-border: #334155;
  --color-border-lt: #1e293b;
  
  /* admin.css & student.css vars */
  --bg-color: #0f172a;
  --primary-color: #f8fafc;
  --accent-color: #f87171;
  --text-color: #f8fafc;
  --text-light: #94a3b8;
  --border-color: #334155;
}

body.dark-theme .nav.scrolled {
  background: rgba(30, 41, 59, 0.96);
}
body.dark-theme .student-nav {
  background: var(--color-surface);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
body.dark-theme .student-schedule-item {
  background: var(--color-surface-2);
}
body.dark-theme .admin-sidebar {
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
}
body.dark-theme .admin-topbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
body.dark-theme .form-group input, 
body.dark-theme .form-group select, 
body.dark-theme .form-group textarea,
body.dark-theme .rte-content {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-border);
}
