:root {
  --brand-color: #ff4500;
  --white: #ffffff;
  --black: #000000;

  --bg-color: #ededed;
  --bg-soft: #f4f4f6;
  --bg-soft-transparent: rgb(255, 255, 255);
  --text-color: #1f2937;
  --text-muted: #6b7280;
  --header-color: #1f2937;
  --border-color: #e5e7eb;
  --border-color-darker: #d1d5db;
  --focus-ring: #ff4500;
  --navheight: 50px;

  --font-sans:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

  /* --- added tokens --- */
  --success: #16a34a;
  --success-bg: #16a34a1a;
  --danger: #ef4444;
  --danger-bg: #ef44441a;
  --brand-bg: #ff45001a;
  --info: #087990;
  --info-bg: #cff4fc;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.07);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;

  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
}

html[data-theme="dark"] {
  --bg-color: #131419;
  --bg-soft: #22222c;
  --bg-soft-transparent: rgb(12, 13, 17);
  --text-color: #f3f4f6;
  --text-muted: #9ca3af;
  --header-color: #ffffff;
  --border-color: #282b32;
  --border-color-darker: #4b5563;

  --success-bg: #16a34a26;
  --danger-bg: #ef444426;
  --brand-bg: #ff450026;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition:
    background-color 0.3s,
    color 0.3s;
}

/* ==========================================
   1. Base Form Layout & Grouping
   ========================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  width: 100%;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -2px;
}

/* ==========================================
   2. Standard Text Inputs & Textarea
   ========================================== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-color);
  background-color: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* Input Focus & Placeholder */
input:focus,
textarea:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.15); /* Soft focus ring using brand color */
  background-color: var(--bg-color);
}

::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Disabled State */
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--border-color);
}

/* ==========================================
   3. Custom Dropdown Select
   ========================================== */
select {
  width: 100%;
  padding: 10px 38px 10px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-color);
  background-color: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  cursor: pointer;

  /* Remove default browser arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Custom SVG dropdown arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

select:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.15);
  background-color: var(--bg-color);
}

/* Style select options inside menu */
select option {
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* ==========================================
   4. Custom Checkboxes & Radio Buttons
   ========================================== */
.checkbox-group,
.radio-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Hide default browser checkbox/radio */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-color-darker, #d1d5db);
  background-color: var(--bg-soft);
  margin: 0;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
}

input[type="checkbox"] {
  border-radius: 4px;
}

input[type="radio"] {
  border-radius: 50%;
}

/* Checkbox Checkmark Icon */
input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  background-color: #ffffff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* Radio Inner Dot */
input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  background-color: #ffffff;
}

/* Checked States */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--brand-color);
  border-color: var(--brand-color);
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
  transform: scale(1);
}

/* Focus Rings */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--brand-color);
  outline-offset: 2px;
}

/* ==========================================
   5. Modern Toggle Switch (Alternative Checkbox)
   ========================================== */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color-darker, #d1d5db);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--brand-color);
}

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

/* ==========================================
   6. Custom File Upload Input
   ========================================== */
input[type="file"] {
  font-size: 0.875rem;
  color: var(--text-muted);
}

input[type="file"]::file-selector-button {
  padding: 8px 14px;
  margin-right: 12px;
  background-color: var(--bg-soft);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
  background-color: var(--border-color);
  color: var(--brand-color);
}

/* ==========================================
   7. Color Picker & Range Slider
   ========================================== */
input[type="color"] {
  -webkit-appearance: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 0;
  background: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

input[type="range"] {
  accent-color: var(--brand-color);
  cursor: pointer;
}

.brand-text {
  color: var(--brand-color);
}

/* 2. Header */
.site-header {
  background-color: var(--bg-soft-transparent);
  padding: 0px 1em;
  transition:
    background-color 0.3s,
    border-color 0.3s;

  position: sticky; /* or fixed */
  top: 0;
  z-index: 1000; /* Higher than menu & overlay */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--navheight);
}

.logologin {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.logologin img {
  width: 100px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-color);
}
.logo img {
  width: 40px;
}
.logo-text {
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.theme-toggle:hover {
  background-color: var(--bg-soft);
}
.theme-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}
#sun-icon {
  color: #facc15;
}
#moon-icon {
  color: var(--text-color);
}

