:root {
  --aurora-ink: #1b2420;
  --aurora-charcoal: #2f3a35;
  --aurora-charcoal-light: #44544c;
  --aurora-gold: #cda646;
  --aurora-gold-light: #e6cd8e;
  --aurora-cream: #f6f1e4;
  --aurora-red: #a3271f;
}

html,
body {
  margin: 0;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  background: radial-gradient(
    circle at top,
    #3a463f 0%,
    var(--aurora-ink) 65%,
    #11160f 100%
  );
  min-height: 100vh;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 40vh;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.sticky-header-half {
  flex: 1 1 50%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.sticky-header-half + .sticky-header-half {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 767.98px) {
  .sticky-header {
    position: static;
    height: auto;
  }

  .sticky-header-half {
    height: auto;
  }

  .active-banner {
    flex-direction: column;
  }

  /* Hero panel mobile */
  .hero-panel {
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 0.75rem !important;
  }

  .hero-panel img {
    width: 100px !important;
  }

  .hero-title {
    font-size: 1.3rem !important;
  }

  .hero-subtitle {
    font-size: 0.75rem !important;
  }

  /* Carousel chip mobile */
  .chip-avatar-wrap {
    width: 100px;
    height: 100px;
  }

  .chip {
    gap: 12px;
  }

  .chip-poli {
    font-size: 0.9rem;
  }

  .chip-doctor {
    font-size: 1.2rem;
  }

  .chip-number {
    font-size: 2rem;
  }

  .active-banner-fixed-label {
    font-size: 0.85rem;
  }
}

.active-banner {
  background: linear-gradient(
    135deg,
    var(--aurora-gold-light) 0%,
    var(--aurora-gold) 55%,
    #a9802f 100%
  );
}

.active-banner-fixed-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  color: rgba(27, 36, 32, 0.65);
  text-transform: uppercase;
  flex-shrink: 0;
}

#activeBannerCarousel {
  width: 100%;
  min-width: 0;
}

#activeBannerCarousel,
#activeBannerCarousel .owl-stage-outer,
#activeBannerCarousel .owl-stage,
#activeBannerCarousel .owl-item {
  height: 100%;
}

.chip-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.chip {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
}

.chip-avatar-wrap {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(27, 36, 32, 0.45);
  background: rgba(255, 255, 255, 0.35);
}

.chip-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.chip-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(27, 36, 32, 0.55);
}

.chip-photo-placeholder svg {
  width: 32px;
  height: 32px;
}

.chip-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chip-poli {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(27, 36, 32, 0.65);
  line-height: 1.2;
}

.chip-doctor {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--aurora-ink);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--aurora-ink);
  line-height: 1.1;
  margin-top: 4px;
}

.chip-idle {
  color: var(--aurora-cream);
  font-size: 0.95rem;
  white-space: nowrap;
}

.text-purple {
  color: var(--aurora-gold);
}

.hero-panel {
  background: linear-gradient(
    135deg,
    #8a6a23 0%,
    var(--aurora-gold) 50%,
    var(--aurora-gold-light) 100%
  );
  border: 1px solid rgba(205, 166, 70, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero-title {
  font-family: "Playfair Display", "Inter", serif;
  font-size: 2rem !important;
}

.hero-subtitle {
  color: var(--aurora-cream);
  opacity: 0.85;
  font-size: 1rem !important;
  letter-spacing: 0.18em;
}

.hero-divider {
  width: 64px;
  height: 2px;
  margin: 0.65rem auto 1rem;
  background: linear-gradient(
    90deg,
    transparent,
    var(--aurora-gold),
    transparent
  );
}

#datetimeBox {
  background: white;
  border: 1px solid rgba(205, 166, 70, 0.45) !important;
}

#datetime {
  font-family: "Inter", sans-serif;
  letter-spacing: 0.03em;
  color: rgba(27, 36, 32);
  font-size: 0.8rem;
}

.hero-info {
  color: rgba(246, 241, 228, 0.65);
}

#db_status {
  color: rgba(246, 241, 228, 0.55) !important;
}

#filterInput {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(205, 166, 70, 0.35);
  color: var(--aurora-cream);
}

#filterInput::placeholder {
  color: rgba(246, 241, 228, 0.45);
}

#filterInput:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--aurora-gold);
  box-shadow: 0 0 0 0.2rem rgba(205, 166, 70, 0.2);
  color: var(--aurora-cream);
}

#clearFilter {
  background: var(--aurora-charcoal);
  border: 1px solid rgba(205, 166, 70, 0.45);
  color: var(--aurora-gold-light);
}

#clearFilter:hover {
  background: var(--aurora-red);
  border-color: var(--aurora-red);
  color: #fff;
}

.queue-card {
  border-radius: 1rem;
  background: linear-gradient(
    165deg,
    var(--aurora-charcoal-light) 0%,
    var(--aurora-charcoal) 55%,
    var(--aurora-ink) 100%
  );
  border: 1px solid rgba(205, 166, 70, 0.3);
  color: var(--aurora-cream);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.queue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(205, 166, 70, 0.7);
}

.queue-photo,
.queue-photo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--aurora-gold);
  margin-bottom: 0.4rem;
  background: var(--aurora-charcoal);
}

.queue-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aurora-gold-light);
}

.queue-photo-placeholder svg {
  width: 32px;
  height: 32px;
}

.queue-poli {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aurora-gold-light);
}

.queue-doctor {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--aurora-cream);
  min-height: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-family: "Inter", sans-serif;
}

.queue-status {
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.2;
  width: 100%;
  border-radius: 0.75rem;
  padding: 0.4rem 0.5rem;
  background: linear-gradient(
    135deg,
    #8a6a23 0%,
    var(--aurora-gold) 50%,
    var(--aurora-gold-light) 100%
  );
  color: var(--aurora-ink);
  font-family: "Inter", sans-serif;
}

.hero-logo {
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.hidden-by-filter {
  display: none !important;
}
