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

/* ── Pagy pagination ── */
nav.pagy.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

nav.pagy.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
  user-select: none;
}

nav.pagy.nav a:hover:not([aria-disabled="true"]) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

nav.pagy.nav a.current {
  background: #1e40af;
  border-color: #1e40af;
  color: #fff;
  cursor: default;
}

nav.pagy.nav a[aria-disabled="true"]:not(.current):not(.gap) {
  color: #cbd5e1;
  cursor: default;
  border-color: #f1f5f9;
  background: #f8fafc;
}

nav.pagy.nav a.gap {
  border: none;
  background: none;
  cursor: default;
  min-width: 1.5rem;
  padding: 0;
  color: #94a3b8;
}

/* ── Guide demo: pulse animations ── */
@keyframes guidePulse {
  0%, 100% {
    box-shadow: 0 0 4px 2px rgba(59, 130, 246, 0.4);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 24px 12px rgba(59, 130, 246, 0.7), 0 0 48px 24px rgba(59, 130, 246, 0.3);
    filter: brightness(1.4);
  }
}
.animate-guide-pulse {
  animation: guidePulse 1s ease-in-out infinite;
  opacity: 1 !important;
}

@keyframes guidePulseHeader {
  0%, 100% {
    box-shadow: 0 0 4px 2px rgba(56, 189, 248, 0.3);
    filter: brightness(1);
    background-color: #1E3A3A;
  }
  50% {
    box-shadow: 0 0 30px 16px rgba(56, 189, 248, 0.7), 0 0 60px 30px rgba(56, 189, 248, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.2);
    filter: brightness(1.8);
    background-color: #2a5858;
  }
}
.animate-guide-pulse-header {
  animation: guidePulseHeader 1s ease-in-out infinite;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ── AED Survey: custom radio & checkbox ── */
.survey-option input[type="radio"],
.survey-option input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #cbd5e1;
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  margin-top: 1px;
}

.survey-option input[type="radio"] {
  border-radius: 50%;
}

.survey-option input[type="checkbox"] {
  border-radius: 0.3rem;
}

.survey-option input[type="radio"]:checked {
  border-color: #2563eb;
  background: #fff;
}

.survey-option input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #2563eb;
}

.survey-option input[type="checkbox"]:checked {
  border-color: #2563eb;
  background: #2563eb;
}

.survey-option input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -55%) rotate(45deg);
  width: 0.3rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
}

.survey-option input:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.survey-option label {
  line-height: 1.6;
}

/* Likert scale items */
.survey-likert label {
  line-height: 1.5;
}
