/*
 * 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.
 */

/* intl-tel-input */
@import url("/assets/intlTelInput-454c2a41.css");

.iti {
  --iti-path-flags-1x: url("/img/flags.webp");
  --iti-path-flags-2x: url("/img/flags@2x.webp");
  width: 100%;
}

/* Tom Select Styles */
@import url("/assets/tom-select-ee45231c.css");

/* Custom Tom Select Styles for Biomarkers */
.ts-wrapper .optgroup-header {
  font-weight: 600;
  color: #374151;
  background-color: #f9fafb;
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
}

.ts-wrapper .option {
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
}

.ts-wrapper .option:hover {
  background-color: #f3f4f6;
}

.ts-wrapper .unit {
  font-weight: normal;
  opacity: 0.6;
  margin-left: 4px;
}

.ts-wrapper .ts-dropdown .optgroup {
  border-bottom: 1px solid #e5e7eb;
}

.ts-wrapper .ts-dropdown .optgroup:last-child {
  border-bottom: none;
}

.ts-wrapper .item {
  display: flex;
  align-items: center;
}

.ts-wrapper .item .unit {
  font-weight: normal;
  opacity: 0.6;
  margin-left: 4px;
}

/* TomSelect Multiple Selection Styles */
.ts-wrapper.multi .ts-control {
  padding: 4px 8px;
  min-height: 38px;
}

.ts-wrapper.multi .item {
  background-color: #e5e7eb;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 2px 6px;
  margin: 2px;
  font-size: 0.875rem;
}

.ts-wrapper.multi .item .remove {
  color: #6b7280;
  margin-left: 4px;
  cursor: pointer;
}

.ts-wrapper.multi .item .remove:hover {
  color: #ef4444;
}

.ts-wrapper.multi .ts-control .item:last-child {
  margin-right: 0;
}

/* Custom breakpoint for waiting list layout */
@media (max-width: 884px) {
  .waiting-list-responsive {
    display: flex !important;
    flex-direction: column-reverse !important;
  }
}

@media (min-width: 885px) {
  .waiting-list-responsive {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (min-width: 1280px) {
  .waiting-list-responsive {
    display: flex !important;
    flex-direction: row !important;
  }
}

/* Loading Animation - 3 pontos flutuantes */
@keyframes loading-bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  40% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

.loading-dot {
  animation: loading-bounce 1.4s infinite ease-in-out;
}

.loading-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0s;
}

/* Gradient Circles for Patient Layout */
.gradient-bg-circle {
  width: 306.154px;
  height: 306.154px;
  transform: rotate(45.954deg);
  border-radius: 306.154px;
  opacity: 0.6;
  background: var(--gradient-light-green, linear-gradient(313deg, #FEF9D1 1.69%, #8DEB92 100%));
  filter: blur(75px);
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

/* Utility to hide scrollbar but allow scrolling */
.scrollbar-hide {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

/* Scroll Indicator Arrow Animation */
@keyframes indicator-bounce {

  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-indicator-bounce {
  animation: indicator-bounce 1s infinite;
}

/* TomSelect "naked" variant — used inside containers that already carry their own
   bg/border (e.g. the exam edit modal cards) so the control blends in like a
   plain input. Opt in by adding the class `tom-naked` to the wrapper element. */
.tom-naked .ts-wrapper .ts-control,
.tom-naked .ts-wrapper.full .ts-control {
  background: transparent !important;
  background-color: transparent !important;
  border: 0;
  padding: 0;
  box-shadow: none;
  min-height: 0;
  font-weight: 500;
  color: #111827;
}

.tom-naked .ts-wrapper.focus .ts-control,
.tom-naked .ts-wrapper .ts-control.focus {
  box-shadow: none;
  border: 0;
}

.tom-naked .ts-wrapper .ts-control > input {
  padding: 0;
  margin: 0;
  font-weight: 500;
}

.tom-naked .ts-wrapper .ts-control .item {
  padding: 0;
  margin: 0;
}

/* Dropdown — applies to any `.tom-naked` TomSelect. Card-like look with shadow
   nivel 2, rounded-xl corners, hover/active highlight, and a distinct treatment
   for the "create" option. */
.tom-naked .ts-dropdown {
  margin-top: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  padding: 4px;
  background: #ffffff;
}

.tom-naked .ts-dropdown .ts-dropdown-content {
  padding: 0;
}

.tom-naked .ts-dropdown .option {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
}

.tom-naked .ts-dropdown .option.active,
.tom-naked .ts-dropdown .option:hover {
  background-color: #f3f4f6;
}

.tom-naked .ts-dropdown .option.selected {
  background-color: #edfaf0;
  color: #103e43;
  font-weight: 600;
}

.tom-naked .ts-dropdown .create {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #103e43;
  background-color: #f2fff5;
  cursor: pointer;
}

.tom-naked .ts-dropdown .create.active,
.tom-naked .ts-dropdown .create:hover {
  background-color: #dcf5e4;
}

.tom-naked .ts-dropdown .create strong {
  color: #103e43;
}

.tom-naked .ts-dropdown .no-results {
  padding: 10px 12px;
  font-size: 13px;
  color: #6b7280;
  font-style: normal;
}