/* ==========================================================================
   SISTEM PEMILIHAN TEFA - MODERN UI DESIGN SYSTEM (2025 EDITION)
   Palette: Indigo-Violet Primary, Cyan Accent, Crisp Slate Surfaces
   ========================================================================== */

:root {
  --md-navy: #4f46e5;
  --md-navy-dark: #312e81;
  --md-navy-light: #6366f1;
  --md-violet: #7c3aed;
  --md-blue: #2563eb;
  --md-blue-soft: #eff6ff;
  --md-cyan: #06b6d4;
  --md-green: #10b981;
  --md-green-soft: #d1fae5;
  --md-amber: #f59e0b;
  --md-red: #ef4444;
  --md-surface: #ffffff;
  --md-bg: #f4f6fb;
  --md-border: rgba(15, 23, 42, 0.08);
  --md-text: #0f172a;
  --md-muted: #64748b;
  --md-radius-lg: 20px;
  --md-radius-md: 14px;
  --md-radius-sm: 10px;
  --md-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(79, 70, 229, 0.05);
  --md-shadow-md: 0 12px 32px rgba(79, 70, 229, 0.13), 0 2px 8px rgba(15, 23, 42, 0.04);
  --md-gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --md-gradient-hero: linear-gradient(135deg, #312e81 0%, #4f46e5 52%, #7c3aed 100%);
  --sidebar-width: 264px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--md-bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.07) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.07) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--md-text);
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.35);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 70, 229, 0.5);
}

/* Typography & Utility Classes */
.fw-black {
  font-weight: 800;
}

.gradient-text {
  background: var(--md-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-sm);
}

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

.animate-in {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ==========================================================================
   APP SHELL & DARK GLASS SIDEBAR
   ========================================================================== */

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

.app-sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg, #1e1b4b 0%, #17153b 55%, #0f172a 100%);
  color: #e2e8f0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 6px 0 32px rgba(15, 23, 42, 0.16);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.app-sidebar .sidebar-brand {
  padding: 1.35rem 1.25rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.app-sidebar .sidebar-brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.app-sidebar .sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.85rem;
}

.sidebar-section-title {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(165, 180, 252, 0.65);
  padding: 0.85rem 0.9rem 0.4rem;
}

.app-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  color: #cbd5e1;
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
  position: relative;
}

.app-sidebar .nav-link i {
  font-size: 1.08rem;
  width: 22px;
  text-align: center;
  transition: transform 0.2s ease;
}

.app-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  transform: translateX(3px);
}

.app-sidebar .nav-link.active {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.42);
}

.app-sidebar .nav-link.active i {
  transform: scale(1.06);
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-main.no-sidebar {
  margin-left: 0;
}

/* ==========================================================================
   GLASSMORPHISM NAVBAR
   ========================================================================== */

.app-navbar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--md-border);
  padding: 0.8rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.03);
}

.app-content {
  padding: 1.65rem;
  flex: 1;
  animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--md-gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile Sidebar Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  z-index: 1035;
}

/* ==========================================================================
   MODERN CARDS & STAT CARDS
   ========================================================================== */

.md-card {
  background: var(--md-surface);
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-sm);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease;
  overflow: hidden;
}

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

.md-card .card-header {
  background: rgba(248, 250, 252, 0.7);
  border-bottom: 1px solid var(--md-border);
  padding: 1.05rem 1.35rem;
  font-weight: 700;
  color: var(--md-text);
}

.md-card .card-body {
  padding: 1.35rem;
}

.stat-card {
  background: var(--md-surface);
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--md-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.38rem;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.stat-icon.navy {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
}
.stat-icon.blue {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
}
.stat-icon.green {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
}
.stat-icon.amber {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #ffffff;
}
.stat-icon.red {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff;
}
.stat-icon.cyan {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  color: #ffffff;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--md-text);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--md-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   BUTTONS, FORMS, BADGES, DROPDOWNS & MODALS
   ========================================================================== */

.btn {
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn-navy {
  background: var(--md-gradient-primary);
  border: none;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}

.btn-navy:hover,
.btn-navy:focus {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.36);
}

.btn-sm {
  border-radius: 999px;
}

.form-control,
.form-select {
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  padding: 0.58rem 0.9rem;
  background-color: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--md-navy);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

.badge {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.4em 0.75em;
}

.badge.bg-primary {
  background: var(--md-gradient-primary) !important;
}

.dropdown-menu {
  border-radius: 18px !important;
  border: 1px solid var(--md-border) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14) !important;
  padding: 0.45rem;
}

.dropdown-item {
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.modal-content {
  border-radius: 22px;
  border: 1px solid var(--md-border);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

/* ==========================================================================
   MODERN TABLES
   ========================================================================== */

.table-modern thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1.5px solid #e2e8f0;
  padding: 0.9rem 1rem;
  white-space: nowrap;
}

.table-modern tbody tr:nth-child(even) {
  background-color: #fafbfe;
}

.table-modern tbody tr {
  transition: background-color 0.15s ease;
}

.table-modern tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.035);
}

