/* EduTrack - Modern Quiz Platform Styles */

:root {
  /* Colors */
  --primary: #6236FF;
  --primary-light: #7C5AFF;
  --primary-dark: #4B1FE6;
  --accent: #FF8C42;
  --accent-light: #FFA666;
  --success: #20C997;
  --success-light: #4DD4AC;
  --danger: #EF4444;
  --warning: #F59E0B;
  
  --background: #F4F7FA;
  --card: #FFFFFF;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  
  /* Spacing */
  --radius: 1rem;
  --shadow: 0 10px 40px -10px rgba(98, 54, 255, 0.3);
  --shadow-lg: 0 20px 60px -15px rgba(98, 54, 255, 0.35);
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounceHover {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-slide-down {
  animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: both;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  color: white;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-role {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  background: var(--background);
  border-radius: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--font-family);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--background);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.btn-ghost:hover {
  color: var(--primary);
  background: rgba(98, 54, 255, 0.05);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), var(--success-light));
  color: white;
}

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

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Roles Section */
.roles-section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

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

.role-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.role-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.role-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
}

.gradient-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.gradient-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.gradient-success {
  background: linear-gradient(135deg, var(--success), var(--success-light));
}

.role-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.role-desc {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.role-cta {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  background: white;
}

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

.feature-item {
  text-align: center;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--text-secondary);
}

/* Auth Pages */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  padding: 0 1.5rem;
}

.auth-card {
  background: var(--card);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.form-input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-family);
  transition: all 0.2s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(98, 54, 255, 0.1);
}

.form-input.error {
  border-color: var(--danger);
}

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  min-height: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.text-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

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

/* Dashboard */
.dashboard {
  padding: 2rem 0 4rem;
  min-height: calc(100vh - 80px);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
}

.dashboard-subtitle {
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Quiz List */
.quiz-list-section {
  margin-top: 3rem;
}

.quiz-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-item {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.quiz-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.quiz-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.quiz-actions {
  display: flex;
  gap: 0.5rem;
}

/* Quiz Cards */
.quiz-sections {
  display: grid;
  gap: 3rem;
}

.quiz-section {
  margin-top: 2rem;
}

.quiz-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  
}

.quiz-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.quiz-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.quiz-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.quiz-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.quiz-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-upcoming {
  background: rgba(255, 140, 66, 0.1);
  color: var(--accent);
}

.badge-active {
  background: rgba(32, 201, 151, 0.1);
  color: var(--success);
}

.quiz-details {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Results List */
.results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center; /* <--- Add this line */
  /* Optional for max width, so cards don't stretch to browser edge */
  max-width: 900px;
  margin: 0 auto;
}

.result-item {
  background: var(--card);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.result-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.result-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.result-score {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.score-excellent {
  color: var(--success);
  background: rgba(32, 201, 151, 0.1);
}

.score-good {
  color: var(--primary);
  background: rgba(98, 54, 255, 0.1);
}

.score-average {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
}

/* Admin Sections */
.admin-sections {
  display: grid;
  gap: 3rem;
  margin-top: 2rem;
}

.admin-section {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.approval-list, .activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.approval-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--background);
  border-radius: 0.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.approval-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.approval-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.approval-actions {
  display: flex;
  gap: 0.5rem;
}

.activity-item {
  padding: 1rem;
  border-left: 3px solid var(--primary);
  background: var(--background);
  border-radius: 0.5rem;
}

.activity-item strong {
  color: var(--text-primary);
}

.activity-item span {
  color: var(--text-muted);
  font-size: 0.75rem;
  display: block;
  margin-top: 0.25rem;
}

.chart-placeholder {
  background: var(--background);
  border-radius: var(--radius);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--background);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .roles-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .quiz-cards {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .quiz-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-links {
    gap: 0.5rem;
  }
  
  .user-role {
    display: none;
  }
  
  .auth-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
}

.enrollment-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(44, 62, 80, 0.06);
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 320px;
  max-width: 420px;
}

.card-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #34495e;
  margin-bottom: 12px;
}

.enrollment-form {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: center;
}

.enrollment-label {
  font-size: 1.07rem;
  font-weight: 600;
  color: #34495e;
  margin-right: 8px;
}

.enrollment-select {
  padding: 7px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 1rem;
  font-weight: 500;
  color: #22223b;
  margin-right: 8px;
}

.enrollment-button {
  padding: 7px 20px;
  background: linear-gradient(90deg, #4CAF50 50%, #388e3c 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.08);
  transition: background 0.18s;
  margin-left: auto;
}

.enrollment-button:hover {
  background: linear-gradient(90deg, #388e3c 30%, #2e7d32 100%);
}

.stat-card.enrollment-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(44, 62, 80, 0.06);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 250px;
  max-width: 380px;
  margin: 16px;
}

.stat-content {
  width: 100%;
}

.stat-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #34495e;
  margin-bottom: 16px;
  text-align: left;
}

.enrollment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 520px) {
  .enrollment-form {
    flex-direction: row;
    align-items: center;
  }
}

.enrollment-label {
  font-weight: 600;
  color: #333;
  margin-right: 8px;
}

.enrollment-select {
  padding: 8px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #f4f8fb;
  font-size: 1rem;
  color: #222;
  margin-right: 10px;
  margin-bottom: 0;
}

