:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --secondary: #1e293b;
  --light: #f8fafc;
  --dark: #0f172a;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --bg-primary: #ffffff;
  --bg-secondary: #f1f5f9;
  --border: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  font-family: "Inter", "Roboto", "Segoe UI", Tahoma, Geneva, Verdana,
    sans-serif;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--light) 100%
  );
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles - Enhanced */
header {
  background: transparent !important;
  color: white;
  padding: 12rem 0;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Hero Section for Homepage */
.hero-section {
  background: transparent !important;
  color: var(--primary) !important;
  padding: 12vw 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.2);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: pulse 15s infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin: 1rem 0 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

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

header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: pulse 15s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-30%, -30%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(0%, 0%) scale(1.5);
    opacity: 0.1;
  }
  100% {
    transform: translate(-30%, -30%) scale(1);
    opacity: 0.3;
  }
}

.header-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem 0; /* Reduced padding */
}

h1 {
  font-size: 2rem; /* Smaller font size */
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: var(--primary);
}

.header-tagline {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content */
main {
  padding: 1.5rem 0;
}

/* Features Section */
.features-section {
  padding: 3rem 0;
}

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

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

.feature-card {
  color: light-dark(var(--light),var(--dark));
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 10px 10px 15px 10px rgba(84, 83, 83, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature-card p {
  color: #6c757d;
  line-height: 1.6;
}

/* Quick Actions Section */
.quick-actions {
  padding: 3rem 0;
  background-color: transparent;
}

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

.action-card {
  color: light-dark(var(--light),var(--dark));
  padding: 2rem; 
  border-radius: 12px;
  box-shadow: 10px 10px 10px 15px rgba(56, 55, 55, 0.1);
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.action-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.action-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.action-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.action-card p {
  color: #6c757d;
  margin: 0;
}

/* Statistics Section */
.stats-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Contact Page Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.contact-info > p {
  color: #6c757d;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h3 {
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-details p {
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
}

.contact-form-container {
  max-width: 100%;
}

/* Textarea styles */
textarea {
  width: 100%;
  padding: 0.7rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f9f9f9;
  font-family: inherit;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.15);
}

/* Dark mode styles for contact page */
body.dark-mode .contact-info {
  background-color: #1a1a2e;
}

body.dark-mode .contact-info h2 {
  color: #7986cb;
}

body.dark-mode .contact-details h3 {
  color: #e0e0e0;
}

body.dark-mode .contact-details p {
  color: #b8c2cc;
}

body.dark-mode textarea {
  background-color: #232333;
  color: #e0e0e0;
  border-color: #444;
}

/* Responsive design for contact page */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    padding: 1.5rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    margin: 0 auto 1rem;
  }
}

/* Fee Structure Page Styles */
.fee-overview {
  margin-bottom: 3rem;
}

.fee-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(63, 81, 181, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.fee-note i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.fee-note p {
  margin: 0;
  color: var(--dark);
  line-height: 1.6;
}

.fees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.fee-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.fee-card-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.fee-card-header i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.fee-card-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.fee-card-body {
  padding: 1.5rem;
}

.fee-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

.fee-item:last-child {
  border-bottom: none;
}

.fee-label {
  color: #6c757d;
  font-weight: 500;
}

.fee-amount {
  font-weight: 600;
  color: var(--dark);
}

.fee-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 2px solid var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.fee-total .fee-label {
  color: var(--primary);
}

.fee-total .fee-amount {
  color: var(--primary);
  font-size: 1.2rem;
}

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

.additional-fee-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.additional-fee-card:hover {
  transform: translateY(-3px);
}

.additional-fee-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.additional-fee-card h3 {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.additional-fee-card .fee-amount {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

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

.payment-item h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-item p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

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

/* Dark mode styles for fee structure */
body.dark-mode .fee-card {
  background-color: #1a1a2e;
}

body.dark-mode .fee-item {
  border-bottom-color: #333;
}

body.dark-mode .fee-label {
  color: #b8c2cc;
}

body.dark-mode .fee-amount {
  color: #e0e0e0;
}

body.dark-mode .additional-fee-card {
  background-color: #1a1a2e;
}

body.dark-mode .additional-fee-card h3 {
  color: #e0e0e0;
}

body.dark-mode .fee-note {
  background: rgba(121, 134, 203, 0.2);
  border-left-color: #7986cb;
}

body.dark-mode .fee-note p {
  color: #e0e0e0;
}

/* Responsive design for fee structure */
@media (max-width: 768px) {
  .fees-grid {
    grid-template-columns: 1fr;
  }

  .additional-fees-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .payment-details {
    grid-template-columns: 1fr;
  }

  .payment-actions {
    flex-direction: column;
    align-items: center;
  }

  .payment-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Academic Calendar Page Styles */
.calendar-overview {
  margin-bottom: 3rem;
}

.calendar-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(63, 81, 181, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.calendar-note i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.calendar-note p {
  margin: 0;
  color: var(--dark);
  line-height: 1.6;
}

.semester-calendar {
  margin-bottom: 4rem;
}

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

.calendar-event {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendar-event:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-date {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
}

.event-date .day {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
}

.event-details h3 {
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.event-details p {
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

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

.deadline-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.deadline-card:hover {
  transform: translateY(-3px);
}

.deadline-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.deadline-card h3 {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.deadline-card p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

.download-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Dark mode styles for academic calendar */
body.dark-mode .calendar-event {
  background-color: #1a1a2e;
}

body.dark-mode .event-details h3 {
  color: #e0e0e0;
}

body.dark-mode .event-details p {
  color: #b8c2cc;
}

body.dark-mode .deadline-card {
  background-color: #1a1a2e;
}

body.dark-mode .deadline-card h3 {
  color: #e0e0e0;
}

body.dark-mode .deadline-card p {
  color: #b8c2cc;
}

body.dark-mode .calendar-note {
  background: rgba(121, 134, 203, 0.2);
  border-left-color: #7986cb;
}

body.dark-mode .calendar-note p {
  color: #e0e0e0;
}

/* Responsive design for academic calendar */
@media (max-width: 768px) {
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .calendar-event {
    flex-direction: column;
    text-align: center;
  }

  .event-date {
    margin-bottom: 1rem;
  }

  .deadlines-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .download-options {
    flex-direction: column;
    align-items: center;
  }

  .download-options .btn {
    width: 100%;
    max-width: 300px;
  }
}

.card {
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin: 1.5rem 2rem;
  max-width: 1800px;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

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

.card-header {
  background: var(--primary);
  color: white;
  padding: 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 3px solid var(--primary-dark);
}

.card-body {
  padding: 1.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.2rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 250px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-wrapper label {
  margin: 0;
  font-weight: normal;
}

.form-links {
  text-align: center;
  margin-top: 1.5rem;
}

.form-links a {
  color: var(--primary);
  text-decoration: none;
}

.form-links a:hover {
  text-decoration: underline;
}

.forgot-password {
  display: block;
  margin-bottom: 1rem;
}

.register-link,
.login-link {
  margin: 0;
  color: #6c757d;
}

.terms-link {
  color: var(--primary);
  text-decoration: none;
}

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

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--dark);
}

input,
select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15),
    0 4px 15px rgba(79, 70, 229, 0.1);
  transform: translateY(-1px);
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #6c757d;
}

.input-icon input,
.input-icon select {
  padding-left: 40px;
}

/* Button Styles */
.btn-container {
  text-align: center;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: none;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 2%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

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

a {
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--accent-light) 100%
  );
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-block {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

/* Progress Bar - Reduced size */
.progress-container {
  margin-bottom: 1.5rem;
  position: relative;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 0.8rem;
}

.progress-bar::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #e9ecef;
  z-index: 1;
}

.progress-bar-fill {
  position: absolute;
  top: 15px;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  z-index: 2;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.progress-step {
  width: 30px;
  height: 30px;
  background-color: #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #6c757d;
  z-index: 3;
  position: relative;
  cursor: pointer;
}

.progress-step.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.3),
    0 4px 15px rgba(79, 70, 229, 0.3);
  transform: scale(1.1);
}

.progress-step.completed {
  background-color: var(--success);
  color: white;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

.progress-label {
  font-size: 0.8rem;
  color: #6c757d;
  text-align: center;
  width: 70px;
  margin-left: -20px;
}

.progress-label.active {
  color: var(--primary);
  font-weight: 600;
}

/* Footer - Reduced margins */
footer {
  background-color: var(--secondary);
  color: white;
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-left: 20px;
  margin-right: 20px;
  gap: 1.5rem;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #b8c2cc;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: #b8c2cc;
}

/* Form Animation - Enhanced */
.form-slide {
  display: none;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* Notification */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  color: var(--dark);
  padding: 0.8rem;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  transform: translateX(150%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.notification.show {
  transform: translateX(0);
}

.notification-icon {
  margin-right: 10px;
  font-size: 1.3rem;
  color: var(--success);
}

/* Loading Spinner */
.loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 4px solid var(--light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.is-invalid {
  border-color: var(--danger) !important;
  background-color: #fff8f8;
}

.invalid-feedback {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

/* Navigation Styles */
.main-nav {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0;
}

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

.logo a {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary) !important;
  text-decoration: none;
}

.logo i {
  margin-right: 0.5rem;
}

/* Toggle button - Positioned at top right */
.nav-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--dark);
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 110;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link i:not(.fa-chevron-down) {
  margin-right: 0.5rem;
}

.fa-chevron-down {
  font-size: 0.8rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:hover .fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.3rem;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: rgba(63, 81, 181, 0.1);
  color: var(--primary);
  padding-left: 1.6rem;
}

.nav-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
}

.btn-outline {
  background-color: var(--primary);
  color: #ffffff !important;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* Theme Toggle Switch - Positioned better */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  position: relative;
}

.theme-switch {
  display: inline-block;
  position: relative;
  width: 45px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(21px);
}

/* Dark Mode Styles - Enhanced visibility */
body.dark-mode {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
}

body.dark-mode .main-nav {
  background-color: rgba(30, 41, 59, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

body.dark-mode .logo a {
  color: #a78bfa; /* Enhanced visibility */
}

body.dark-mode .nav-toggle {
  color: #e0e0e0;
}

body.dark-mode .nav-link {
  color: #f8fafc;
}

body.dark-mode .nav-link:hover {
  color: #a78bfa;
}

body.dark-mode .nav-link.active::after {
  background-color: #a78bfa;
}

body.dark-mode .dropdown-menu {
  background-color: rgba(30, 41, 59, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid #475569;
}

body.dark-mode .dropdown-menu a {
  color: #f8fafc;
}

body.dark-mode .dropdown-menu a:hover {
  background-color: rgba(167, 139, 250, 0.2);
  color: #a78bfa;
}

body.dark-mode .btn-outline {
  border-color: #a78bfa;
  color: #a78bfa;
}

body.dark-mode .btn-outline:hover {
  background-color: #a78bfa;
  color: #0f172a;
}

body.dark-mode .card {
  background-color: rgba(30, 41, 59, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid #475569;
}

body.dark-mode .card-header {
  background-color: #303f9f;
}

body.dark-mode input,
body.dark-mode select {
  background-color: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
  border-color: #475569;
}

body.dark-mode input:focus,
body.dark-mode select:focus {
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
  border-color: #a78bfa;
}

body.dark-mode label {
  color: #f8fafc;
}

body.dark-mode .notification {
  background-color: #232333;
  color: #e0e0e0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode footer {
  background-color: #151525;
}

/* Responsive Navigation - Fixed for better responsiveness */
@media (max-width: 992px) {
  .nav-toggle {
    display: block;
  }

  .nav-wrapper {
    position: relative;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: right 0.3s ease;
    padding-top: 60px;
  }

  body.dark-mode .nav-menu {
    background-color: #1a1a2e;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  body.dark-mode .nav-item {
    border-bottom-color: #333;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    width: 100%;
  }

  .dropdown.active .dropdown-menu {
    max-height: 300px;
  }

  .dropdown-menu a {
    padding-left: 2rem;
  }

  .nav-buttons {
    width: 100%;
    justify-content: center;
    padding: 1rem 0;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .theme-switch-wrapper {
    margin: 1rem auto;
  }

  /* Close button for mobile menu */
  .close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    display: block;
  }

  body.dark-mode .close-menu {
    color: #e0e0e0;
  }
}

/* Additional Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  .card {
    margin: 1rem 0.5rem;
  }

  .card-body {
    padding: 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    margin-left: 15px;
    margin-right: 15px;
  }

  .btn-block {
    width: 100%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  .header-tagline {
    font-size: 0.9rem;
  }

  .card-header {
    padding: 1rem;
    font-size: 1.2rem;
  }

  .progress-label {
    font-size: 0.7rem;
    width: 60px;
    margin-left: -15px;
  }
}
