@font-face {
  font-family: 'Brigends Expanded';
  src: url('/fonts/Brigends%20Expanded.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --surface-accent: rgba(255, 51, 85, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 51, 85, 0.32);
  --text: #f4f4f5;
  --muted: #8b8b92;
  --accent: #ff3355;
  --accent-soft: #ff6a83;
  --success: #91e7b5;
  --danger: #ff97aa;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  background:
    radial-gradient(circle at top right, rgba(255, 51, 85, 0.12), transparent 24%),
    radial-gradient(circle at left bottom, rgba(255, 51, 85, 0.08), transparent 22%),
    #0b0b0f;
}

.page-root,
.root {
  min-height: 100vh;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 40px;
  backdrop-filter: blur(18px);
  background: rgba(14, 14, 14, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}

.header-center {
  justify-content: center;
}

.header-right {
  justify-content: flex-end;
}

.logo img {
  height: 34px;
  width: auto;
}

#header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.header-nav-a {
  position: relative;
  color: #777;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-nav-a:hover,
.header-nav-a.active {
  color: #fff;
}

.header-nav-a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.header-nav-a:hover::after,
.header-nav-a.active::after {
  width: 100%;
}

#header-user,
#auth-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#header-role-badge,
.admin-badge,
.section-tag,
.card-kicker,
.intro-label,
.feature-tag,
.teacher-role-tag,
.sidebar-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 51, 85, 0.12);
  border: 1px solid rgba(255, 51, 85, 0.2);
  color: #ff8ca0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#header-username,
#admin-username-sidebar {
  color: #fff;
  font-size: 14px;
}

.header-btn,
.accent-button,
.secondary-button,
.accent-btn,
.sidebar-logout,
.delete-btn,
.ghost-button,
.danger-button,
.action-button {
  border: 1px solid transparent;
  border-radius: 16px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-btn,
.secondary-button,
.sidebar-logout,
.ghost-button {
  padding: 12px 20px;
  color: #ccc;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.header-btn:hover,
.secondary-button:hover,
.sidebar-logout:hover,
.ghost-button:hover,
.delete-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.accent-button,
.accent-btn,
.action-button {
  padding: 16px 28px;
  color: white;
  background: var(--accent);
  box-shadow: 0 0 40px rgba(255, 51, 85, 0.16);
}

.accent-button:hover,
.accent-btn:hover,
.action-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 51, 85, 0.3);
}

.danger-button {
  padding: 16px 28px;
  color: white;
  background: rgba(255, 51, 85, 0.16);
  border-color: rgba(255, 51, 85, 0.3);
}

.page-content,
.main-shell {
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto;
}

.surface-card,
.hero-card,
.panel,
.sidebar,
.dashboard-main,
.student-hero,
.teacher-hero,
.admin-form-card,
.assignment-card,
.stat-card,
.profile-card,
.feature-card,
.quote-card,
.developer-signature,
.hero-aside {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.dash-input,
.assign-select,
.form-row input,
.file-field {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: white;
  font-family: 'JetBrains Mono', monospace;
}

.dash-input:focus,
.assign-select:focus,
.form-row input:focus {
  outline: none;
  border-color: rgba(255, 51, 85, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 51, 85, 0.12);
}

.text,
.profile-note,
.hero-description,
.developer-copy,
.quote-card p,
.features-text,
.intro-text,
.card-caption,
.admin-page-subtitle {
  color: var(--muted);
  line-height: 1.8;
}

.status-message.success {
  color: var(--success);
}

.status-message.danger,
.assign-error {
  color: var(--danger);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .header {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .header-center {
    justify-content: flex-start;
  }

  .page-content,
  .main-shell {
    width: calc(100% - 32px);
  }
}