.color_circle_picker {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  padding: 0px;
  border-radius: 50%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  overflow: hidden;
}

.color_circle_picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color_circle_picker::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

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

/* Menu Toggle Button */
.menu-toggle {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  border-radius: 4px;
}

/* Backdrop Overlay - starts BELOW navbar */
.menu-overlay {
  position: fixed;
  top: var(
    --navheight
  ); /* Adjust this value to match your header's actual height */
  left: 0;
  width: 100%;
  height: calc(100vh - var(--navheight)); /* Fill remaining viewport height */
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Slide-In Menu - starts BELOW navbar */
.mobile-menu {
  position: fixed;
  top: var(
    --navheight
  ); /* Adjust this value to match your header's actual height */
  left: 0;
  width: 280px;
  max-width: 80vw;
  height: calc(100vh - var(--navheight)); /* Full remaining height */
  background-color: var(--bg-color);
  color: var(--text-color);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Scrollable Container inside the Menu */
.menu-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling in Android WebView */
  padding: 16px;
}

/* Menu List Styling */
.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.menu-list a i {
  width: 20px;
  text-align: center;
  color: var(--brand-color);
}

.menu-list a:hover,
.menu-list a:active {
  background-color: var(--bg-soft);
  color: var(--brand-color);
}

/* Lock page scroll when menu is active */
body.menu-open {
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .logo i {
    font-size: 1.2rem;
  }
  .logo-text {
    font-size: 0.9rem; /* 24px */
  }

  .color_circle_picker,
  .theme-toggle {
    width: 30px;
    height: 30px;
  }
}

.isflex {
  display: flex;
  align-items: center;
  gap: 2px;
}

.backarrow {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

/* Card Container */
.auth-card {
  max-width: 400px;
  margin: 12px auto;
  padding: 24px;
  background-color: var(--bg-soft-transparent);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Tab Navigation */
.auth-tabs {
  display: flex;
  background-color: var(--bg-soft);
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
  margin-bottom: 20px;
}

.tab-link {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tab-link.active {
  background-color: var(--bg-soft-transparent);
  color: var(--brand-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color-darker);
}

/* Form Styles */
.auth-body {
  display: flex;
  flex-direction: column;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--brand-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  transition:
    opacity 0.2s ease,
    transform 0.1s ease;
}

.btn-submit:hover {
  opacity: 0.92;
}

.btn-submit:active {
  transform: scale(0.99);
}

.btn-submit:disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.8;
  background-color: #8c919a;
}

/* APK Download Section */
.app-download-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
  text-align: center;
}

.app-download-footer p {
  margin: 0 0 6px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-color);
  text-decoration: none;
}

.download-link:hover {
  text-decoration: underline;
}

#goToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  background: 0;
  cursor: pointer;
  border: 0;
  background-color: none;
  padding: 0px;
  margin: 0px;
}
#goToTopBtn i {
  font-size: 30px;
  width: 29px;
  border: none;
  color: var(--brand-color);
  background-color: #fff;
  border-radius: 50%;
  aspect-ratio: 1/1;
}
#goToTopBtn i:hover {
  color: var(--black);
}
.student-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  background-color: var(--bg-soft-transparent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  transition:
    opacity 0.2s ease,
    transform 0.1s ease;
  text-transform: capitalize;
}

.student-btn.active {
  background-color: var(--brand-color);
  color: #fff;
  font-weight: bold;
  border-color: var(--brand-color);
}

main {
  padding: 1em;
}

/*=========================*/

/* ==========================================================================
   Layout
   ========================================================================== */
.profile-page {
  color: var(--text-color);
  background: var(--bg-color);

  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg) var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mt {
  margin-top: 10px;
}

.ctc {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card-title svg {
  flex-shrink: 0;
  color: var(--brand-color);
}

.card-body {
  padding: 0 var(--space-lg) var(--space-lg);
}

/* ==========================================================================
   Hero / profile summary
   ========================================================================== */
.hero {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.hero-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 0 2px var(--brand-color);
}

.hero-info {
  min-width: 0;
}

.hero-name {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--header-color);
  margin: 0 0 var(--space-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-bg);
  color: var(--brand-color);
  white-space: nowrap;
}