.enrollment-button {
  padding: 8px 22px;
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(67, 233, 123, 0.08);
  transition: background 0.18s;
  margin-left: 0;
}

.enrollment-button:hover {
  background: linear-gradient(90deg, #37c371 0%, #1cc5a3 100%);
}










/* Buttons Enhancements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--font-family);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--background);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.btn-ghost:hover {
  color: var(--primary);
  background: rgba(98, 54, 255, 0.05);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), var(--success-light));
  color: white;
}

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

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Alerts */
.alert {
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

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

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--background);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Enrollment Cards */
.enrollment-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(44, 62, 80, 0.06);
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 320px;
  max-width: 420px;
}

.card-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #34495e;
  margin-bottom: 12px;
}

.enrollment-form {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: center;
  flex-direction: column; /* fallback */
}

@media (min-width: 520px) {
  .enrollment-form {
    flex-direction: row;
  }
}

.enrollment-label {
  font-size: 1.07rem;
  font-weight: 600;
  color: #34495e;
  margin-right: 8px;
}

.enrollment-select {
  padding: 7px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 1rem;
  font-weight: 500;
  color: #22223b;
  margin-right: 8px;
}

.enrollment-button {
  padding: 7px 20px;
  background: linear-gradient(90deg, #4CAF50 50%, #388e3c 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.08);
  transition: background 0.18s;
  margin-left: auto;
}

.enrollment-button:hover {
  background: linear-gradient(90deg, #388e3c 30%, #2e7d32 100%);
}
.class-list {
    list-style: none;
    padding: 0;
}

.class-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--card, #fff);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.enrolled-classes {
    margin: 2rem 0;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.class-card {
    background: var(--card, #fff);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(98, 54, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(98, 54, 255, 0.15);
}

.class-card h3 {
    color: var(--primary, #6236FF);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.class-card p {
    color: var(--text-secondary, #6B7280);
    margin-bottom: 1rem;
}

.class-card .btn {
    width: 100%;
    text-align: center;
}
.select-large {
  font-size: 1.09rem;
  padding: 0.67rem 1.1rem;
  border-radius: 0.8rem;
  border: 1.5px solid #dacdf6;
  background: #f5f3fa;
  color: #393043;
  width: 100%;
  margin-bottom: 14px;
  outline: none;
  font-weight: 600;
  transition: border 0.18s;
}

.select-large:focus {
  border: 2px solid #a020f0;
  background: #fff;
}
.gradient-accent {
    background: linear-gradient(135deg, #ffac67 0%, #ff7b7b 100%);
    color: #fff;
}

.gradient-primary {
    background: linear-gradient(135deg, #8755ff 0%, #4f8cff 100%);
    color: #fff;
}

/* Add these for pending and rejected */
.gradient-warning {
    background: linear-gradient(135deg, #ffe066 0%, #ff8800 100%);
    color: #fff;
}
.gradient-danger {
    background: linear-gradient(135deg, #ff5567 0%, #ff7b7b 100%);
    color: #fff;
}

.pending-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 8px;
    min-width: 22px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(44,62,80,0.15);
    z-index: 2;
}

.quiz-toggle { display: none; }
.quiz-label {
  cursor: pointer;
  display: block;
  padding: 1rem;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 6px;
  box-shadow: 0 3px 16px 0 rgba(144,104,255,0.07);
  font-size: 1.11rem;
}
.attempts-list {
  max-height: 0;
  overflow: hidden;
  background: #f8f9fb;
  margin-left: 1rem;
  transition: max-height 0.2s ease;
  border-left: 4px solid #4b1fe6;
  border-radius: 0 0 11px 11px;
  padding-left: 10px;
}
.quiz-toggle:checked + .quiz-label + .attempts-list {
  max-height: 500px;
  padding: 0.7rem 0.7rem 0.9rem 0.5rem;
}
.form-wrapper {
  margin: 3rem auto 0 auto;
  max-width: 390px;
  background: rgba(255,255,255,0.95);
  border-radius: 1.6rem;
  box-shadow: 0 6px 24px rgba(118,75,162,0.06);
  padding: 2.2rem 2.2rem 1.2rem 2.2rem;
}
.form-card {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.form-group label {
  font-weight: 600;
  margin-bottom: .36rem;
  display: block;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: .62rem .8rem;
  border: 1.5px solid #d4c2f7;
  border-radius: .8rem;
  font-size: 1.02em;
  margin-bottom: .2rem;
  background: #f9f7fe;
  outline: none;
  transition: border .16s;
}
.form-group input:focus,
.form-group select:focus {
  border: 1.5px solid #6366f1;
  background: #fff;
}
.btn.btn-primary.btn-lg {
  width: 100%;
  font-size: 1.1em;
  padding: 1rem 0.5rem;
  border-radius: 1.2rem;
}
.form-footer {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 1em;
}
.form-desc {
  font-size: 0.96em;
  color: #707699;
  margin-bottom: .2rem;
  padding-left: 2px;
}
.flash-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1em;
}
.flash-error {
  background: #ffeaea;
  color: #a91515;
  padding: 0.75em 1em;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 0.8em;
}
.flash-success {
  background: #eafaf1;
  color: #0c7355;
  padding: 0.75em 1em;
  border-left: 4px solid #10b981;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 0.8em;
}
.error-message {
    color: red;
    font-size: 0.875em;
    margin-top: 5px;
}

