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

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--gray-light);
  color: var(--text-dark);
  line-height: 1.6;
}
body:has(.login-container) {
  background-color: transparent;
}
/* COLOR VARIABLES */
:root {
  --maroon: #800000;
  --maroon-dark: #5e0b15;
  --maroon-light: #a52a2a;
  --gold: #b08d57;
  --gold-light: #daa520;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #c4c1c1;
  --gray-dark: #666;
  --text-dark: #333;
  --bright-green: #28a745;
  --bright-red: #dc3545;
  --electric-blue: #00aaff;
  --orange: #ff5722;
}

/* LOGIN PAGE STYLES */
.login-container {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  overflow: hidden;
}

/* Background image layers for slideshow effect */
#bgContainer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

#bgMain,
#bgBlur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 2s ease-in-out;
}

#bgBlur {
  filter: blur(12px);
  transform: scale(1.1);
  opacity: 0;
}

/* Login box with glass effect */
.login-box {
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  width: 80px;
  height: 80px;
  background: var(--gray-light);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
  border: var(--gray-dark);
}

.login-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.login-title {
  color: var(--maroon);
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.login-subtitle {
  color: var(--gray-dark);
  font-size: 14px;
}

/* Form elements */
.form-group-login {
  margin-bottom: 20px;
}

.form-label-login {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 14px;
}

.form-input-login {
  width: 100%;
  padding: 12px 15px;
  padding-right: 45px;
  border: 2px solid var(--gray);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-input-login:focus {
  outline: none;
  border-color: var(--maroon);
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.15);
}

/* Form input fields */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type='time'],
.form-group select,
.form-group textarea,
.form-group input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;

  color: var(--text-color);
  background: var(--card-bg);

  border: 1px solid var(--maroon);
  border-radius: 6px;

  box-sizing: border-box;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

/* Focus state */
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,  
.form-group input[type='time']:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.15);
  background: var(--card-bg);
}

/* Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* Labels */
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
}

/* Required indicator */
.required-text {
  color: var(--gold);
  font-weight: 600;
  margin-left: 3px;
}

/* File input helper text */
.form-group small {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--maroon);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.login-btn:hover {
  background: var(--gold-light);
}

.login-footer p {
  text-align: center;
  margin-top: 20px;
  color: var(--gray-dark);
  font-size: 12px;
}

.login-footer a {
  color: var(--maroon);
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Password toggle eye icon */
.password-wrapper {
  position: relative;
}

.toggle-eye {
  position: absolute;
  right: 12px;
  top: 40px;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
  transition: 0.2s ease;
}

.toggle-eye:hover {
  opacity: 0.7;
}

/* Add slash to closed eye */
.toggle-eye.closed::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* DASHBOARD LAYOUT */
.dashboard-container {
  display: none;
  min-height: 100vh;
  background: var(--gray-light);
}

.dashboard-container.active {
  display: flex;
}

/* MOBILE HAMBURGER MENU - Animates position when sidebar opens */
.mobile-menu-btn {
  display: none; /* Hidden on desktop, shown on mobile */
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  background: var(--white);
  border: 2px solid var(--maroon);
  cursor: pointer;
  padding: 10px;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

/* Three bars of hamburger menu */
.mobile-menu-btn .bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--maroon);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

/* When active, button moves next to sidebar and transforms to X */
.mobile-menu-btn.active {
  left: 270px;
  background: var(--maroon);
}

.mobile-menu-btn.active .bar {
  background: var(--white);
}

.mobile-menu-btn.active .bar.top {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar.middle {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active .bar.bottom {
  transform: translateY(-8px) rotate(-45deg);
}

/* Dark overlay when mobile menu is open */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 900;
}

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

/* SIDEBAR STYLES */
.sidebar {
  width: 260px;
  background: var(--maroon);
  color: var(--white);
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--maroon-dark);
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--maroon-dark);
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: var(--gold);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: var(--gold-light);
}

/* Sidebar header with logo (desktop) */
.sidebar-header {
  padding: 20px;
  background: var(--maroon-dark);
  border-bottom: 2px solid var(--gold);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo-icon {
  width: 45px;
  height: 45px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  font-weight: bold;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-logo-text {
  font-size: 14px;
  line-height: 1.3;
  flex: 1;
}

.sidebar-logo-text strong {
  display: block;
  font-size: 16px;
  color: var(--gold);
}

/* Mobile profile section - only visible on mobile */
.sidebar-mobile-header {
  display: flex;
  padding: 20px;
  background: var(--maroon-dark);
  border-bottom: 2px solid var(--gold);
}

.sidebar-profile {
  display: none;
  align-items: center;
  gap: 15px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--maroon);
}

.profile-avatar {
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--maroon);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  flex-shrink: 0;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.profile-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  line-height: 1.2;
}

.profile-course {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
}

/* Desktop user info section */
.sidebar-user {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
  width: 60px;
  height: 60px;
  background: var(--gray-light);
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  font-weight: bold;
  font-size: 24px;
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.user-avatar:hover {
  animation: pulse 1.5s ease-in-out infinite;
}

.user-name {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}

.user-number {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* Mobile menu links - only visible on mobile */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 15px 20px;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  padding: 10px;
  border-radius: 6px;
  transition: background 0.3s;
  font-size: 14px;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Navigation menu */
.sidebar-nav {
  padding: 15px 0;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.nav-item {
  display: block;
  padding: 14px 20px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
  cursor: pointer;
  border-left: 4px solid transparent;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--gold);
}

.nav-item.active {
  background: rgba(255, 215, 0, 0.2);
  border-left-color: var(--gold);
  color: var(--gold);
}

/* Dropdown button for sidebar */
.nav-item.dropdown-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  outline: none;
}

.nav-item.dropdown-btn:focus {
  outline: none;
}

.nav-item.dropdown-btn.active {
  background: rgba(255, 215, 0, 0.2);
  border-left-color: var(--gold);
  color: var(--gold);
}

    /* ── No Class Available message ── */
    .no-class-msg {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 16px 20px;
      background: #fef9c3;
      border: 1px solid #fde68a;
      border-radius: 8px;
      color: #92400e;
      font-size: 14px;
      font-weight: 500;
      margin-top: 8px;
    }
    .no-class-icon { font-size: 20px; flex-shrink: 0; }
  
  /* ── Inbox unread badge in sidebar ── */
    @keyframes inbox-pulse {
      0%   { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.9); transform: scale(1); }
      40%  { box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); transform: scale(1.15); }
      70%  { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); transform: scale(1); }
      100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    }
    @keyframes inbox-badge-blink {
      0%, 100% { opacity: 1; }
      50%       { opacity: 0.6; }
    }
    .inbox-unread-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 22px;
      height: 22px;
      padding: 0 6px;
      border-radius: 11px;
      background: linear-gradient(135deg, #dc2626, #b91c1c);
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.3px;
      line-height: 1;
      border: 2px solid #fff;
      box-shadow: 0 2px 8px rgba(185, 28, 28, 0.55);
      animation: inbox-pulse 1.4s ease-in-out infinite;
      cursor: pointer;
      position: relative;
      z-index: 1;
    }
    .nav-item .inbox-unread-badge { vertical-align: middle; margin-left: 6px; }
  

