/* School Access Status Modal — maintenance / disabled / unavailable */

#schoolAccessModal .modal-dialog {
  max-width: 520px;
}

#schoolAccessModal .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  background: transparent;
}

.sam-modal {
  position: relative;
  padding: 0;
  color: #1f2937;
  background: #fff;
}

.sam-modal__hero {
  position: relative;
  padding: 36px 28px 48px;
  text-align: center;
  overflow: hidden;
}

.sam-modal__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.95;
}

.sam-modal__hero::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: -80px;
  inset-inline-end: -60px;
}

.sam-modal--maintenance .sam-modal__hero::before {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 45%, #2563eb 100%);
}

.sam-modal--disabled .sam-modal__hero::before {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #475569 100%);
}

.sam-modal--hidden .sam-modal__hero::before,
.sam-modal--unavailable .sam-modal__hero::before {
  background: linear-gradient(135deg, #374151 0%, #64748b 55%, #94a3b8 100%);
}

.sam-modal__icon-wrap {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.sam-modal__icon-wrap i {
  font-size: 2.6rem;
  color: #fff;
}

.sam-modal--maintenance .sam-modal__icon-wrap i {
  animation: samGearPulse 2.4s ease-in-out infinite;
}

.sam-modal__badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.sam-modal__body {
  padding: 28px 32px 8px;
  text-align: center;
}

.sam-modal__title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.35;
}

.sam-modal__school {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #085b82;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.sam-modal__school i {
  color: #3f751c;
}

.sam-modal__message {
  font-size: 1rem;
  color: #475569;
  line-height: 1.75;
  margin: 0 0 20px;
}

.sam-modal__tips {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  text-align: start;
}

.sam-modal__tips li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
}

.sam-modal__tips li i {
  color: #3f751c;
  margin-top: 2px;
  flex-shrink: 0;
}

.sam-modal--maintenance .sam-modal__tips li i { color: #d97706; }
.sam-modal--disabled .sam-modal__tips li i { color: #dc2626; }

.sam-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 32px 28px;
  justify-content: center;
}

.sam-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.sam-btn:hover {
  transform: translateY(-1px);
}

.sam-btn--primary {
  background: linear-gradient(135deg, #3f751c, #2575fc);
  color: #fff;
  box-shadow: 0 6px 20px rgba(63, 117, 28, 0.28);
}

.sam-btn--secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.sam-modal__close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.sam-modal__close:hover {
  background: rgba(255, 255, 255, 0.4);
}

@keyframes samGearPulse {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.05); }
  75% { transform: rotate(8deg) scale(1.05); }
}

@media (max-width: 480px) {
  .sam-modal__body { padding: 24px 20px 8px; }
  .sam-modal__actions { padding: 16px 20px 24px; flex-direction: column; }
  .sam-btn { width: 100%; }
}
