/* Critical CSS for the initial loading screen */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.loading {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  body.loading {
    background: #0f172a;
  }
}

.loading-screen {
  display: none;
  flex-direction: column;
  align-items: center;
}

body.loading .loading-screen {
  display: flex;
}

.logo {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 24px;
  filter: grayscale(100%);
  opacity: 0.8;
}

.spinner {
  margin-bottom: 20px;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(37, 99, 235, 0.1);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@media (prefers-color-scheme: dark) {
  .spinner {
    border-color: rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
  }
}

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

.title {
  font-size: 18px;
  font-weight: 500;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  .title { color: #f1f5f9; }
  .subtitle { color: #94a3b8; }
}
