@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* High School Theme Colors */
  --primary: #4f46e5;       /* Indigo */
  --primary-hover: #4338ca;
  --accent: #06b6d4;        /* Turquoise */
  --accent-hover: #0891b2;
  
  /* Backgrounds */
  --bg-body: #f3f4f6;       /* Light Gray */
  --bg-card: rgba(255, 255, 255, 0.85); /* Glassmorphism Base */
  
  /* Text */
  --text-main: #1f2937;
  --text-muted: #6b7280;
  
  /* Utilities */
  --border-radius: 16px;
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-body);
  background-image: linear-gradient(135deg, #e0e7ff 0%, #cffafe 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color var(--transition-speed);
}
a:hover {
  color: var(--primary-hover);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Inputs & Buttons */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all var(--transition-speed);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-family: inherit;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--text-muted); }

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

/* Auth Pages Specific */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  animation: slideUpFade 0.5s ease-out forwards;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo {
  max-width: 180px;
  margin-bottom: 1rem;
}

/* Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
}

/* Custom Bootstrap-like Utilities for V2 Pages */
.row { display: flex; flex-wrap: wrap; margin: -0.75rem; }
.row > * { padding: 0.75rem; width: 100%; }
.col-12 { width: 100%; }
@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.3333%; }
  .col-md-5 { width: 41.6666%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.3333%; }
  .col-md-8 { width: 66.6666%; }
  .col-md-9 { width: 75%; }
}
@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.3333%; }
  .col-lg-5 { width: 41.6666%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.3333%; }
  .col-lg-8 { width: 66.6666%; }
  .col-lg-9 { width: 75%; }
}

/* Tables */
.table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.table th, .table td { padding: 1rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.05); }
.table th { font-weight: 600; color: var(--text-muted); background: rgba(0,0,0,0.02); }
.table-hover tbody tr:hover { background-color: rgba(79, 70, 229, 0.03); }
.table-responsive { overflow-x: auto; }
.table-light { background-color: rgba(0,0,0,0.02); }

/* Badges */
.badge { display: inline-block; padding: 0.35em 0.65em; font-size: 0.75em; font-weight: 700; border-radius: 0.25rem; }
.bg-primary { background-color: var(--primary); color: #fff; }
.bg-success { background-color: #10b981; color: #fff; }
.bg-danger { background-color: #ef4444; color: #fff; }
.bg-warning { background-color: #f59e0b; color: #000; }
.bg-info { background-color: #06b6d4; color: #fff; }
.bg-secondary { background-color: #6b7280; color: #fff; }
.bg-light { background-color: #f3f4f6; color: #000; }
.text-dark { color: #1f2937 !important; }
.text-white { color: #fff !important; }
.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: #f59e0b !important; }
.text-primary { color: var(--primary) !important; }
.text-info { color: #06b6d4 !important; }

/* Utilities */
.text-end { text-align: right; }
.m-0 { margin: 0; }
.m-4 { margin: 1.5rem; }
.ms-2 { margin-left: 0.5rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.me-4 { margin-right: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.w-100 { width: 100%; }
.fw-bold { font-weight: bold; }
.rounded-pill { border-radius: 50rem; }
.rounded-circle { border-radius: 50%; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.d-block { display: block; }
.bg-opacity-10 { opacity: 0.9; } /* For table backgrounds */
.bg-opacity-25 { opacity: 0.8; }
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  transition: all var(--transition-speed);
}
.form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2); }


.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.2rem; }
.btn-success { background-color: #10b981; color: white; }
.btn-danger { background-color: #ef4444; color: white; }
.btn-warning { background-color: #f59e0b; color: white; }
.btn-info { background-color: #06b6d4; color: white; }
.btn-secondary { background-color: #6b7280; color: white; }
.btn-outline-primary { color: var(--primary); border: 1px solid var(--primary); background: transparent; }
.btn-outline-success { color: #10b981; border: 1px solid #10b981; background: transparent; }
.btn-outline-danger { color: #ef4444; border: 1px solid #ef4444; background: transparent; }
.btn-outline-warning { color: #f59e0b; border: 1px solid #f59e0b; background: transparent; }
.btn-outline-info { color: #06b6d4; border: 1px solid #06b6d4; background: transparent; }
.btn-outline-secondary { color: #6b7280; border: 1px solid #6b7280; background: transparent; }
.btn-outline-primary:hover { background: var(--primary); color: white; }
.btn-outline-success:hover { background: #10b981; color: white; }
.btn-outline-danger:hover { background: #ef4444; color: white; }
.btn-outline-warning:hover { background: #f59e0b; color: white; }
.btn-outline-info:hover { background: #06b6d4; color: white; }
.btn-outline-secondary:hover { background: #6b7280; color: white; }

.alert-success { background-color: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.alert-warning { background-color: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
.alert-info { background-color: #cffafe; color: #164e63; border: 1px solid #06b6d4; }
.alert-danger { background-color: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }
.alert-secondary { background-color: #f3f4f6; color: #1f2937; border: 1px solid #6b7280; }

