/* Application styles */

body {
  font-family: 'Inter', sans-serif;
}

.appearance-textfield {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

input.appearance-textfield::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

details summary::-webkit-details-marker {
  display:none;
}

details:not([open]) .menu-closed-icon {
  display: block;
}

details[open] .menu-closed-icon {
  display: none;
}

details:not([open]) .menu-open-icon {
  display: none;
}

details[open] .menu-open-icon {
  display: block;
}

.button_to {
  display: contents;
}

.autocomplete-option:not(.active):hover {
  background-color: #e5e7eb;
}

.autocomplete-option.active {
  color: #fff;
  font-weight: 600;
  background-color: #4f46e5;
}

.autocomplete-option.active .details {
  color: #f3f4f6 !important;
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

/* Modal backdrop styling */
dialog::backdrop {
  background-color: rgba(107, 114, 128, 0.5);
  transition: opacity 0.3s ease;
}

/* Modal dialog positioning */
dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
}
