body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  /* background-image: url("../images/form_background.jpg"); */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

header,
footer {
  flex-shrink: 0;
}

main {
  flex-grow: 1;
  overflow-y: auto;
}

.hidden {
  display: none;
}

/* Header */
.logo-container {
  text-align: center;
  padding: 15px 0;
  background-image: linear-gradient(to bottom right, #9F070A, #BF090C);
}

.logo-container img {
  height: 56px;
}

/* Hide the stepper arrows for input type number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* For Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* Navigation Tabs */
nav .nav-tabs {
  display: flex;
}

nav .nav-tabs .nav-link.active {
  background-color: #4CAF50;
  color: #fff;
  border-color: #4CAF50;
}

/* Form Styles */
.studDetail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.group-header {
  text-align: center;
  margin-bottom: 1rem;
}

.group-header h6 {
  font-weight: bold;
}

.studDetail-container label {
  flex: 0 0 50%;
  font-weight: bold;
  color: #333;
}

input[type="text"],
input[type="date"],
input[type="number"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-sizing: border-box;
}

input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: #007bff;
  cursor: pointer;
}

input[type="checkbox"]:focus {
  outline: 2px solid #9F070A;
}

/* Focus Effects */
.studDetail:focus-within {
  border-color: #9F070A;
  box-shadow: 0 0 5px rgba(159, 7, 10, 0.5);
}

input:required:invalid,
select:required:invalid {
  box-shadow: 0 0 8px rgba(200, 0, 0, 0.85);
}

/* Grid Layout for Checkboxes */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  color: #333;
}

.btn-custom {
  background-color: #bf090c;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 0.375rem;
  /* Optional: Rounded corners */
  transition: background-color 0.3s ease;
}

.btn-custom:hover {
  background-color: #a4080b;
  /* Slightly darker shade for hover */
  color: #fff;
}


/* Footer */
footer {
  background-color: #212529;
  color: #ffffff;
  text-align: center;
  padding: 1rem 0;
}

/*======= Added by KD ===================*/
.studTypeAll-container label {
  flex: 0 0 50%;
  font-weight: bold;
  color: #333;
}

.studTypeAll-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uploadBtn {
  width: fit-content;
  padding: 8px 12px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}

.uploadBtn:hover {
  background-color: #0056b3;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fileName {
  font-size: 14px;
  color: #555;
}

.imagePreview {
  /* Image thumbnail size */
  width: 150px;
  height: 150px;
  border: 1px solid #ccc;
  border-radius: 5px;
  display: none;
}

.international-Container label {
  flex: 0 0 50%;
  font-weight: bold;
  color: #333;
}

/* ===================================== */

/* Responsive Design */
@media (max-width: 768px) {
  body {
    background-position-y: top;
    background-position-x: center;
  }

  .studDetail-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-nav .nav-item .nav-link {
    font-size: 0.9rem;
    /* Smaller font for mobile */
    padding: 0.5rem;
    /* Reduce padding for compact design */
  }

  .nav-tabs {
    flex-wrap: wrap;
    /* Allow tabs to wrap if they overflow */
  }

  .nav-tabs .nav-item {
    flex: 1 1 auto;
    /* Make tabs evenly spaced */
  }

  #selectedTabTitle {
    margin-bottom: 1rem;
    /* Add spacing below the title */
  }
}