/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

button,
input,
select,
textarea {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
}

.turbo-progress-bar {
  display: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 1000px rgb(23 23 23) inset, inset 0 1px 0 rgb(255 255 255 / 0.05);
  caret-color: #fff;
  transition: background-color 9999s ease-in-out 0s;
}

.auth-checkbox {
  display: grid;
  height: 1rem;
  width: 1rem;
  place-content: center;
  appearance: none;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 0.3rem;
  background: rgb(255 255 255 / 0.04);
}

.auth-checkbox:checked {
  border-color: rgb(34 211 238 / 0.7);
  background: rgb(34 211 238);
}

.auth-checkbox:checked::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  clip-path: polygon(14% 44%, 0 59%, 39% 100%, 100% 16%, 84% 0, 37% 66%);
  background: rgb(10 10 10);
}

.support-modal {
  position: fixed;
  inset: 0;
  width: min(92vw, 680px);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 0.75rem;
  background: rgb(10 10 10);
  color: #fff;
  overflow: auto;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

.support-modal::backdrop {
  background: rgb(0 0 0 / 0.72);
}

.support-modal__panel {
  padding: 1.25rem;
}

.support-priority {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .support-priority {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.support-priority__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.support-priority__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 0.5rem;
  color: rgb(212 212 212);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.support-priority__check {
  display: none;
}

.support-priority__option input:checked + span .support-priority__check {
  display: block;
}

.support-priority__option--low span {
  border-color: rgb(52 211 153 / 0.28);
  background: rgb(52 211 153 / 0.08);
  color: rgb(167 243 208);
}

.support-priority__option--low input:checked + span {
  border-color: rgb(52 211 153 / 0.45);
  background: rgb(52 211 153 / 0.16);
  color: rgb(167 243 208);
}

.support-priority__option--medium span {
  border-color: rgb(34 211 238 / 0.28);
  background: rgb(34 211 238 / 0.08);
  color: rgb(165 243 252);
}

.support-priority__option--medium input:checked + span {
  border-color: rgb(34 211 238 / 0.45);
  background: rgb(34 211 238 / 0.16);
  color: rgb(165 243 252);
}

.support-priority__option--high span {
  border-color: rgb(251 191 36 / 0.28);
  background: rgb(251 191 36 / 0.08);
  color: rgb(253 230 138);
}

.support-priority__option--high input:checked + span {
  border-color: rgb(251 191 36 / 0.45);
  background: rgb(251 191 36 / 0.16);
  color: rgb(253 230 138);
}

.support-priority__option--urgent span {
  border-color: rgb(244 63 94 / 0.28);
  background: rgb(244 63 94 / 0.08);
  color: rgb(254 205 211);
}

.support-priority__option--urgent input:checked + span {
  border-color: rgb(244 63 94 / 0.45);
  background: rgb(244 63 94 / 0.16);
  color: rgb(254 205 211);
}
