body {
  background-color: #f8f9fa;
  margin: 0;
  padding-top: 80px;
}

header .navbar {
  border-radius: 0 !important;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

}

.main-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.tab-content {
  margin-top: 20px;
}

.field-pill {
  display: inline-block;
  background-color: #007bff;
  color: white;
  border-radius: 30px;
  padding: 5px 15px;
  margin: 5px;
  font-size: 14px;
}

.field-pill button {
  background: none;
  border: none;
  color: white;
  margin-left: 8px;
  font-weight: bold;
}

.form-section {
  margin-bottom: 20px;
}

.tab-nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
}

/* Style for the loading spinner */
#loadingSpinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  z-index: 10;
}

/* Style for the table */
.response-table table {
  width: 100%;
  border-collapse: collapse;
}

.response-table th,
.response-table td {
  padding: 10px;
  text-align: left;
}

.response-table th {
  background-color: #f1f1f1;
  font-weight: bold;
}

.response-table td {
  background-color: #ffffff;
  border: 1px solid #ddd;
}

.response-table h6 {
  margin-bottom: 10px;
  font-size: 1.2em;
  font-weight: bold;
}

.response-table thead th:first-child,
tbody td:first-child {
  position: sticky;
  left: 0;
  background-color: white;
  /* Match your theme */
  z-index: 3;
  /* higher than other cells */
}

/* Optional: give the sticky column a border shadow */
.response-table tbody td:first-child {
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Make header also sticky */
.response-table thead th {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 2;
}

/* Error message styling */
.error-msg {
  color: red;
  font-weight: bold;
  padding: 10px;
  border: 1px solid red;
  background-color: #f9d6d5;
  border-radius: 5px;
}

/* Container for column checkboxes */
#columnSelection label {
  display: inline-flex;
  align-items: center;
  margin-right: 15px;
  font-size: 16px;
  cursor: pointer;
}

/* Custom checkbox base */
#columnSelection input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #007bff;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background-color: white;
  margin-right: 8px;
  display: inline-block;
}

/* Checked state */
#columnSelection input[type="checkbox"]:checked {
  background-color: #fff;
  border-color: #007bff;
}

/* Checkmark ✔ centered properly */
#columnSelection input[type="checkbox"]:checked::after {
  content: "✔";
  color: white;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  line-height: 1;
}

/* Add Fields input styling */
#fieldInput {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#fieldInput:focus {
  border-color: #0056b3;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  outline: none;
}

/* Pill styling for added fields */
.field-pill {
  display: inline-flex;
  align-items: center;
  background-color: #0d6efd;
  color: #fff;
  border-radius: 50px;
  padding: 6px 14px;
  margin: 4px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.field-pill button {
  background: none;
  border: none;
  color: white;
  margin-left: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.field-pill button:hover {
  color: #ffdddd;
}

#fieldsContainer {
  margin-top: 10px;
}

.overlaymenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  /* Light overlay for clarity */
  backdrop-filter: blur(1px);
  /* Mild blur for emphasis */
  -webkit-backdrop-filter: blur(2px);
  z-index: 1050;
  pointer-events: auto;
  display: none;
}

.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: white;
  padding: 20px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.overlay-content img {
  width: 60px;
}

.overlay-content .message {
  margin-top: 15px;
  font-size: 16px;
  color: #333;
  font-weight: bold;
}

/*YM CSS*/
.date-inputarea {
  border: 1px solid #ccc;
  border-radius: 5px;
  height: 45px;
  margin: 0.2%;
}

.textarea {
  border: 1px solid #ccc;
  border-radius: 5px;
  height: 45px;
  width: 90px;
}

#time-container {
  display: flex;
  justify-content: center;
  font-size: 50px;
  color: #666;
  background: transparent;
  border: none;
  font-weight: bold;
}

.time-input {
  font-size: 50px;
  border-width: 0px;
  background: transparent;
  text-align: center;
  width: 70px;
  padding: 0;
  margin: 0;
  color: inherit;
  font-weight: inherit;
}

.time-input1 {
  font-size: 50px;
  border-width: 0px;
  background: transparent;
  text-align: center;
  width: 90px;
  padding: 0;
  margin: 0;
  color: inherit;
  font-weight: inherit;

}

.separator {
  font-size: 50px;
  color: inherit;
  margin: 0 5px;
  font-weight: inherit;

}

input[type="range"] {
  -webkit-appearance: none;
  width: 85%;
  height: 8px;
  background: #bfc3c7;
  border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: #e74c3c;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  margin-top: 0px;

}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #e74c3c;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.entry-content select {
  border: 1px solid #ccc;
  border-radius: 5px;
  height: 45px;
}

.bg-info-subtle {
  background-color: #e9f1f3 !important;
}

.city-entry {
  margin-bottom: 15px;
}

.city-name,
.city-time {
  min-height: 40px;
}

.col-md-6 {
  flex: 0 0 auto;
  width: 43%;
}