.badge.is-muted {
  background: var(--bg-color);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.hero-phone svg {
  color: var(--brand-color);
}

/* ==========================================================================
   Info grid (label / value pairs)
   ========================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-md);
}

.info-item.is-wide {
  grid-column: 1 / -1;
}

.info-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 2px;
}

.info-value {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-color);
  word-break: break-word;
}

@media (max-width: 420px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm) var(--space-md);
  }

  .hero-name {
    font-size: var(--fs-lg);
  }

  .hero-avatar {
    width: 64px;
    height: 64px;
  }
}

/* ==========================================================================
   Fee card
   ========================================================================== */
.fee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.fee-item {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.fee-item .info-label {
  margin-bottom: var(--space-xs);
}

.fee-amount {
  font-size: var(--fs-lg);
  font-weight: 700;
}

.fee-amount.is-due {
  color: var(--danger);
}

.fee-amount.is-clear {
  color: var(--success);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  margin-left: var(--space-xs);
  vertical-align: middle;
}

.status-pill.is-due {
  background: var(--danger-bg);
  color: var(--danger);
}

.status-pill.is-clear {
  background: var(--success-bg);
  color: var(--success);
}

.next-payment-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ==========================================================================
   Note card
   ========================================================================== */
.note-text {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-color);
}

.note-text.is-empty {
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   Page shell
   ========================================================================== */
.fee-page {
  font-family: var(--font-sans);
  color: var(--text-color);

  margin: 0 auto;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Alerts */
.fee-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.fee-alert i {
  margin-top: 2px;
  font-size: var(--fs-base);
}

.fee-alert strong {
  font-weight: 700;
}

.fee-alert.alert-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.fee-alert.alert-info {
  background: var(--info-bg);
  color: var(--info);
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

@media (max-width: 420px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.center {
  text-align: center !important;
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 330px) {
  .metric-card {
    flex-direction: column;
  }

  .mf {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    align-items: center;
  }
}

.metric-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-bg);
  color: var(--brand-color);
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}

.metric-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.metric-value {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--header-color);
}

.metric-subtext {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.metric-badge {
  align-self: flex-start;
  margin-top: 2px;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.metric-badge.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.metric-badge.badge-primary {
  background: var(--success-bg);
  color: var(--success);
}

/* Section card */
.section-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin: 0 0 var(--space-sm);
}

.section-title i {
  color: var(--brand-color);
}

/* Months grid */
.months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 6px;
}

.month-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-color);
}

.month-card i {
  font-size: var(--fs-sm);
}

.month-name {
  font-size: var(--fs-xs);
  font-weight: 600;
}

.status-indicator {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.month-card.month-paid {
  border-color: var(--success);
  background: var(--success-bg);
}

.month-card.month-paid i,
.month-card.month-paid .status-indicator {
  color: var(--success);
}

.month-card.month-unpaid i,
.month-card.month-unpaid .status-indicator {
  color: var(--text-muted);
}

/* Bill history — list, no <table> */
.bill-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bill-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: var(--space-sm);
  padding: 9px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-soft-transparent);
}

.bill-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-bg);
  color: var(--brand-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
}

.bill-main {
  min-width: 0;
}

.bill-amount {
  font-size: var(--fs-base);
  font-weight: 700;
}