/* Dropdown arrow */
.arrow {
  display: inline-block;
  transform: rotate(-90deg);
  transition: transform 0.3s ease;
}

.arrow.rotate {
  transform: rotate(0deg);
}

/* Dropdown container */
.dropdown-container {
  max-height: 0;
  overflow: hidden;
  padding-left: 15px;
  transition: max-height 0.35s ease;
}

.dropdown-container.show {
  max-height: 300px;
}

/* Sub-menu items */
.sub-item {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--white);
  text-decoration: none;
  transition: background 0.3s ease;
  border-left: 4px solid transparent;
}

.sub-item:hover {
  background: rgba(255, 215, 0, 0.2);
  border-left-color: var(--gold);
}

/* Logout button */
.logout-btn {
  margin: 20px;
  padding: 14px;
  background: var(--gold);
  color: var(--maroon);
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  width: calc(100% - 40px);
  transition: background 0.3s;
  font-size: 14px;
}

.logout-btn:hover {
  background: var(--gold-light);
}

/* MAIN CONTENT AREA */
.main-content {
  margin-left: 260px; /* Space for sidebar on desktop */
  flex: 1;
  padding: 0;
  min-height: 100vh;
  animation: slideInRight 0.6s ease-out;
}

/* Top header bar */
.top-header {
  background: var(--white);
  padding: 20px 30px;
  border-bottom: 3px solid var(--gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 0.6s ease-out;
}

.page-title {
  font-size: 24px;
  color: var(--maroon);
  font-weight: bold;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.header-date {
  color: var(--gray-dark);
  font-size: 14px;
  animation: fadeInUp 0.6s ease-out 0.15s both;
}

/* CONTENT SECTIONS */
.content-section {
  display: none;
  padding: 30px;
  animation: fadeInUp 0.5s ease-out;
}

.content-section.active {
  display: block;
}

/* CARD STYLES */
.card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: visible;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(128, 0, 0, 0.1);
}

.card-header {
  background: var(--maroon);
  color: var(--white);
  padding: 15px 20px;
  font-weight: bold;
  font-size: 16px;
  border-bottom: 3px solid var(--gold);
  transition: background 0.3s ease;
}

.card-body {
  padding: 20px;
  animation: fadeInUp 0.6s ease-out;
  overflow: visible;
}

/* EVALUATION FORM */
.eval-form {
  display: inline-block;
  margin-bottom: 30px;
  padding: 18px 35px;
  background: rgba(0, 150, 255, 0.1);
  color: var(--electric-blue);
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.eval-form:hover {
  background: rgba(0, 150, 255, 0.2);
  box-shadow:
    0 0 10px var(--electric-blue),
    0 0 20px var(--electric-blue);
  transform: translateY(-2px);
}

.content-section.active {
  padding: 20px;
}

.eval-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--maroon-dark);
  margin-bottom: 10px;
}

.eval-header {
  background: var(--white);
  padding: 20px 30px;
  border-bottom: 3px solid var(--gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideDown 0.6s ease-out;
}

.content-section p {
  color: var(--text-dark);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.card-header {
  background-color: var(--maroon);
  color: var(--white);
  font-weight: bold;
  padding: 12px 20px;
  font-size: 1rem;
}

.card-body {
  padding: 20px;
}

/* Evaluation Questions */
.evaluation-question {
  margin-bottom: 18px;
}

.question-text {
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--maroon-dark);
}

.question-options {
  display: flex;
  gap: 15px;
}

.question-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Radio Buttons */
.question-options input[type="radio"] {
  accent-color: var(--electric-blue);
  width: 18px;
  height: 18px;
}

/* Textarea */
textarea {
  width: 100%;
  border: 2px solid var(--gray);
  border-radius: 8px;
  padding: 10px;
  font-size: 0.95rem;
  resize: vertical;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

textarea:focus {
  border-color: var(--electric-blue);
  box-shadow: 0 0 8px rgba(0, 170, 255, 0.3);
  outline: none;
}

/* Exit Button Style */
.exit-btn {
  margin: 20px;
  padding: 14px;
  background: var(--maroon);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  width: calc(100% - 40px);
  transition: background 0.3s;
  font-size: 14px;
}

.exit-btn:hover {
  background: var(--maroon-dark);
}

/* SUBMIT BUTTON IN EVALUATION FORM */
.submit-btn {
  display: inline-block;
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 18px 35px;
  background: var(--maroon);
  color: var(--white);
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
}

.submit-btn:hover {
  background: var(--maroon-dark);
}

/* HOME PAGE STYLES */
.welcome-banner {
  background: var(--maroon);
  color: var(--white);
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 30px;
  border-left: 6px solid var(--gold);
  animation: fadeInUp 0.7s ease-out;
  text-align: left;
}

.welcome-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.welcome-subtitle {
  font-size: 16px;
  color: var(--white) !important;
  opacity: 1;
}

/* Quick stats cards */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* ── STAT CARD (merged: original + application filter enhancements) ── */
.stat-card {
  background: var(--white);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--maroon);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(128, 0, 0, 0.15);
}

.stat-number {
  font-size: 36px;
  font-weight: bold;
  color: var(--maroon);
}

.stat-label {
  color: var(--gray-dark);
  font-size: 14px;
  margin-top: 5px;
}

/* TABLE STYLES */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: var(--maroon);
  color: var(--white);
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--gray);
  font-size: 14px;
}

/* Table wrapper for horizontal scroll on mobile */
.data-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--maroon) var(--gray-light);
}

.data-table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.data-table-wrapper::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 3px;
}

.data-table-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--maroon);
  border-radius: 3px;
  transition: background 0.3s;
}

.data-table-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: var(--maroon-dark);
}

/* INFO GRID */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.info-item {
  padding: 12px 15px;
  background: var(--gray-light);
  border-radius: 6px;
  border-left: 4px solid var(--maroon);
  transition: all 0.3s ease;
}

.info-item:hover {
  box-shadow: 0 4px 10px rgba(128, 0, 0, 0.1);
  border-left-color: var(--gold);
}

.info-label {
  font-size: 11px;
  color: var(--gray-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  word-break: break-word;
}

.info-item.full-width {
  grid-column: 1 / -1;
}

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

  .info-item {
    width: 100%;
    padding: 10px 12px;
  }
}

/* ═══════════════════════════════════════════════════
   STATUS BADGES  (single consolidated block)
   ═══════════════════════════════════════════════════ */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  animation: slideDown 0.5s ease-out;
}

.status-enrolled {
  background: #d4edda;
  color: var(--bright-green);
}

.status-absent {
  background: #f8d7da;
  color: var(--bright-red);
}

.status-NotTaken {
  background: #f8d7da;
  color: var(--bright-red);
}

.status-present {
  background: #d4edda;
  color: var(--bright-green);
}

.status-excused {
  background: #fff3cd;
  color: var(--orange);
}

.status-late {
  background: #fff3cd;
  color: var(--orange);
}

/* Application statuses */
.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-approved {
  background: #d4edda;
  color: #155724;
}

.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

