* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#background-pic {
  top: 0;
  left: 0;
  position: fixed;
  object-fit: cover;
  object-position: center 20%; /* CONTROLS x y display  */
  z-index: -1;
  height: 100%;
  width: 100%;
  opacity: 0.8;
}

h1,
h2,
p {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: black;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* for error pages */
h4 {
  margin-top: 3rem;
  padding: 0;
  text-align: center;
  font-size: 3rem;
}

.hidden {
  display: none !important;
}

/* ++++++++++++++++++++++++++++++++++ */

#auth-form-wrapper {
  font-family: "Roboto Condensed", sans-serif;
  margin: 1.5rem auto;
  max-width: 500px;
  padding: 1.5rem 2rem;
  background: #fafbfc;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#auth-form-wrapper li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#auth-pw-list-item {
  margin-bottom: 1.5rem;
}

#auth-label {
  margin-left: 0.2rem;
  margin-bottom: 0.2rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: left;
  color: #2d3748;
}

.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input {
  width: 100%;
  padding: 14px 48px 14px 16px;
  font-size: 1.1rem;
  font-weight: 400;
  color: #2d3748;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.password-input:hover {
  border-color: #164388;
}

.password-input:focus {
  border-color: #164388;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.password-input::placeholder {
  color: #a0aec0;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: #374151;
}

.password-toggle-btn:focus {
  outline: 2px solid #164388;
  outline-offset: 2px;
}

.password-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.btn-submit {
  width: 100%;
  padding: 16px 24px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background: #2563a8;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #3573b8 0%, #2563a8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.35);
}

.btn-submit:active {
  transform: translateY(0);
  background: linear-gradient(135deg, #1d5398 0%, #164388 100%);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.25);
}

/* +++++++++++++++++++++++++ */

#input-form-wrapper {
  font-family: "Roboto Condensed", sans-serif;
  /* margin: 3rem auto; */
  margin: 1.5rem auto;
  max-width: 720px;
  display: flex;
  background: #ffffff;
  flex-direction: column;
  /* gap: 1.5rem; */
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

#input-form-element {
  width: 100%;
  margin: 0 auto;
}

.form-title {
  width: 100%;
  text-align: left;
  margin: 0 auto;
  padding: 1rem 2rem;
}

/* SETS HEIGHT FOR LIST ITEMS */
.form-list-item {
  padding: 1rem 2rem;
}

.form-list-item:first-child {
  padding-top: 1.25rem;
}

.form-list-item:last-child {
  padding-top: 0.5rem;
  padding-bottom: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
}

.form-select-half {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#select-ai-div,
#select-model-div {
  flex: 0 0 40%;
}

#model-options-toggle {
  flex: 0 0 20%;
}

#model-options-toggle .toggle-wrapper {
  width: fit-content;
  min-width: fit-content;
}

#extra-filters-toggle {
  flex: 0 0 20%;
}

#extra-filters-toggle .toggle-wrapper {
  width: fit-content;
  min-width: fit-content;
}

#select-row-container {
  padding-top: 0.5rem;
}

#model-options-list-item {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  gap: 1.5rem;
}

#priority-div {
  flex: 0 0 40%;
}

#max-tokens-div {
  flex: 0 0 20%;
}

#temperature-div {
  flex: 0 0 10%;
}

#extended-thinking-div {
  flex: 0 0 20%;
  align-items: center;
}

#prebuilt-checkbox-div {
  margin-left: -0.5rem;
  flex: 0 0 12%;
  text-align: center;
}

.checkbox-wrapper {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.checkbox-container {
  border-radius: 8px;
  padding: 0.25rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 42px;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #2563a8;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.1rem;
  margin-left: 0.25rem;
}

#extra-filters-list-item .form-label {
  text-align: center;
  margin-left: 0;
}

.form-select,
.form-input,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 1rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #111827;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(209, 213, 219, 0.6);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.form-textarea {
  overflow-y: auto; /* <-- Add this */
  resize: vertical; /* Optional: allows user to resize vertically */
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-input:hover,
.form-textarea:hover {
  border-color: #9ca3af;
  background: rgba(255, 255, 255, 0.85);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-textarea::placeholder {
  color: #555555;
  font-size: 1.1rem;
  padding: 0;
}

#temperature-input,
#max-tokens-input {
  text-align: left;
  /* width: auto; */
}

.toggle-wrapper {
  background: rgba(234, 235, 236, 0.9);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.model-options-toggle-btn {
  width: 32px;
  height: 24px;
  display:   flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.model-options-toggle-btn.expanded {
  transform: rotate(45deg);
}

/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */

.btn-cancel {
  background: #6b7280;
}

.btn-cancel:hover {
  background: #4b5563;
}

/* ========== Price Range Slider ========== */

#price-slider-wrapper {
  position: relative;
  height: 36px;
  margin-top: 0.5rem;
}

#price-slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 2px;
  pointer-events: none;
}

#price-range-list-item input[type="range"] {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  transform: translateY(-50%);
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
  padding: 0;
}

#price-range-list-item input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563a8;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(37, 99, 168, 0.4);
  cursor: pointer;
  pointer-events: all;
}

#price-range-list-item input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563a8;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(37, 99, 168, 0.4);
  cursor: pointer;
  pointer-events: all;
}

#price-range-list-item input[type="range"]:focus {
  outline: none;
}

#price-range-list-item input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.2), 0 1px 4px rgba(37, 99, 168, 0.4);
}

#price-range-display {
  font-size: 0.9rem;
  color: #374151;
  margin-top: 0.5rem;
  margin-left: 0.25rem;
}
