/* form css */

/* Make the form container scrollable if content is too large */
.form-container {
  overflow-y: auto;
  max-height: 70vh; /* Adjust as needed */
}


.container {
  padding: 30px;
}

.buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: center;
}

.btn {
  background-color: #165a23;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.btn.active {
  position: relative;
}

.btn.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background-color: #165a23;
  border-radius: 50%;
}

.table-container {
  /* background-color: #15566e; */
  background-color: #774d77;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
}

table {
  /* width: 100%;
  border-collapse: collapse;
  color: white; */

  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  color: hsl(180, 79%, 73%);
  font-size: 15px;
}

th, td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #297e9a;
  
}
th {
  /* background-color: #297e9a; */
  /* color: white; */
  font-size: 1.2em;
  font-weight: bold;
}

input[type="text"], select {
  padding: 5px;
  border-radius: 5px;
  border: none;
  width: 90%;
}

input[type="radio"] {
  margin-right: 5px;
}

.review-btn {
  margin-top: 20px;

  text-align: center;
}

.review-btn button {
  background-color: #2e7fa3;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
}

#json-modal , #op-json-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensure modal is on top */
}

#json-modal-content , #op-json-modal-content {
  background: white;
  padding: 10px;
  border-radius: 5px;
  width: 100%;
  max-width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

#json-modal[style*="display: flex"] {
  display: flex !important; /* Override any conflicting styles */
}

#loader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full viewport height */
  text-align: center;
}

.loader {
  border: 8px solid #f3f3f3; /* Light gray */
  border-top: 8px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  margin-bottom: 10px; /* Space between spinner and text */
}

.loading-text {
  font-size: 16px;
  color: #1a58df;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}




/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}