.bill-month {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cash {
  background-color: #d5f2ffc1;
  color: #1629a3;
  border-radius: 10px;
  width: 50px;
  text-align: center;
  display: inline-block;
}

.upi {
  background-color: #e4ffd5cb;
  color: #546a06;
  border-radius: 10px;
  width: 50px;
  text-align: center;
  display: inline-block;
}

.payment-via {
  font-weight: 500;
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.bill-months {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bill-date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

.bill-empty {
  text-align: center;
  padding: var(--space-md);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ===========================*/

/* ==========================================================================
   Component Styles
   ========================================================================== */

/* Main Page Container */
.sm-container {
  margin: var(--space-lg) auto;
  padding: 0 var(--space-md);
  font-family: var(--font-sans);
  color: var(--text-color);
}

/* Horizontal Subject Navigation Chips */
.sm-subject-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

/* Base Button System */
.sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  height: 30px;
}

.sm-btn:focus-visible {
  box-shadow:
    0 0 0 3px var(--brand-bg),
    0 0 0 1px var(--focus-ring);
}

.sm-btn:active {
  transform: translateY(1px);
}

/* Primary Brand Button */
.sm-btn--primary {
  background-color: var(--brand-color);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.sm-btn--primary:hover {
  opacity: 0.92;
  box-shadow: var(--shadow-md);
}

/* Secondary Chip Button */
.sm-btn--secondary {
  background-color: var(--bg-soft);
  color: var(--text-color);
  border-color: var(--border-color);
  border-radius: var(--radius-pill);
}

.sm-btn--secondary:hover {
  border-color: var(--brand-color);
  color: var(--brand-color);
  background-color: var(--brand-bg);
}

/* Accent / Action Button (PDF Downloads) */
.sm-btn--accent {
  background-color: var(--success);
  color: var(--white);
}

.sm-btn--accent:hover {
  opacity: 0.92;
  box-shadow: var(--shadow-sm);
}

/* Search Form Bar */
.sm-search-form {
  margin-bottom: var(--space-lg);
}

.sm-search-group {
  display: flex;
  gap: 5px;
  max-width: 540px;
}

.sm-search-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-base);
  font-family: var(--font-sans);
  color: var(--text-color);
  outline: none;
}

.sm-search-input::placeholder {
  color: var(--text-muted);
}

.sm-search-group .sm-btn {
  border-radius: var(--radius-sm);
}

/* Responsive Grid Layout */
.sm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--space-lg);
}

/* Individual Content Cards */
.sm-card {
  background-color: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

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

.sm-card__body {
  margin-bottom: var(--space-md);
}

.sm-card__title {
  margin: 0 0 var(--space-sm) 0;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--header-color);
  line-height: 1.3;
}

