/* General body and background styles */
body,
html {
  font-family: "Roboto", sans-serif;
  background-color: #f4f4f7;
  padding: 20px;
  overflow-y: auto;
}

.container {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

h2,
h4 {
  color: #0056b3;
}

/* Styling for navigation tabs */
.nav-tabs {
  border-bottom: 2px solid #dee2e6;
}

.nav-item {
  margin-bottom: -1px;
}

.nav-link {
  border: 1px solid transparent;
  border-radius: 0.25rem 0.25rem 0 0;
  padding: 0.5rem 1rem;
  background-color: #f8f9fa;
  color: #495057;
}

.nav-link.active,
.nav-link:hover {
  color: #0056b3;
  background-color: #e9ecef;
  border-color: #dee2e6 #dee2e6 #ffffff;
}

/* Enhanced form control visuals */
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Styling for tab content */
.tab-content > .tab-pane {
  padding: 20px;
  border: 1px solid #dee2e6;
  border-top: none;
  background-color: #ffffff;
  color: #212529;
}

/* Form section and button styling */
.form-section {
  background: #f8f9fa;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  border-left: 5px solid #0056b3;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #004085;
}

/* Additional styling to enhance dropdowns and labels */
.dropdown-container {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  z-index: 1000;
  display: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  max-height: 200px;
  overflow-y: auto;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  clear: both;
  font-weight: 400;
  color: #333;
  text-align: left;
  white-space: nowrap;
  background: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8f9fa;
  text-decoration: none;
  color: #0056b3;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

button.btn {
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  border-radius: 0.3rem;
}

/* Enhancements for readability and accessibility */
textarea.form-control {
  min-height: 100px; /* Ensures enough space for text input */
}

.fas.fa-info-circle {
  cursor: pointer;
  color: #007bff; /* Bootstrap primary color */
  margin-left: 10px;
}

.fas.fa-info-circle:hover {
  color: #0056b3; /* Darker shade for hover effect */
}

.modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100% - 1rem);
}

@media (min-width: 576px) {
  .modal-dialog {
    min-height: calc(100% - 3.5rem);
  }
}

/* Custom Styles for FOC Section */
#focCheckbox + label {
  cursor: pointer;
  user-select: none; /* Prevent text selection */
}

#focNumber,
#focType {
  transition: all 0.3s ease; /* Smooth transition for showing and hiding */
}

.form-check-input:checked {
  background-color: #007bff; /* Bootstrap primary color for checked state */
  border-color: #007bff;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Additional styles to improve visual alignment and interaction */
.form-check {
  margin-top: 0.3rem;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 0.5rem; /* Reduced margin for a tighter layout */
}