.table-modern tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-color: #f1f5f9;
  font-size: 0.89rem;
}

/* ==========================================================================
   TEFA CARDS (STUDENT PORTAL)
   ========================================================================== */

.tefa-card {
  border: 1px solid var(--md-border);
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--md-shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.tefa-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--md-shadow-md);
  border-color: rgba(79, 70, 229, 0.25);
}

.tefa-card.selected-tefa {
  border: 2px solid var(--md-green);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.18);
}

.tefa-card-img {
  width: 100%;
  height: 192px;
  object-fit: cover;
  background: #e2e8f0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tefa-img-clickable {
  cursor: pointer;
  overflow: hidden;
}

.tefa-img-clickable:hover .tefa-card-img {
  transform: scale(1.06);
}

.tefa-zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tefa-title-link {
  cursor: pointer;
  transition: color 0.15s ease;
}

.tefa-title-link:hover {
  color: var(--md-navy) !important;
  text-decoration: underline;
}

.tefa-badge-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* ==========================================================================
   STUDENT MOBILE BOTTOM NAVIGATION (GLASS DOCK)
   ========================================================================== */

.student-bottom-nav {
  display: none;
}

@media (max-width: 767.98px) {
  body.has-student-bottom-nav {
    padding-bottom: 76px;
  }
  .student-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 66px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--md-border);
    z-index: 1030;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 4px;
  }
  .student-bottom-nav::-webkit-scrollbar {
    display: none;
  }
  .student-bottom-nav a {
    flex: 1 0 auto;
    min-width: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--md-muted);
    font-size: 0.68rem;
    font-weight: 600;
    gap: 2px;
    position: relative;
    padding: 4px 6px;
    transition: color 0.18s ease;
  }
  .student-bottom-nav a.active {
    color: var(--md-navy);
  }
  .student-bottom-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: var(--md-gradient-primary);
  }
  .student-bottom-nav a i {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   CENTERED SPLIT-CARD LOGIN PAGE
   ========================================================================== */

.login-page {
  min-height: 100vh;
  background-color: #eef2ff;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(79, 70, 229, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(6, 182, 212, 0.2) 0%, transparent 45%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 48%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-shell {
  width: 100%;
  max-width: 1040px;
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 32px 80px rgba(9, 13, 36, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-visual {
  width: 47%;
  background-color: #0b1120;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(79, 70, 229, 0.42) 0%, transparent 48%),
    radial-gradient(circle at 84% 78%, rgba(6, 182, 212, 0.28) 0%, transparent 48%),
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 22px 22px;
  color: #f8fafc;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.login-visual-inner {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.login-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  padding: 0.6rem 1rem 0.6rem 0.65rem;
  border-radius: 18px;
}

.login-brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffffff;
  padding: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(165, 180, 252, 0.25);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.login-headline {
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #ffffff;
}

.login-status-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
}

.login-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.login-bento-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.login-bento-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  font-size: 0.76rem;
  color: #cbd5e1;
}

.login-bento-item i {
  display: block;
  font-size: 1.1rem;
  color: #38bdf8;
  margin-bottom: 0.35rem;
}

.login-panel {
  flex: 1;
  background:
    radial-gradient(circle at 92% 8%, rgba(79, 70, 229, 0.05) 0%, transparent 42%),
    #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.75rem 2.5rem;
}

.login-box {
  width: 100%;
  max-width: 410px;
}

.login-mobile-hero {
  background-color: #0b1120;
  background-image:
    radial-gradient(circle at 14% 20%, rgba(79, 70, 229, 0.45) 0%, transparent 55%),
    radial-gradient(circle at 88% 85%, rgba(6, 182, 212, 0.3) 0%, transparent 55%),
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 18px 18px;
  color: #ffffff;
  padding: 1.35rem 1.35rem 1.25rem;
}

.role-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  gap: 4px;
}

