html {
  scroll-behavior: smooth;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
button {
  font-family: 'Roboto', serif;
}

body {
  background: linear-gradient(135deg, #1c539f 0%, #2c6bc0 50%, #1d539f 100%);
  background-attachment: fixed;
  background-size: cover;
  width: auto;
  overflow-x: hidden;
  font-family: 'Roboto', serif;
  margin: 0px;
  min-height: 100vh;
}

.error-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 80vh;
  text-align: center;
  padding: 2rem;
}

.error-container h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhanced Nav Bar styles */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background: rgba(28, 83, 159, 0.9);

  backdrop-filter: blur(10px);
  font-family: 'Roboto', serif;
  font-weight: 700 !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.nav-logo img {
  width: 6rem;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
}

.text-bold {
  font-weight: 500;
}

/* Enhanced Content Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced Main Card */
.main-card {
  padding: 2rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* Form Section Styling */
.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  color: #1d539f;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
}

.form-section h3 i {
  color: #1c539f;
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Enhanced Form Inputs */
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1d539f;
}

input,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  font-family: 'Roboto', serif;
}

input:focus,
select:focus {
  outline: none;
  border-color: #1c539f;
  box-shadow: 0 0 0 3px rgba(28, 83, 159, 0.1);
}

/* Subtle helper text under inputs */
.help-text {
  display: block;
  margin-top: 0.4rem;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Course Inputs Grid */
#course-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* .course-input {
  position: relative;
} */

.course-input input {
  width: 100%;
  box-sizing: border-box;
}

/* Enhanced Button Controls */
.course-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn-control {
  background: #1c539f;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Roboto', serif;
}

.btn-control:hover {
  background: #1d539f;
}

.btn-control:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Enhanced Submit Button */
.submit-btn {
  background: linear-gradient(135deg, #1c539f 0%, #2c6bc0 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Roboto', serif;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(28, 83, 159, 0.1);
}

.home-btn {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border: 1px solid rgba(28, 83, 159, 0.2);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Roboto', serif;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(28, 83, 159, 0.2);
  color: #6b7280;
}

.home-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(28, 83, 159, 0.2);
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border: 1px solid rgba(28, 83, 159, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.info-box h4 {
  color: #1c539f;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.info-box p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.nav-content nav {
  display: block;
  width: 100%;
  text-align: right;
  padding-top: 0px;
  padding-right: 0px;
}

.section {
  padding-left: 1.1rem;
  padding-right: 1.5rem;
}

/* Enhanced Button Styles */
.btn {
  background: linear-gradient(135deg, #1c539f 0%, #2c6bc0 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Roboto', serif;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(28, 83, 159, 0.2);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(28, 83, 159, 0.2);
}

/* Enhanced Form Container Styles */
#form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#form-container h2 {
  color: #1d539f;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
}

/* Enhanced tooltip for course hover */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltip-box {
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;

  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(0.75rem);
  margin-bottom: 0.5rem;
  width: 16rem;
  background: rgba(51, 51, 51, 0.95);
  color: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tooltip:hover .tooltip-box {
  visibility: visible;
  opacity: 1;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  /* Navigation responsive styles */
  .disappear-mobile {
    display: none;
  }

  .nav-bar {
    padding: 0 1rem;
  }

  .nav-bar i {
    font-size: 2rem;
  }

  /* Mobile content adjustments */
  .container {
    padding: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  #course-inputs {
    grid-template-columns: 1fr;
  }

  .course-controls {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-control {
    width: 100%;
    justify-content: center;
  }
}