/* Subject Tag Badge */
.sm-card__badge {
  display: inline-flex;
  align-items: center;
  color: var(--success);
  background-color: var(--success-bg);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.sm-card__footer {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.sm-card__footer .sm-btn {
  width: 100%;
}

/* Empty State / No Results */
.sm-no-results {
  grid-column: 1 / -1;
  padding: calc(var(--space-lg) * 2) var(--space-md);
  background-color: var(--bg-soft);
  border: 1px dashed var(--border-color-darker);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-base);
}

.sa-header {
  color: var(--text-color);
  margin-bottom: 10px;
}

.sa-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.sa-title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sa-month-badge {
  background: rgba(207, 207, 207, 0.2);
  border: 1px solid var(--border-color);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.sa-select-wrap {
  flex-shrink: 0;
  max-width: 80px;
}

/* Stats grid */
.sa-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

@media (max-width: 576px) {
  .sa-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sa-stat {
  background: var(--bg-soft-transparent);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sa-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sa-stat-value {
  font-size: var(--fs-xl);
  font-weight: 700;
}

.sa-stat-value--brand {
  color: var(--brand-color);
}

.sa-stat-value--success {
  color: var(--success);
}

.sa-stat-value--danger {
  color: var(--danger);
}

.sa-stat-value--info {
  color: var(--info);
}

/* Streaks (kept, restyled) */
.sa-streaks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-block: 1em;
}

@media (max-width: 768px) {
  .auth-card {
    margin: 1em;
  }
  .sa-streaks {
    grid-template-columns: repeat(2, 1fr);
  }

  .sa-streaks > :nth-child(3) {
    grid-column: 1 / -1;
  }

  .mflex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
}

.sa-streak-card {
  background: var(--bg-soft-transparent);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.sa-streak-label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.sa-streak-value {
  font-size: var(--fs-lg);
  font-weight: 700;
}

.sa-streak-value--success {
  color: var(--success);
}

.sa-streak-value--danger {
  color: var(--danger);
}

.sa-streak-value--warning {
  color: #d97706;
}

/* Table */
.sa-table-wrap {
  overflow-x: auto;
}

.sa-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sa-table thead th {
  background: var(--bg-color);
  color: var(--header-color);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.sa-table tbody td {
  padding: 10px 14px;
  font-size: var(--fs-base);
  border-bottom: 1px solid var(--border-color);
}

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

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

.sa-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.sa-badge--success {
  background: var(--success-bg);
  color: var(--success);
}

.sa-badge--danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.sa-empty {
  text-align: center;
  color: var(--text-muted);
}

.er-wrap {
  padding: var(--space-md);
}

.er-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--header-color);
  text-align: center;
  margin: var(--space-md) 0 var(--space-lg);
  letter-spacing: -0.01em;
}

.er-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.er-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.er-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.er-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.er-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.er-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.er-date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.er-score {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.er-marks {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-color);
}

.er-total {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.er-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.er-badge-success {
  color: var(--success);
  background: var(--success-bg);
}

.er-badge-danger {
  color: var(--danger);
  background: var(--danger-bg);
}

.er-badge-muted {
  color: var(--text-muted);
  background: var(--border-color);
}

.er-badge-info {
  color: var(--info);
  background: var(--info-bg);
}

.er-note {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--border-color);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.er-empty {
  text-align: center;
  padding: var(--space-lg);
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px dashed var(--border-color-darker);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
}

@media (max-width: 480px) {
  .er-card {
    padding: var(--space-sm) var(--space-md);
  }

  .er-name {
    max-width: 45vw;
  }
}

.fee-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 5px;
}

.fee-flex .fee-item,
.npr {
  background-color: var(--bg-soft);
}

.load_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1em;
  min-width: 150px;
  margin: auto;
  background-color: var(--brand-color);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.load_btn:disabled {
  pointer-events: none;
  cursor: default;

  background-color: #b4b4b4;
  color: #fff;
}

.alert {
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.alert-warning {
  background: #fffaeb;
  color: #b54708;
  border-left: 4px solid #f79009;
  border-right: 1px solid #f79009;
  border-top: 1px solid #f79009;
  border-bottom: 1px solid #f79009;
}

.alert-warning::before {
  content: "\F33A";
  font-family: bootstrap-icons;
  font-size: 18px;
}

.alert-success {
  background: #ecfdf3;
  color: #027a48;
  border-left: 4px solid #12b76a;
  border-right: 1px solid #12b76a;
  border-top: 1px solid #12b76a;
  border-bottom: 1px solid #12b76a;
}

.alert-success::before {
  content: "\F26A";
  font-family: bootstrap-icons;
  font-size: 18px;
}

.alert-danger {
  background: #fef3f2;
  color: #b42318;
  border-left: 4px solid #f04438;
  border-right: 1px solid #f04438;
  border-top: 1px solid #f04438;
  border-bottom: 1px solid #f04438;
}

.alert-danger::before {
  content: "❌";
  font-family: bootstrap-icons;
  font-size: 18px;
}

.otplabel {
  display: flex;
  justify-content: center;
  margin-top: 1em;
}

/* =========================================
       ELIGIBILITY RESULT
    ========================================= */

.elig-wrapper {
  width: 100%;

  margin: 30px auto;
  padding: 0 16px;
  font-family: var(--font-sans);
  color: var(--text-color);
}

.elig_footer {
  text-align: center;
  margin-top: 10px;
  color: var(--text-muted);
}

.elig_header,
.elig_box form input,
.elig_box form select {
  margin-bottom: 10px;
}

.elig_btn {
  padding: 1em;
  min-width: 150px;
  background-color: var(--brand-color);
  border-radius: 10px;
  border: none;

  color: #fff;
}

.elig_subtitle {
  color: var(--text-muted);
}

/* Main Card */

.elig-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft-transparent);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Top Status Area */

.elig-header {
  padding: 28px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

/* Icon */

.elig-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.elig-card.success .elig-icon {
  color: var(--success);
  background: var(--success-bg);
}

.elig-card.fail .elig-icon {
  color: var(--danger);
  background: var(--danger-bg);
}

/* Heading */

.elig-title {
  margin: 0;
  color: var(--header-color);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.3;
}

.elig-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* Details */

.elig-details {
  padding: 8px 24px;
}

/* Row */

.elig-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 20px;

  min-height: 58px;
  padding: 12px 0;

  border-bottom: 1px solid var(--border-color);
}

.elig-row:last-child {
  border-bottom: 0;
}

/* Label */

.elig-label {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* Value */

.elig-value {
  color: var(--text-color);
  font-size: var(--fs-base);
  font-weight: 650;
  text-align: right;
  word-break: break-word;
}

/* Status */

.elig-status-wrap {
  padding: 20px 24px 24px;
}

.elig-status {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 10px 18px;

  border-radius: var(--radius-md);

  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.elig-card.success .elig-status {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(22, 163, 74, 0.15);
}

.elig-card.fail .elig-status {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Language Button */

.elig-language {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.elig-lang-btn {
  appearance: none;
  border: 1px solid var(--border-color-darker);
  background: var(--bg-soft-transparent);
  color: var(--text-color);

  min-height: 42px;
  padding: 9px 18px;

  border-radius: var(--radius-pill);

  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.elig-lang-btn:hover {
  color: var(--brand-color);
  border-color: var(--brand-color);
  background: var(--brand-bg);
}

.elig-lang-btn:active {
  transform: scale(0.97);
}

.elig-lang-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus-ring) 25%, transparent);
  outline-offset: 2px;
}

/* =========================================
       MOBILE
    ========================================= */

@media (max-width: 575px) {
  .elig-wrapper {
    margin: 18px auto;
    padding: 0 12px;
  }

  .elig-card {
    border-radius: var(--radius-md);
  }

  .elig-header {
    padding: 24px 18px 20px;
  }

  .elig-icon {
    width: 60px;
    height: 60px;
    font-size: 27px;
    margin-bottom: 12px;
  }

  .elig-title {
    font-size: 1.2rem;
  }

  .elig-details {
    padding: 4px 18px;
  }

  /*
         * Mobile rows become vertical.
         * This prevents long values from looking cramped.
         */

  .elig-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;

    min-height: auto;
    padding: 14px 0;
  }

  .elig-label {
    font-size: var(--fs-xs);
  }

  .elig-value {
    width: 100%;
    font-size: var(--fs-base);
    text-align: left;
  }

  .elig-status-wrap {
    padding: 16px 18px 18px;
  }

  .elig-status {
    min-height: 46px;
  }

  .elig-lang-btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Very Small Screens */

@media (max-width: 360px) {
  .elig-wrapper {
    padding: 0 8px;
  }

  .elig-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .elig-details {
    padding-left: 14px;
    padding-right: 14px;
  }

  .elig-status-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* =========================================================
   POST CONTENT STYLES
   Only affects elements inside .content
   ========================================================= */

.content {
  width: 100%;
  max-width: 100%;
  color: var(--text-color);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.75;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ---------------------------------------------------------
   Headings
   --------------------------------------------------------- */

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  margin-top: 1.75em;
  margin-bottom: 0.7em;
  color: var(--header-color);
  font-weight: 700;
  line-height: 1.3;
}

.content h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.content h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.content h3 {
  font-size: clamp(1.3rem, 3vw, 1.5rem);
}

.content h4 {
  font-size: 1.25rem;
}

.content h5 {
  font-size: 1.125rem;
}

.content h6 {
  font-size: 1rem;
  color: var(--text-muted);
}

/* First heading should not create unnecessary top space */
.content > h1:first-child,
.content > h2:first-child,
.content > h3:first-child,
.content > h4:first-child,
.content > h5:first-child,
.content > h6:first-child {
  margin-top: 0;
}

/* ---------------------------------------------------------
   Paragraph
   --------------------------------------------------------- */

.content p {
  margin: 0 0 1rem;
  color: var(--text-color);
  line-height: 1.8;
}

.content p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   Links
   --------------------------------------------------------- */

.content a {
  color: var(--brand-color);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.content a:hover {
  color: #d93600;
}

/* ---------------------------------------------------------
   Strong / Bold / Italic
   --------------------------------------------------------- */

.content strong,
.content b {
  color: var(--header-color);
  font-weight: 700;
}

.content em,
.content i {
  font-style: italic;
}

/* ---------------------------------------------------------
   Unordered & Ordered Lists
   --------------------------------------------------------- */

.content ul,
.content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.75rem;
  color: var(--text-color);
}

.content ul {
  list-style-type: disc;
}

.content ol {
  list-style-type: decimal;
}

.content li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
  line-height: 1.7;
}

.content li::marker {
  color: var(--brand-color);
  font-weight: 700;
}

/* Nested lists */

.content ul ul,
.content ol ol,
.content ul ol,
.content ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.content ul ul {
  list-style-type: circle;
}

.content ul ul ul {
  list-style-type: square;
}

/* ---------------------------------------------------------
   Images
   --------------------------------------------------------- */

.content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Images inside links */
.content a img {
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.content a:hover img {
  opacity: 0.95;
}

/* ---------------------------------------------------------
   Tables
   --------------------------------------------------------- */

.content table {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--bg-soft);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: var(--fs-base);
}

/* Table cells */

.content table th,
.content table td {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  text-align: left;
  vertical-align: middle;
}

/* Table heading */

.content table th {
  background: var(--brand-color);
  color: var(--white);
  font-weight: 700;
}

/* Table body */

.content table td {
  background: var(--bg-soft-transparent);
}

/* Alternating rows */

.content table tbody tr:nth-child(even) td {
  background: var(--bg-soft);
}

/* Hover */

.content table tbody tr:hover td {
  background: var(--brand-bg);
}

/* ---------------------------------------------------------
   Responsive Tables
   --------------------------------------------------------- */

.content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------------------------------------------------------
   Blockquote
   --------------------------------------------------------- */

.content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--brand-color);
  background: var(--brand-bg);
  color: var(--text-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.content blockquote p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   Horizontal Rule
   --------------------------------------------------------- */

.content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--border-color);
}

/* ---------------------------------------------------------
   Code
   --------------------------------------------------------- */

.content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--brand-color);
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9em;
}

.content pre {
  margin: 1.5rem 0;
  padding: 1rem;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: #111827;
  color: #f9fafb;
  line-height: 1.6;
}

.content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 576px) {
  .content {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .content h1,
  .content h2,
  .content h3,
  .content h4,
  .content h5,
  .content h6 {
    margin-top: 1.5em;
  }

  .content p {
    line-height: 1.75;
  }

  .content ul,
  .content ol {
    padding-left: 1.4rem;
  }

  .content table {
    font-size: 0.875rem;
  }

  .content table th,
  .content table td {
    padding: 9px 10px;
    white-space: nowrap;
  }

  .content img {
    margin: 1rem auto;
    border-radius: var(--radius-sm);
  }
}

.report {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  margin: 5px 0;
  border-radius: 8px;

  /* Font & Typography */
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;

  /* Info Color Palette */
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-left: 5px solid #3b82f6; /* Bold blue left accent */

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Optional: Adds a clean info "ℹ" icon using CSS */
.report::before {
  content: "ℹ";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  background-color: #3b82f6;
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  font-style: italic;
  flex-shrink: 0;
}

.student-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  line-height: 1;
  margin-top: -1em;
}

/* Active */
.student-state-on {
  color: #16803c;
  background: #effaf3;
  border-color: #b9e7c8;
}

/* Inactive */
.student-state-off {
  color: #c0392b;
  background: #fff3f1;
  border-color: #f1c0ba;
}

/* Status dot */
.student-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.student-state-on .student-state-dot {
  background: #20a653;
  box-shadow: 0 0 0 3px rgba(32, 166, 83, 0.12);
}

.student-state-off .student-state-dot {
  background: #e04b3f;
  box-shadow: 0 0 0 3px rgba(224, 75, 63, 0.1);
}

.totalPill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--white);
  background-color: var(--brand-color);
  margin-top: 5px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .logo i {
    font-size: 1.2rem;
  }
  .logo-text {
    font-size: 0.9rem; /* 24px */
  }

  .color_circle_picker,
  .theme-toggle {
    width: 30px;
    height: 30px;
  }
}

.access-denied-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Card Styling */
.access-denied-card {
  background-color: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: calc(var(--space-lg) * 1.5) var(--space-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

/* Icon Container */
.access-denied-icon {
  width: 64px;
  height: 64px;
  background-color: var(--danger-bg);
  color: var(--danger);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.access-denied-icon svg {
  width: 32px;
  height: 32px;
}

/* Badge */
.badge-danger {
  display: inline-block;
  background-color: var(--danger-bg);
  color: var(--danger);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}

/* Typography */
.access-denied-title {
  color: var(--header-color);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.2;
}

.access-denied-text {
  color: var(--text-muted);
  font-size: var(--fs-base);
  line-height: 1.5;
  margin: 0 0 var(--space-lg) 0;
}

/* Actions & Buttons */
.access-denied-actions {
  display: flex;
  gap: var(--space-sm);
  width: 100%;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--brand-color);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border-color: var(--border-color-darker);
}

.btn-secondary:hover {
  background-color: var(--brand-bg);
  color: var(--brand-color);
  border-color: var(--brand-color);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .access-denied-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.language_box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 10px;
}
