/* styles.css - Unified CSS for all pages */
:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #7209b7;
  --success: #4cc9f0;
  --info: #3a0ca3;
  --warning: #f72585;
  --light: #f8f9fa;
  --dark: #212529;
  --border-radius: 12px;
  --box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

body {
  background-color: #f5f7fb;
  color: #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 70px; /* Add padding for fixed navbar */
}

/* Header & Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 0.5rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: white !important;
  display: flex;
  align-items: center;
}

.navbar-brand span {
  color: var(--success);
}

.nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  margin: 0 2px;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.nav-link i {
  margin-right: 6px;
}

.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.15);
  color: white !important;
}

.user-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  color: white !important;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  margin-right: 8px;
}

/* Main Content */
.main-container {
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.page-title {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
}

/* Cards */
.card {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: none;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.card-header {
  background-color: white;
  border-bottom: 1px solid #eaeaea;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Tables */
.table-container {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow-x: auto;
}

.table {
  margin-bottom: 0;
  min-width: 600px;
}

.table th {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0.9rem;
}

.table td {
  padding: 0.8rem;
  vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(67, 97, 238, 0.03);
}

.table-hover tbody tr:hover {
  background-color: rgba(67, 97, 238, 0.08);
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
}

.btn i {
  margin-right: 6px;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
}

.btn-icon i {
  margin-right: 6px;
}

/* Forms */
.form-control, .form-select {
  border-radius: 8px;
  padding: 0.65rem 1rem;
  border: 1px solid #dee2e6;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Badges */
.badge {
  padding: 0.5em 0.8em;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.bg-success {
  background-color: var(--success) !important;
}

.bg-danger {
  background-color: var(--warning) !important;
}

.bg-warning {
  background-color: #ff9e00 !important;
}

.bg-info {
  background-color: var(--info) !important;
}

/* Dashboard Cards */
.dashboard-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid #eaeaea;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.1);
  border-color: var(--primary);
}

.dashboard-card .card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-card .card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.dashboard-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.dashboard-card .card-text {
  color: #6c757d;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.dashboard-card .card-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.dashboard-card .card-link i {
  margin-left: 5px;
  transition: transform 0.3s;
}

.dashboard-card .card-link:hover i {
  transform: translateX(3px);
}

/* Stats */
.stat-card {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: white;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5rem 0;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Alerts */
.alert {
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
}

/* Progress bars */
.progress {
  height: 8px;
  border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .nav-link {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.95rem;
  }
  
  .stat-value {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
  
  .main-container {
    padding: 1.5rem 0.75rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .stat-card {
    margin-bottom: 1rem;
  }
  
  .table th, .table td {
    padding: 0.6rem;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .page-title {
    font-size: 1.4rem;
  }
  
  .btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
  }
}
html {
  scroll-behavior: smooth;
}


   /* Enhanced progress tracker */
.progress-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
    padding: 0 15%;
}

.progress-tracker::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 5%;
    right: 5%;
    height: 4px;
    background-color: #e9ecef;
    z-index: 0;
}

.progress-step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    margin: 0 auto 10px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.progress-step.completed .step-circle {
    background: #28a745;
    color: white;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
}

.progress-step.active .step-circle {
    background: #007bff;
    color: white;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    transform: scale(1.1);
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.progress-step.completed .step-label,
.progress-step.active .step-label {
    color: #343a40;
    font-weight: 500;
}

/* Navigation buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
/* Give a bit more breathing room on the left of every dropdown item */
.navbar .dropdown-menu .dropdown-item {
  padding-left: 1.5rem;
}

/* And if you want the little caret‑arrow on the parent dropdown to line up nicer */
.navbar .nav-item.dropdown > .nav-link .dropdown-toggle::after {
  margin-left: .25rem;
}

/* If your right‑aligned dropdown is hugging the right edge of the window,
   you can nudge it a bit back in: */
.navbar .dropdown-menu.dropdown-menu-end {
  right: calc(0.5rem + 0px); /* push it in by a half‑rem from the right edge */
}
   #captchaBox {
    font-size: 1.5rem;
    letter-spacing: 4px;
    font-weight: bold;
    padding: 10px 20px;
    background: #f1f1f1;
    border: 1px dashed #6c757d;
    display: block;
    border-radius: 8px;
    user-select: none;
    
  }
  #captchaError {
    font-size: 0.85rem;
    color: #dc3545;
  }

  