/* =========================================================
   css/components.css - Modals, Toasts, Skeletons & Spinners
   ========================================================= */

/* Dedicated Standalone CSS for Instant Splash Screen */
.splash-container {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background-color: var(--surface-bg, #fafafc);
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

.splash-icon-box {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0077ff 0%, #0055cc 100%);
  color: #ffffff;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 12px 28px -6px rgba(0, 119, 255, 0.35);
}

.splash-icon-box svg {
  width: 40px;
  height: 40px;
  stroke: #ffffff;
}

.splash-title {
  font-size: 26px;
  font-weight: 300;
  color: #111827;
  letter-spacing: -0.025em;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.splash-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 119, 255, 0.18);
  border-top-color: #0077ff;
  border-radius: 50%;
  animation: splash-spin 0.75s linear infinite;
  margin-bottom: 16px;
}

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

.animate-spin {
  animation: splash-spin 0.75s linear infinite;
}

.splash-message {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.splash-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #1d4ed8;
  margin: 0;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 119, 255, 0.05);
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(90deg, #f0f2f5 25%, #e6e8ec 50%, #f0f2f5 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
