:root {
  /* Brand Colors */
  --primary: #2563eb;
  /* Royal Blue */
  --primary-dark: #1e40af;
  --primary-light: #60a5fa;
  --secondary: #f59e0b;
  /* Gold/Amber */
  --accent: #ec4899;
  /* Rose */

  /* Text Colors */
  --text-dark: #0f172a;
  /* Slate 900 */
  --text-muted: #64748b;
  /* Slate 500 */
  --text-light: #f8fafc;
  /* Slate 50 */

  /* Backgrounds */
  --bg-body: #f1f5f9;
  /* Slate 100 */
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);

  /* Modern Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-neon: 0 0 20px rgba(37, 99, 235, 0.3);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-body);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.025em;
}

a {
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Utilities */
.fw-medium {
  font-weight: 500;
}

.fw-semibold {
  font-weight: 600;
}

.fw-bold {
  font-weight: 700;
}

.fw-extrabold {
  font-weight: 800;
}

.ls-1 {
  letter-spacing: 0.025em;
}

.ls-tight {
  letter-spacing: -0.025em;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
  background: var(--gradient-primary) !important;
}

.bg-gradient-dark {
  background: var(--gradient-dark) !important;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem 1rem !important;
  margin: 0 0.2rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  background: rgba(37, 99, 235, 0.05);
}

.navbar-toggler {
  border: none;
  box-shadow: none !important;
}

/* Hero Section */
.hero-section {
  padding: 8rem 0 6rem;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://source.unsplash.com/1600x900/?school,education,modern') center/cover no-repeat;
  opacity: 0.1;
  mix-blend-mode: overlay;
}

.hero-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-section {
    padding-top: 6rem;
  }
}

/* Feature Cards */
.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.glass-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: rotateY(180deg);
}

/* Buttons */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50rem;
  /* Pill shape */
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--primary);
  border: none;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.btn-warning {
  background: var(--secondary);
  border: none;
  color: white !important;
  box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  /* Start hidden */
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

/* Auth Pages */
.auth-wrapper {
  background: var(--bg-body);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.auth-cover {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  color: white;
}

.auth-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://source.unsplash.com/800x600/?students') center/cover;
  opacity: 0.2;
  mix-blend-mode: overlay;
}

/* Dashboard Sidebar */
.sidebar {
  width: 280px;
  background: white;
  min-height: 100vh;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.sidebar-header {
  padding-bottom: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  padding: 0.8rem 1rem !important;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.sidebar .nav-link i {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  width: 24px;
  text-align: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  background: var(--primary);
  color: white !important;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.sidebar .nav-link.text-danger:hover {
  background: #fee2e2;
  color: #ef4444 !important;
  box-shadow: none;
}

/* Sidebar Dropdowns */
.sidebar .nav-link[data-bs-toggle="collapse"] {
  position: relative;
}

.sidebar .nav-link[data-bs-toggle="collapse"]::after {
  display: inline-block;
  font-family: 'bootstrap-icons';
  content: "\F282";
  /* chevron-right */
  margin-left: auto;
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.sidebar .nav-link[data-bs-toggle="collapse"]:not(.collapsed)::after {
  transform: rotate(90deg);
}

.sidebar .nav .nav {
  padding-left: 1.5rem;
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}

.sidebar .nav .nav .nav-link {
  font-size: 0.9rem;
  padding: 0.6rem 1rem !important;
}

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0 !important;
  }
}

.main-content {
  margin-left: 280px;
  padding: 2rem;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

/* Dashboard Cards */
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Stepper */
.stepper-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.stepper-wrapper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
  border-radius: 2px;
}

.stepper-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stepper-item::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  z-index: -1;
  transform: translateX(-50%);
}

.stepper-item:first-child::after {
  content: none;
}

.step-counter {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 4px solid #e2e8f0;
  border-radius: 50%;
  color: var(--text-muted);
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.stepper-item.active .step-counter {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.stepper-item.completed .step-counter {
  border-color: #10b981;
  /* Green */
  background: #10b981;
  color: white;
}

.step-name {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.stepper-item.active .step-name {
  color: var(--primary);
}

.stepper-item.completed .step-name {
  color: #10b981;
}

/* Table Style */
.table-custom th {
  background: #f8fafc;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid #e2e8f0;
}

.table-custom td {
  vertical-align: middle;
  padding: 1rem 0.75rem;
}

/* Badge */
.badge-soft {
  padding: 0.35em 0.8em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
}

.badge-soft-warning {
  background: #fffbeb;
  color: #b45309;
}

.badge-soft-success {
  background: #dcfce7;
  color: #166534;
}

.badge-soft-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-soft-info {
  background: #e0f2fe;
  color: #075985;
}

/* Mobile */
@media (max-width: 576px) {
  .hero-section {
    padding: 5rem 0 4rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .stepper-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .stepper-wrapper::before {
    display: none;
  }

  .stepper-item {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  .step-name {
    margin-top: 0;
    text-align: left;
  }
}

/* Added Utility Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.glass-panel:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
}