.status-graduated {
  background: #e0e0e0;
  color: #212121;
  font-weight: 700;
}

.status-loa {
  background: #ede7f6;
  color: #6a1b9a;
  font-weight: 700;
}

.status-inactive {
  background: #f8d7da;
  color: #dc3545;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   APPLICATION TYPE BADGE
   ═══════════════════════════════════════════════════ */
.app-type-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #e9ecef;
  color: #495057;
  text-transform: capitalize;
}

/* ═══════════════════════════════════════════════════
   TABLE ACTION BUTTONS  (Process / View)
   ═══════════════════════════════════════════════════ */
.btn-action {
  padding: 5px 14px;
  border: none;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-action:hover  { transform: translateY(-1px); }
.btn-action:active { transform: translateY(0); }

.btn-process       { background: var(--maroon); color: #fff; }
.btn-process:hover { background: var(--maroon-dark); }

.btn-view          { background: var(--maroon); color: #fff; }
.btn-view:hover    { background: var(--maroon-dark); }

/* ENROLLMENT SECTION */
.enrollment-status {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--gray-light);
  border-radius: 8px;
}

.enrollment-status-text {
  font-size: 18px;
  font-weight: bold;
  color: var(--maroon);
}

.enrollment-status-card {
  margin-top: 20px;
}

.free-education-banner {
  background-color: #d4edda;
  color: var(--bright-green);
  padding: 15px;
  border-radius: 8px;
  font-weight: 500;
  margin-bottom: 25px;
}

.officially-enrolled-box {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.enrolled-title {
  font-size: 22px;
  margin-bottom: 10px;
}

.enrolled-sem {
  margin-bottom: 25px;
  font-size: 16px;
}

.cor-btn {
  background-color: var(--maroon);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.cor-btn:hover {
  background-color: var(--maroon-light);
}

.enroll-top {
  margin-bottom: 10px;
}

.btn-save {
  background: var(--maroon);
  color: var(--white);
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-save:hover {
  background: var(--maroon-dark);
}

.enroll-note {
  background: var(--maroon);
  color: var(--white);
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
}

.irregular-table select {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid var(--gray);
}

.disabled-row {
  background-color: var(--gray-light);
  opacity: 0.6;
}

/* GRADES TABLE */
.grade-value {
  font-weight: bold;
  color: var(--maroon);
}

.grade-passed {
  color: var(--bright-green);
}

.grade-failed {
  color: var(--bright-red);
}

/* ANNOUNCEMENTS */
.announcement-item {
  padding: 15px;
  border-left: 4px solid var(--maroon);
  background: var(--gray-light);
  margin-bottom: 10px;
  border-radius: 0 6px 6px 0;
  transition: all 0.3s ease;
  animation: slideInLeft 0.5s ease-out;
}

.announcement-item:hover {
  transform: translateX(5px);
  border-left-color: var(--gold);
  background: rgba(128, 0, 0, 0.05);
}

.announcement-title {
  font-weight: bold;
  color: var(--maroon);
  margin-bottom: 5px;
}

.announcement-date {
  font-size: 12px;
  color: var(--gray-dark);
}

/* MESSAGES */
.message-list {
  list-style: none;
}

.message-item {
  padding: 20px;
  border-bottom: 1px solid var(--gray);
  cursor: pointer;
  transition: all 0.3s;
  animation: fadeInUp 0.5s ease-out;
}

.message-item:hover {
  background: var(--gray-light);
  transform: translateX(8px);
}

.message-item:last-child {
  border-bottom: none;
}

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.message-sender {
  font-weight: bold;
  color: var(--maroon);
}

.message-date {
  font-size: 12px;
  color: var(--gray-dark);
}

.message-subject {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.message-preview {
  font-size: 13px;
  color: var(--gray-dark);
}

.message-unread {
  background: rgba(128, 0, 0, 0.05);
  border-left: 4px solid var(--maroon);
}

/* Compose message form */
.compose-form {
  padding: 20px;
}

.compose-form .form-group {
  margin-bottom: 15px;
}

.compose-form textarea {
  min-height: 150px;
  resize: vertical;
}

.send-btn {
  background: var(--maroon);
  color: var(--white);
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.send-btn:hover {
  background: var(--maroon-dark);
}

/* RESPONSIVE STYLES */
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex;
  }

  @media (max-width: 400px) {
    .top-header {
      flex-direction: column;
      align-items: flex-start;
    }
    .header-date {
      margin-top: 5px;
      width: 100%;
      gap: 5px; 
    }
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }

  .sidebar.mobile-active {
    transform: translateX(0);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
  }

  .sidebar-header {
    display: none;
  }

  .sidebar-profile {
    display: flex;
  }

  .sidebar-mobile-header {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .sidebar-user {
    display: none;
  }

  .nav-item {
    padding: 16px 20px;
    font-size: 15px;
    min-height: 48px;
  }

  .nav-item.dropdown-btn {
    padding: 16px 20px;
  }

  .sub-item {
    padding: 14px 20px;
    min-height: 44px;
  }

  .main-content {
    margin-left: 0;
    padding-bottom: 70px;
  }

  .top-header {
    padding-left: 75px;
    padding-right: 15px;
  }

  .info-grid,
  .quick-stats {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 15px;
  }

  .card-body {
    padding: 15px;
  }

  .welcome-banner {
    padding: 25px 20px;
  }

  .welcome-title {
    font-size: 22px;
  }

  .data-table-wrapper {
    width: 100%;
    overflow-x: auto;
  }

  .data-table-wrapper table {
    min-width: 600px;
    width: max-content;
    table-layout: auto;
    font-size: 0.85rem;
  }

  .data-table th,
  .data-table td {
    white-space: nowrap;
    padding: 8px 6px;
  }

  .card-body,
  .content-section,
  .main-content {
    overflow-x: hidden;
  }

  .data-table-wrapper {
    overflow-x: auto;
  }

  .dropdown-container {
    background: rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    margin-bottom: 4px;
    border-radius: 4px;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-box {
    max-width: 100%;
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
    overflow-y: auto;
  }

  .assess-modal-box {
    max-width: 100%;
  }
}

@media (min-width: 901px) {
  .mobile-menu-btn,
  .mobile-overlay,
  .bottom-bar,
  .mobile-menu,
  .sidebar-profile,
  .sidebar-mobile-header {
    display: none;
  }

  .sidebar {
    transform: translateX(0);
  }

  .modal-overlay {
    align-items: center;
    padding: 20px;
  }

  .modal-box {
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
    max-height: none;
    overflow-y: visible;
  }

  .assess-modal-box {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
  }
}

/* ANIMATIONS */
.login-btn,
.exit-btn,
.logout-btn,
.send-btn,
.cor-btn,
.btn-save,
.submit-btn,
.btn-search, 
.btn-archive,
.btn-edit,
.btn-cancel,
.assess-cancel-btn {
  position: relative;
  overflow: hidden;
}

.login-btn::before,
.exit-btn::before,
.logout-btn::before,
.send-btn::before,
.cor-btn::before,
.btn-save::before,
.submit-btn::before,
.btn-search::before,
.btn-archive::before,
.btn-edit::before,
.btn-cancel::before,
.assess-cancel-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

.login-btn:hover::before,
.logout-btn:hover::before,
.exit-btn:hover::before,
.send-btn:hover::before,
.cor-btn:hover::before,
.btn-save:hover::before,
.submit-btn:hover::before,
.btn-search:hover::before,
.btn-archive:hover::before,
.btn-edit:hover::before,
.btn-cancel:hover::before,
.assess-cancel-btn:hover:before {
  left: 100%;
}

.btn-cancel {
  background: var(--white);
  color: var(--maroon);
  padding: 10px 20px;
  border: 2px solid var(--maroon);
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: 10px;
}

.btn-cancel:hover {
  background: var(--gray-light);
}

.nav-item {
  position: relative;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: rgba(255, 215, 0, 0.1);
  transition: width 0.3s ease;
}

.nav-item:hover::before {
  width: 100%;
}

/* KEYFRAME ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(128, 0, 0, 0.3); }
  50%       { box-shadow: 0 0 15px rgba(176, 141, 87, 0.5); }
}

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

/* LOGIN PAGE ANIMATIONS */
.login-container { animation: fadeInUp 0.6s ease-out; }
.login-box        { animation: scaleIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.login-header     { animation: fadeInUp 0.8s ease-out 0.2s both; }
.form-group       { animation: fadeInUp 0.6s ease-out; }
.form-group:nth-child(1) { animation-delay: 0.4s; }
.form-group:nth-child(2) { animation-delay: 0.5s; }
.login-btn    { animation: fadeInUp 0.6s ease-out 0.6s both; }
.login-footer { animation: fadeInUp 0.6s ease-out 0.7s both; }
.login-logo   { animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }

.dashboard-container.active { animation: fadeInUp 0.5s ease-out; }

/* SELECT DROPDOWN BOX DESIGN */
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 2px solid var(--maroon);
  background-color: var(--white);
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%227%22%20viewBox%3D%220%200%2010%207%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%207%205-7z%22%20fill%3D%22%23800%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 7px;
}

.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 5px rgba(184, 138, 71, 0.5);
}

/* Side-by-side form fields (e.g. Year + Semester dropdowns) */
.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
  min-width: 0; /* prevent overflow in narrow modals */
}

.required {
  color: var(--bright-red);
  font-weight: bold;
  margin-left: 2px;
}

/* File upload container */
.file-upload-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-input {
  display: none;
}

.file-upload-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--maroon-dark);
  background: var(--maroon-dark);
  color: var(--white) !important;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.file-upload-btn:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
  background: rgba(255, 215, 0, 0.08);
}

.file-name {
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--maroon);
}

/* admin-specific styles */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  color: var(--text-dark);
}

.profile-number {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
}

/* Checklist styles */
.checklist-container {
  padding: 20px;
  background: var(--gray-light);
  border-radius: 8px;
}

.checklist-container h3 {
  color: var(--maroon);
  margin-bottom: 15px;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.checklist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
  flex-shrink: 0;
}

.checklist-check {
  background-color: #e6f4ea;
  color: #2e7d32;
}

.checklist-cross {
  background-color: #fdecea;
  color: #c62828;
}

.checklist-status {
  margin-top: 20px;
  font-weight: bold;
  color: var(--maroon);
}

.btn-search, 
.btn-edit, 
.btn-archive {
  background: var(--maroon);
  color: var(--white);
  padding: 10px 20px;
  margin-bottom: 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-search:hover, 
.btn-edit:hover, 
.btn-archive:hover {
  background: var(--maroon-dark);
}

.btn-edit, 
.btn-archive {
  background: var(--maroon);
  color: var(--white);
  padding: 10px 20px;
  margin-bottom: 10px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-edit:hover, 
.btn-archive:hover {
  background: var(--maroon-dark);
}

/* GRID FOR REPORTS AND FORMS */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.report-card {
  border: 2px solid var(--maroon);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.report-card h3 {
  color: var(--maroon);
  margin-bottom: 10px;
}

.report-card p {
  font-size: 14px;
  margin-bottom: 15px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.form-actions {
  margin-top: 20px;
  display: flex;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.permission-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.form-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--gray-dark);
}

.form-note em {
  font-style: italic;
}

.table-input {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.table-input:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 5px rgba(128, 0, 0, 0.3);
  outline: none;
}

.table-select {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.table-select:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 5px rgba(128, 0, 0, 0.3);
  outline: none;
}

.margin-top    { margin-top: 20px; }
.margin-bottom { margin-bottom: 20px; }

.date-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--maroon);
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.integration-card {
  border: 2px solid var(--maroon);
  border-radius: 8px;
  padding: 20px;
}

.integration-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.integration-title {
  color: var(--maroon);
  margin: 0;
}

.integration-desc {
  font-size: 14px;
  margin-bottom: 15px;
}

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

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 2000;
}

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

.modal-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: all 0.3s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* Wider modal for forms with more fields (e.g. curriculum mapping) */
.modal-box.modal-wide {
  max-width: 520px;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--maroon);
}

.modal-close:hover {
  color: var(--maroon-dark);
}

.modal-title {
  color: var(--maroon);
  margin-bottom: 10px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--gray-dark);
  margin-bottom: 20px;
}

