/* UCA SRMS — PWA offline banner & mobile app prompt */

.srms-offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.srms-offline-banner.is-visible {
  transform: translateY(0);
}

.srms-offline-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d97706;
  flex-shrink: 0;
}

.srms-mobile-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.srms-mobile-prompt-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.srms-mobile-prompt {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  animation: srmsPromptIn 0.35s ease;
}

@keyframes srmsPromptIn {
  from {
    transform: translateY(16px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.srms-mobile-prompt__hero {
  background: linear-gradient(135deg, #192F59 0%, #148EB7 100%);
  color: #fff;
  padding: 24px 22px 20px;
  text-align: center;
}

.srms-mobile-prompt__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.srms-mobile-prompt__hero h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
}

.srms-mobile-prompt__hero p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.92;
  line-height: 1.45;
}

.srms-mobile-prompt__body {
  padding: 18px 22px 22px;
}

.srms-mobile-prompt__features {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.srms-mobile-prompt__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.4;
}

.srms-mobile-prompt__features li::before {
  content: '✓';
  color: #148EB7;
  font-weight: 700;
  flex-shrink: 0;
}

.srms-mobile-prompt__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.srms-mobile-prompt__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.srms-mobile-prompt__btn--primary {
  background: #192F59;
  color: #fff;
}

.srms-mobile-prompt__btn--install {
  background: #148EB7;
  color: #fff;
}

.srms-mobile-prompt__btn--ghost {
  background: transparent;
  color: #64748b;
  font-weight: 600;
}

.srms-mobile-prompt__btn--link {
  background: #f1f5f9;
  color: #192F59;
}

body.srms-has-offline-banner {
  padding-top: 44px;
}

@media (max-width: 480px) {
  .srms-mobile-prompt__hero h2 {
    font-size: 1.1rem;
  }
}
