/* apps/ratewise/public/loading.css */
/* [Linus-fix:2025-10-26] 恢復外部 CSS 以符合 CSP 最佳實踐 */
/* [context7:/owasp/cheatsheetseries:2025-10-26] */
/* [fix:2025-10-27] 確保 body 基礎樣式立即生效,不依賴 Tailwind */

/* Body baseline styles - 確保頁面有背景色和最小高度 */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #f8fafc; /* slate-50 等價色 */
  font-family:
    'Noto Sans TC',
    system-ui,
    -apple-system,
    sans-serif;
}

/* Styles for noscript content */
.noscript-container {
  max-width: 40rem;
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  font-family: 'Noto Sans TC', system-ui, sans-serif;
}

.noscript-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.noscript-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 1rem;
}

.noscript-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: #334155;
}

.noscript-list {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #475569;
  padding-left: 1.5rem;
}

.noscript-footer {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.noscript-link {
  color: #2563eb;
  text-decoration: underline;
}

/* Styles for static loading indicator */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f8fafc;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: #8b5cf6; /* Purple color */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

.loading-text {
  color: #5a2d9e; /* Darker purple for better contrast (WCAG AA compliant) */
  font-size: 16px;
  font-weight: 700; /* Bolder font weight for better readability */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