/* RESET NOTIF */
.reset-success-notif {
  background-color: #d4edda;
  color: #155724;
  padding: 12px 20px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reset-success-notif.hide {
  opacity: 0;
  transform: translateY(-10px);
}

.reset-failed-notif {
  background-color: #f8d7da;
  color: #721c24;
  padding: 12px 20px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reset-failed-notif.hide {
  opacity: 0;
  transform: translateY(-10px);
}

.incorrectPorU {
  padding: 12px 15px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-size: 0.95rem;
  text-align: center;
  position: relative;
}

.incorrectPorU.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.error   { background-color: #ffcccc; }
.success { background-color: #ccffcc; }
.default-color { background-color: #eeeeee; }

/* SITE FOOTER */
.footer {
  margin-top: 60px;
}

.footer-top {
  background: var(--maroon);
  color: var(--white);
  padding: 2px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
}

.footer-main {
  background: var(--white);
  color: var(--text-dark);
  border-top: 4px solid var(--maroon);
  text-align: center;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h3,
.footer h4 {
  color: var(--maroon);
  margin-bottom: 10px;
  text-align: center;
}

.footer p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  text-align: center;
}

.footer a {
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.25s ease;
  text-align: center;
}

.footer a:hover {
  color: var(--maroon);
  padding-left: 4px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  background: var(--gray-light);
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: var(--gray-dark);
  border-top: 1px solid #ddd;
}

@media (max-width: 600px) {
  .footer-container {
    gap: 20px;
    padding: 30px 20px;
  }
}

/* DISABLED ARCHIVE BUTTON */
.btn-archive:disabled {
  background: var(--gray);
  color: var(--white);
  cursor: not-allowed;
  opacity: 0.5;
  margin-left: 6px;
}

.btn-archive:disabled::before {
  display: none;
}

.form-select {
  width: 100%;
  padding: 10px;
  border-color: var(--maroon);
  background-color: var(--gray-light);
  border-radius: 6px;
}

/* APPLICATION REVIEW MODAL */
.app-reason-box {
  background: var(--gray-light);
  border-left: 4px solid var(--maroon);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* APPROVE / REJECT NOTIFICATION */
.app-notification {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.app-notification.approved {
  background: #d4edda;
  color: var(--bright-green);
}

.app-notification.rejected {
  background: #f8d7da;
  color: var(--bright-red);
}

/* ENROLL STUDENT MODAL */
.enroll-modal-box {
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.enroll-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  gap: 0;
}

.enroll-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gray-dark);
  font-weight: 500;
  min-width: 60px;
}

.enroll-step.active    { color: var(--maroon); }
.enroll-step.completed { color: var(--bright-green); }

.enroll-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  transition: all 0.3s ease;
}

.enroll-step.active .enroll-step-circle    { background: var(--maroon); }
.enroll-step.completed .enroll-step-circle { background: var(--bright-green); }

.enroll-step-line {
  flex: 1;
  height: 2px;
  background: var(--gray);
  margin-bottom: 18px;
  transition: background 0.3s ease;
  min-width: 20px;
}

.enroll-step-line.completed { background: var(--bright-green); }

.enroll-nav-btns {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .enroll-modal-box { padding: 20px; }
  .enroll-step span  { display: none; }
  .enroll-step-line  { min-width: 12px; }
}

.assess-free-notice.warning {
  background: #fff3cd;
  color: #856404;
}

/* COR MODAL */
.cor-preview {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--gray-light);
  border: 2px dashed var(--maroon);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.cor-preview-logo { font-size: 40px; flex-shrink: 0; }

.cor-preview-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-dark);
}

.cor-preview-text strong {
  font-size: 15px;
  color: var(--maroon);
}

.cor-preview-text span { color: var(--gray-dark); }

.cor-download-btn {
  width: 100%;
  padding: 13px;
  background: var(--maroon);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.cor-download-btn:hover { background: var(--maroon-dark); }

.cor-download-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

.cor-download-btn:hover::before { left: 100%; }

.cor-note {
  text-align: center;
  font-size: 12px;
  color: var(--gray-dark);
  font-style: italic;
  margin: 0;
}

/* ASSESSMENT MODAL */
.assess-modal-box {
  max-width: 560px;
  width: 100%;
}

.assess-header { margin-bottom: 16px; }

.assess-student-strip {
  background: var(--gray-light);
  border-left: 4px solid var(--maroon);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assess-student-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  gap: 10px;
}

.assess-label {
  color: var(--gray-dark);
  font-weight: 500;
  flex-shrink: 0;
}

.assess-value {
  color: var(--text-dark);
  font-weight: 600;
  text-align: right;
}

.assess-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--maroon);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.assess-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}

.assess-table th {
  background: var(--maroon);
  color: var(--white);
  padding: 9px 10px;
  text-align: left;
  font-weight: 600;
}

.assess-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--gray);
  color: var(--text-dark);
  vertical-align: top;
}

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