.role-segment-btn {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.62rem 0.9rem;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.role-segment-btn:hover {
  color: #0f172a;
}

.role-segment-btn.active {
  background: #ffffff;
  color: var(--md-navy);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.login-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-field-icon {
  position: absolute;
  left: 0.95rem;
  color: #94a3b8;
  font-size: 1.05rem;
  pointer-events: none;
  transition: color 0.18s ease;
}

.login-field {
  width: 100%;
  height: 48px;
  padding: 0 2.75rem 0 2.7rem;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: var(--md-text);
  font-size: 0.94rem;
  font-weight: 500;
  transition: all 0.18s ease;
}

.login-field:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--md-navy);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.login-field-wrap:focus-within .login-field-icon {
  color: var(--md-navy);
}

.login-field-toggle {
  position: absolute;
  right: 0.55rem;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.login-field-toggle:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-login-cta {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--md-gradient-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.btn-login-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.38);
}

.btn-login-cta i.bi-arrow-right {
  transition: transform 0.18s ease;
}

.btn-login-cta:hover i.bi-arrow-right {
  transform: translateX(3px);
}

.login-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 12px;
  padding: 0.78rem 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.login-note {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.81rem;
  color: #64748b;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

/* ==========================================================================
   EMPTY STATE, COUNTDOWN, NOTIFICATIONS & SWEETALERT2
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: 3.25rem 1.5rem;
  color: var(--md-muted);
}

.empty-state i {
  font-size: 3.2rem;
  color: #cbd5e1;
  display: block;
  margin-bottom: 0.8rem;
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

#notifBellBtn {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

#notifBellBtn:hover {
  background-color: #eef2ff !important;
  transform: scale(1.04);
}

#notifDropdown .hover-bg:hover {
  background-color: #f8fafc;
}

.swal2-popup {
  border-radius: 22px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.swal2-confirm {
  border-radius: 999px !important;
  background: var(--md-gradient-primary) !important;
}

.swal2-cancel {
  border-radius: 999px !important;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.show {
    transform: translateX(0);
  }
  .sidebar-backdrop.show {
    display: block;
  }
  .app-main {
    margin-left: 0;
  }
  .app-content {
    padding: 1.15rem;
  }
  .table-responsive-stack {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-modern {
    font-size: 0.82rem;
  }
  .table-modern th,
  .table-modern td {
    white-space: nowrap;
  }
  .md-card .card-body {
    padding: 1.05rem !important;
  }
  #notifDropdown {
    max-width: calc(100vw - 24px) !important;
    min-width: 280px !important;
  }
  .login-shell {
    flex-direction: column;
    max-width: 480px;
  }
}

@media (max-width: 767.98px) {
  .app-navbar {
    padding: 0.7rem 1rem;
  }
  .app-navbar .fw-bold {
    font-size: 0.9rem !important;
  }
  .app-navbar .text-muted {
    font-size: 0.71rem !important;
  }
  .btn-sm {
    min-height: 36px;
    padding: 0.35rem 0.75rem;
  }
  .form-label.small {
    font-size: 0.8rem;
  }
  h4.fw-bold {
    font-size: 1.12rem;
  }
  .stat-card {
    padding: 1rem;
  }
  .stat-value {
    font-size: 1.38rem;
  }
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    border-radius: 13px;
  }
  .login-panel {
    padding: 1.75rem 1.5rem;
  }
  .login-field {
    font-size: 16px;
  }
}

@media (max-width: 575.98px) {
  .login-page {
    padding: 0.75rem;
    align-items: flex-start;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }
  .login-shell {
    border-radius: 22px;
  }
  .login-mobile-hero {
    padding: 1.2rem 1.15rem 1.1rem;
  }
  .login-panel {
    padding: 1.4rem 1.15rem 1.5rem;
  }
  .login-heading-title {
    font-size: 1.38rem !important;
  }
  .app-content {
    padding: 0.9rem 0.75rem !important;
  }
  .student-top-nav .btn-sm span.d-sm-inline {
    display: none !important;
  }
}

/* ==========================================================================
   PRINT UTILITIES
   ========================================================================== */

@media print {
  .no-print,
  .app-sidebar,
  .app-navbar,
  .student-bottom-nav {
    display: none !important;
  }
  .app-main {
    margin-left: 0 !important;
  }
  body {
    background: #ffffff !important;
    background-image: none !important;
  }
  .md-card {
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
  }
}