.assess-table .assess-empty-row td {
  text-align: center;
  color: var(--gray-dark);
  font-style: italic;
  padding: 20px;
}

.assess-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 10px;
  background: var(--gray-light);
  border-radius: 4px;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.assess-summary-total {
  font-weight: 700;
  font-size: 14px;
  color: var(--maroon);
  background: rgba(128, 0, 0, 0.06);
  border-left: 4px solid var(--maroon);
  border-radius: 4px;
  margin-bottom: 16px;
}

.assess-empty-warning {
  display: none;
  background: #fff3cd;
  color: #856404;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 16px;
}

.assess-empty-warning.visible { display: block; }

.assess-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.assess-confirm-btn {
  flex: 1;
  padding: 12px;
  background: var(--maroon);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.assess-confirm-btn:hover { background: var(--maroon-dark); }

.assess-confirm-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

.assess-confirm-btn:hover::before { left: 100%; }

.assess-cancel-btn {
  flex: 1;
  padding: 12px;
  background: var(--white);
  color: var(--maroon);
  border: 2px solid var(--maroon);
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.assess-cancel-btn:hover { background: var(--gray-light); }

@media (max-width: 480px) {
  .assess-student-row {
    flex-direction: column;
    gap: 2px;
  }
  .assess-value  { text-align: left; }
  .assess-actions { flex-direction: column; }
}

/* ROOM AVAILABILITY CARDS */
.room-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.room-card {
  border: 2px solid var(--gray);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
}

.room-card:hover {
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.12);
}

.room-card-header {
  background: var(--maroon);
  color: var(--white);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--gold);
}

.room-card-name {
  font-weight: bold;
  font-size: 15px;
}

.room-card-body {
  padding: 14px 16px;
  background: var(--white);
}

.room-schedule-list {
  list-style: none;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.room-schedule-item {
  font-size: 13px;
  padding: 8px 10px;
  background: var(--gray-light);
  border-left: 3px solid var(--maroon);
  border-radius: 4px;
  color: var(--text-dark);
  line-height: 1.5;
}

.room-schedule-item.maintenance-block {
  border-left-color: var(--bright-red);
  background: #fff0f0;
  color: var(--bright-red);
  font-weight: 600;
}

.room-no-schedule {
  font-size: 13px;
  color: var(--gray-dark);
  font-style: italic;
  padding: 6px 0;
}

.room-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.room-card-actions button {
  flex: 1;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-room-details { background: var(--maroon); color: var(--white); }
.btn-room-details:hover { background: var(--maroon-dark); }

.btn-room-maintenance {
  background: var(--white);
  color: var(--bright-red);
  border: 2px solid var(--bright-red) !important;
}
.btn-room-maintenance:hover { background: #fff0f0; }

.btn-room-restore {
  background: var(--white);
  color: var(--bright-green);
  border: 2px solid var(--bright-green) !important;
}
.btn-room-restore:hover { background: #f0fff4; }

.status-maintenance { background: #f8d7da; color: var(--bright-red); }
.status-available   { background: #d4edda; color: var(--bright-green); }
.status-occupied    { background: #fff3cd; color: #856404; }
.status-inuse       { background: #e8d5f5; color: #6a1b9a; }

/* DASHBOARD PASSWORD FIELD FIX */
.dashboard-pw-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.dashboard-pw-wrapper input[type="password"],
.dashboard-pw-wrapper input[type="text"] {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid var(--maroon);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dashboard-pw-wrapper input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.15);
}

.dashboard-pw-toggle {
  position: absolute;
  right: 10px;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  color: var(--gray-dark);
  transition: color 0.2s ease;
  line-height: 1;
}

.dashboard-pw-toggle:hover { color: var(--maroon); }

/* INSTRUCTOR-SPECIFIC STYLES */
.class-item {
  border: 2px solid var(--maroon);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out;
}

.class-item:hover {
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.15);
  transform: translateY(-2px);
}

.class-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--white);
  gap: 15px;
}

.class-info { flex: 1; }

.class-code {
  font-size: 18px;
  font-weight: bold;
  color: var(--maroon);
  margin-bottom: 5px;
}

.class-title {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.class-details {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gray-light);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-dark);
  border: 1px solid var(--gray);
}

.class-action-btn {
  padding: 10px 20px;
  background: var(--maroon);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.class-action-btn:hover {
  background: var(--maroon-dark);
  transform: scale(1.05);
}

.class-details-panel {
  max-height: 0;
  overflow: hidden;
  background: var(--gray-light);
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 20px;
}

.class-details-panel.show {
  max-height: 400px;
  padding: 20px;
  border-top: 2px solid var(--gold);
}

.detail-row {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--gray);
}

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

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.detail-link-btn {
  padding: 8px 16px;
  background: var(--maroon);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.detail-link-btn:hover {
  background: var(--gold);
  color: var(--maroon);
  transform: translateY(-2px);
}

/* GRADEBOOK STYLES */
.gradebook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gradebook-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-finalize {
  background: var(--gold);
  color: var(--maroon);
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-finalize:hover {
  background: var(--gold-light);
  transform: scale(1.05);
}

.btn-finalize::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

.btn-finalize:hover::before { left: 100%; }

.gradebook-table .table-input,
.gradebook-table .table-select {
  width: 100%;
  max-width: 100px;
}

.grade-legend {
  margin-top: 20px;
  padding: 15px;
  background: var(--gray-light);
  border-radius: 6px;
  border-left: 4px solid var(--maroon);
}

.legend-title {
  font-weight: bold;
  color: var(--maroon);
  margin-bottom: 10px;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.legend-item {
  font-size: 12px;
  color: var(--text-dark);
}

/* ATTENDANCE SHEET STYLES */
.attendance-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.attendance-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.attendance-table select {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--gray);
  border-radius: 4px;
  font-size: 13px;
  transition: all 0.3s ease;
  background-color: var(--gray-light);
}

.attendance-table select:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 5px rgba(128, 0, 0, 0.3);
  outline: none;
}

.attendance-table input[type="text"] {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--gray);
  border-radius: 4px;
  font-size: 13px;
}

/* STUDENT PROFILE STYLES */
.profile-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.close-btn {
  padding: 8px 16px;
  background: var(--maroon);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.close-btn:hover {
  background: var(--maroon-dark);
  transform: scale(1.05);
}

.profile-section { margin-bottom: 30px; }

.profile-section-title {
  color: var(--maroon);
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.action-btn {
  padding: 6px 14px;
  background: var(--maroon);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 4px 6px 4px 0;
}

.action-btn + .action-btn { margin-top: 6px; }
.action-btn:last-child     { margin-right: 0; }

.action-btn:hover {
  background: var(--gold);
  color: var(--maroon);
  transform: scale(1.05);
}

.report-preview {
  margin: 20px 0;
  padding: 20px;
  background: var(--gray-light);
  border-radius: 6px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
  font-style: italic;
}

.prereq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prereq-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 6px;
  background: var(--gray-light);
  transition: all 0.3s ease;
}

.prereq-item:hover { transform: translateX(5px); }
.prereq-item.completed { border-left: 4px solid var(--bright-green); }
.prereq-item.pending   { border-left: 4px solid var(--orange); }

.prereq-icon {
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.prereq-item.completed .prereq-icon { color: var(--bright-green); }
.prereq-item.pending   .prereq-icon { color: var(--orange); }

.prereq-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-dark);
}

/* APPLICATION DETAILS STYLES */
.app-details-section { margin-bottom: 30px; }

.btn-approve,
.btn-reject {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-approve {
  background: var(--bright-green);
  color: var(--white);
  margin-right: 10px;
}

.btn-approve:hover {
  background: #1e7e34;
  transform: scale(1.05);
}

.btn-reject {
  background: var(--bright-red);
  color: var(--white);
}

.btn-reject:hover {
  background: #bd2130;
  transform: scale(1.05);
}

.btn-approve::before,
.btn-reject::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

.btn-approve:hover::before,
.btn-reject:hover::before { left: 100%; }

.doc-link {
  color: var(--electric-blue);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
}

.doc-link:hover { color: var(--maroon); }

.qualification-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.qualification-item {
  padding: 15px;
  background: var(--gray-light);
  border-radius: 6px;
  border-left: 4px solid var(--maroon);
  transition: all 0.3s ease;
}

.qualification-item:hover {
  transform: translateX(5px);
  border-left-color: var(--gold);
}

.qualification-item strong {
  display: block;
  color: var(--maroon);
  margin-bottom: 5px;
}

.qualification-item div {
  font-size: 14px;
  color: var(--gray-dark);
}

input[type="time"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* RESPONSIVE ANIMATION INSTRUCTOR PAGES */
@media (max-width: 900px) {
  .class-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .class-action-btn { width: 100%; }

  .detail-actions { flex-direction: column; }

  .detail-link-btn {
    width: 100%;
    text-align: center;
  }

  .gradebook-header,
  .attendance-sheet-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gradebook-actions,
  .attendance-actions { width: 100%; }

  .gradebook-actions button,
  .attendance-actions button { flex: 1; }

  .today-class-item {
    flex-direction: column;
    gap: 10px;
  }

  .today-time { min-width: auto; }

  .legend-items {
    flex-direction: column;
    gap: 8px;
  }

  .form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .form-actions button { width: 100%; }
}

/* LMS SWITCH/LAUNCH BUTTON */
.lms-launch-wrapper {
  padding: 0 20px;
  margin-bottom: 10px;
}

.lms-launch-btn {
  margin-top: 20px;
  width: 100%;
  padding: 13px 16px;
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 50%, var(--maroon-dark) 100%);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.lms-launch-btn:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  color: var(--maroon-dark);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(176, 141, 87, 0.4);
}

.lms-launch-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.lms-launch-btn:hover::before { left: 100%; }

.lms-btn-icon {
  font-size: 18px;
  animation: lmsPulseIcon 2s ease-in-out infinite;
  flex-shrink: 0;
}

.lms-launch-btn:hover .lms-btn-icon {
  animation: lmsSpinIcon 0.6s ease-in-out;
}

.lms-btn-text {
  flex: 1;
  text-align: left;
}

.lms-btn-badge {
  font-size: 9px;
  font-weight: bold;
  background: var(--gold);
  color: var(--maroon-dark);
  padding: 2px 6px;
  border-radius: 10px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.lms-launch-btn:hover .lms-btn-badge {
  background: var(--maroon-dark);
  color: var(--gold);
}

/* LMS OVERLAY */
.lms-overlay {
  position: fixed;
  inset: 0;
  background: var(--maroon-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow: hidden;
}

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

.lms-overlay-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  transform: scale(0);
}

.lms-overlay.active .lms-overlay-ring {
  animation: lmsRingExpand 3s ease-out forwards;
}

.lms-ring-1 { width: 200px; height: 200px; animation-delay: 0s !important;   border-color: var(--gold); }
.lms-ring-2 { width: 400px; height: 400px; animation-delay: 0.3s !important; border-color: rgba(176, 141, 87, 0.6); }
.lms-ring-3 { width: 700px; height: 700px; animation-delay: 0.6s !important; border-color: rgba(176, 141, 87, 0.3); }

.lms-overlay-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.lms-overlay.active .lms-overlay-content {
  opacity: 1;
  transform: scale(1);
}

.lms-overlay-logo {
  font-size: 64px;
  color: var(--gold);
  animation: lmsLogoSpin 3s linear infinite;
  line-height: 1;
}

.lms-overlay-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--white);
  letter-spacing: 1px;
}

.lms-overlay-subtitle {
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  min-height: 20px;
}

.lms-progress-bar-wrapper {
  width: 280px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.lms-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--maroon-light), var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.lms-overlay-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 6px;
  font-style: italic;
}

/* Make each master-data table scroll inside its own card */
.data-table-wrapper {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.data-table thead th {
  position: sticky;
  top: 0;
  background: var(--maroon);
  color: var(--white);
  z-index: 2;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

/* LMS KEYFRAMES */
@keyframes lmsRingExpand {
  0%   { opacity: 0.8; transform: scale(0); }
  70%  { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.4); }
}

@keyframes lmsLogoSpin {
  0%   { transform: rotate(0deg)   scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes lmsPulseIcon {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.15); }
}

@keyframes lmsSpinIcon {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Application workflow additions ─────────────────────────────── */

/* Application history cards on student page */
.app-history-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fafafa;
}

.app-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.app-hist-type { font-weight: 600; font-size: 15px; }

.app-history-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}

.app-hist-label { color: #666; min-width: 130px; }
.app-hist-val   { color: #333; }

.text-center { text-align: center; }
.text-muted  { color: #888; font-style: italic; }

/* Class Schedule */
.schedule-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  min-width: 700px;
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}

.schedule-table th {
  background: var(--maroon);
  color: var(--white);
  padding: 10px;
  font-weight: 600;
}

.schedule-table td {
  padding: 10px;
  border: 1px solid var(--gray-dark);
  background: var(--white);
  vertical-align: top;
  flex-direction: column;
  align-items: center;
}

.schedule-table th,
.schedule-table td {
  width: calc(100% / 6);
  word-wrap: break-word;
}

.schedule-table td:empty::after {
  content: "-";
  color: var(--gray-dark);
}

.class-sched {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 8px;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

.class-sched:last-child { margin-bottom: 0; }

.class-sched span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 3px;
  opacity: 0.85;
}

/* GRADEBOOK GRADING STATUS */
.grade-locked-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #555;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: not-allowed;
}

.grade-select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

.autocomplete-wrapper {
  position: relative;
  overflow: visible;
}

.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 99999;
  max-height: 240px;
  overflow-y: auto;
  display: none;
}

.suggestions-dropdown.open { display: block; }

.suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.15s;
}

.suggestion-item:last-child { border-bottom: none; }

.suggestion-item:hover,
.suggestion-item.active {
  background: #fdf5f5;
  border-left: 3px solid #800000;
}

.suggestion-number  { font-weight: 700; font-size: 0.88em; color: #800000; }
.suggestion-name    { font-size: 0.9em;  color: #222; }
.suggestion-program { font-size: 0.78em; color: #888; }

.suggestion-empty {
  padding: 14px;
  color: #999;
  font-size: 0.88em;
  text-align: center;
}
/* ── Instructor Grade Override Access Toggle Buttons ── */
.btn-override-access {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.1s;
  margin-left: 4px;
}
.btn-override-active {
  background: #2e7d32;
  color: #fff;
}
.btn-override-inactive {
  background: #b0bec5;
  color: #37474f;
}
.btn-override-access:hover {
  opacity: 0.85;
  transform: scale(1.03);
}
.btn-override-access:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════════════════════
   TASK 24 – Instructor Management: Action Dropdown + Balanced Button Colors
   ══════════════════════════════════════════════════════════════════════ */

/* Action dropdown wrapper */
.action-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.action-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #800000;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.action-dropdown-toggle:hover { background: #5a0000; }
.action-dropdown-toggle .arrow-icon { font-size: 0.65rem; transition: transform 0.2s; }
.action-dropdown-toggle.open .arrow-icon { transform: rotate(180deg); }

.action-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 180px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
  z-index: 1050;
  overflow: hidden;
}
.action-dropdown-menu.open { display: block; }

.action-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  color: #333;
  transition: background 0.15s;
}
.action-dropdown-item:hover { background: #f5f5f5; }
.action-dropdown-item.item-edit   { border-left: 3px solid #1565c0; }
.action-dropdown-item.item-archive { border-left: 3px solid #e65100; }
.action-dropdown-item.item-override-on  { border-left: 3px solid #2e7d32; }
.action-dropdown-item.item-override-off { border-left: 3px solid #b71c1c; }
.action-dropdown-item .item-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.item-edit .item-dot     { background: #1565c0; }
.item-archive .item-dot  { background: #e65100; }
.item-override-on .item-dot  { background: #2e7d32; }
.item-override-off .item-dot { background: #b71c1c; }

/* Balanced action card buttons */
.instr-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.instr-action-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.instr-btn-primary   { background: #800000; }
.instr-btn-secondary { background: #37474f; }
.instr-btn-export-csv { background: #00695c; }
.instr-btn-export-pdf { background: #6a1b9a; }

/* ══════════════════════════════════════════════════════════════════════
   TASK 33 – Adjustment Period Lock Banner
   ══════════════════════════════════════════════════════════════════════ */
.adjustment-lock-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 5px solid #f9a825;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 0;
}
.adjustment-lock-banner .lock-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.adjustment-lock-banner .lock-text h4 { margin: 0 0 4px; font-size: 0.97rem; color: #5d4037; }
.adjustment-lock-banner .lock-text p  { margin: 0; font-size: 0.85rem; color: #795548; }

/* ══════════════════════════════════════════════════════════════════════
   TASK 36 – Two-column year level layout for curriculum
   ══════════════════════════════════════════════════════════════════════ */
.year-level-accordion {
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}
.year-level-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #f8f4f4;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: background 0.2s;
}
.year-level-accordion-header:hover { background: #f0ebeb; }
.year-level-accordion-header.open  { border-bottom-color: #e0e0e0; background: #f0ebeb; }
.year-level-accordion-header .yla-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #800000;
  display: flex;
  align-items: center;
  gap: 8px;
}
.year-level-accordion-header .yla-badge {
  background: #800000;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.year-level-accordion-header .yla-chevron {
  font-size: 0.75rem;
  color: #800000;
  transition: transform 0.2s;
}
.year-level-accordion-header.open .yla-chevron { transform: rotate(180deg); }
.year-level-accordion-body {
  display: none;
  padding: 14px 16px;
  background: #fff;
}
.year-level-accordion-body.open { display: block; }

/* 2-col curriculum grid inside accordion */
.curriculum-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 700px) { .curriculum-two-col { grid-template-columns: 1fr; } }

.curriculum-course-card {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 10px 13px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: box-shadow 0.15s;
}
.curriculum-course-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.curriculum-course-card .ccc-code { font-weight: 700; font-size: 0.85rem; color: #800000; }
.curriculum-course-card .ccc-name { font-size: 0.82rem; color: #333; }
.curriculum-course-card .ccc-meta { font-size: 0.76rem; color: #888; }
.curriculum-course-card .ccc-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.curriculum-course-card .ccc-actions button {
  flex: 1;
  padding: 4px 0;
  font-size: 0.76rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.ccc-btn-edit   { background: #1565c0; color: #fff; }
.ccc-btn-remove { background: #c62828; color: #fff; }
.ccc-actions button:hover { opacity: 0.82; }

/* ══════════════════════════════════════════════════════════════════════
   GENERAL – Table Pagination Controls
   ══════════════════════════════════════════════════════════════════════ */
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.83rem;
  color: #555;
}
.pagination-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}
.pagination-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  transition: all 0.15s;
}
.pagination-btn:hover:not(:disabled) { background: #800000; color: #fff; border-color: #800000; }
.pagination-btn.active               { background: #800000; color: #fff; border-color: #800000; }
.pagination-btn:disabled             { opacity: 0.4; cursor: not-allowed; }
.pagination-size-select {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.82rem;
  background: #fff;
}

/* ── Programs table column alignment ── */
#programsTable th:nth-child(3),  /* Duration */
#programsTable td:nth-child(3),
#programsTable th:nth-child(4),  /* Department */
#programsTable td:nth-child(4) {
  text-align: center;
}

#programsTable th:nth-child(5),  /* Actions */
#programsTable td:nth-child(5) {
  text-align: center;
}

/* ── Courses table column alignment ── */
#coursesTable th:nth-child(3),   /* Lec Units */
#coursesTable td:nth-child(3),
#coursesTable th:nth-child(4),   /* Lab Units */
#coursesTable td:nth-child(4),
#coursesTable th:nth-child(5),   /* Credited Units */
#coursesTable td:nth-child(5),
#coursesTable th:nth-child(6),   /* Tuition Units */
#coursesTable td:nth-child(6) {
  text-align: center;
}

#coursesTable th:nth-child(7),   /* Actions */
#coursesTable td:nth-child(7) {
  text-align: center;
}

/* Semester label divider inside an accordion body */
.stu-sem-section {
  margin-bottom: 18px;
}
.stu-sem-section:last-child {
  margin-bottom: 0;
}
.stu-sem-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #800000;
  border-bottom: 2px solid #f0e0e0;
  padding-bottom: 5px;
  margin-bottom: 10px;
}
 
/* 2-column grid — same responsive breakpoint as admin */
.stu-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 700px) {
  .stu-two-col { grid-template-columns: 1fr; }
}
 
/* Individual read-only course card (no action buttons) */
.stu-course-card {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 10px 13px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: box-shadow 0.15s;
}
.stu-course-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.stu-course-card .scc-code {
  font-weight: 700;
  font-size: 0.85rem;
  color: #800000;
}
.stu-course-card .scc-name {
  font-size: 0.82rem;
  color: #333;
  line-height: 1.35;
}
.stu-course-card .scc-meta {
  margin-top: 4px;
}
.stu-course-card .scc-units {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 600;
  color: #fff;
  background: #800000;
  border-radius: 10px;
  padding: 1px 8px;
}
.admin-program-accordion {
  margin-bottom: 12px;
  border: 1px solid #c9b7b7;
  border-radius: 10px;
  overflow: hidden;
}
/* ── Admin Program Accordion (Sections + Curriculum) ─────────────────────── */
.admin-program-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #f9f4f4;
  cursor: pointer;
  user-select: none;
  border-bottom: 2px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.admin-program-accordion-header:hover {
  background: #f0e8e8;
}
.admin-program-accordion-header.open {
  background: #f0e8e8;
  border-bottom-color: #c9b7b7;
}
.admin-program-accordion-header .yla-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--maroon);
  flex-wrap: wrap;
}
.yla-badge-prog {
  font-weight: 400;
  font-size: 0.82rem;
  color: #555;
}
.yla-badge {
  background: var(--maroon);
  color: #fff;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}
.yla-chevron {
  font-size: 0.7rem;
  color: var(--maroon);
  transition: transform 0.25s ease;
}
.admin-program-accordion-header.open .yla-chevron {
  transform: rotate(180deg);
}
.admin-program-accordion-body {
  display: none;
  padding: 16px;
  background: #fff;
}
.admin-program-accordion-body.open {
  display: block;
}

/* ── Section Cards Grid ───────────────────────────────────────────────────── */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.section-card {
  background: #fff;
  border: 1px solid #e0d5d5;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s ease;
}
.section-card:hover {
  box-shadow: 0 3px 12px rgba(128, 0, 0, 0.12);
}
.sc-code {
  font-size: 1rem;
  font-weight: 700;
  color: var(--maroon);
}
.sc-year {
  font-size: 0.8rem;
  color: #666;
}
.sc-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.sc-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 10px;
}
.sc-cap {
  background: #e8f0fe;
  color: #1565c0;
}
.sc-enr {
  background: #e8f5e9;
  color: #2e7d32;
}
.sc-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.sc-actions .ccc-btn-edit,
.sc-actions .ccc-btn-remove {
  flex: 1;
  padding: 5px 0;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.sc-actions .ccc-btn-edit   { background: #1565c0; color: #fff; }
.sc-actions .ccc-btn-remove { background: #c62828; color: #fff; }
.sc-actions button:hover    { opacity: 0.82; }

/* ── Curriculum Semester Section (inside year accordion) ─────────────────── */
.admin-sem-section {
  margin-bottom: 16px;
}
.admin-sem-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #eee;
}

/* ── Inner Year-Level Accordion (curriculum nested inside program) ─────────── */
.admin-inner-accordion {
  margin-bottom: 10px;
  border: 1px solid #e8dede;
  border-radius: 8px;
  overflow: hidden;
}
.admin-inner-accordion .year-level-accordion-header {
  background: #faf6f6;
  padding: 10px 14px;
}
.admin-inner-accordion .year-level-accordion-header:hover {
  background: #f2eaea;
}
.admin-inner-accordion .year-level-accordion-header.open {
  background: #f2eaea;
}
.admin-inner-accordion .year-level-accordion-body {
  padding: 12px;
  background: #fff;
}
    /* ── Inbox announcement color coding ── */
    /* Unread announcement: warm amber background */
    .message-ann-unread {
      background: #fff8e1 !important;
      border-left: 4px solid #f59e0b !important;
    }
    .message-ann-unread .message-sender,
    .message-ann-unread .message-subject {
      font-weight: 700;
      color: #92400e !important;
    }
    /* Read announcement: light blue-grey */
    .message-ann-read {
      background: #f0f7ff !important;
      border-left: 4px solid #93c5fd !important;
    }
    .message-ann-read .message-sender,
    .message-ann-read .message-subject {
      font-weight: 400;
      color: #1e3a5f !important;
    }
    /* Unread message (regular): existing red, reaffirm */
    .message-msg-unread {
      background: #fff5f5;
      border-left: 4px solid #e53935;
    }
    .message-msg-unread .message-sender,
    .message-msg-unread .message-subject {
      font-weight: 700;
      color: #b71c1c;
    }
    /* Read message: white */
    .message-msg-read {
      background: #ffffff;
      border-left: 4px solid #e5e7eb;
    }
  