
/* Base styles */
body { 
  margin: 0; 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
  -webkit-font-smoothing: antialiased; 
  background-color: #f8f9fa;
  padding: 0;
}

/* Critical layout containers */
#root { 
  min-height: 100vh; 
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Loading indicator */
.initial-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background-color: #f8f9fa;
}

.initial-loader__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(100, 100, 100, 0.2);
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 16px;
}

.initial-loader__text {
  margin-top: 16px;
  font-size: 14px;
  color: #6b7280;
}

/* Error container */
.error-container {
  padding: 20px; 
  text-align: center; 
  font-family: system-ui, sans-serif; 
  max-width: 500px; 
  margin: 40px auto; 
  border-radius: 8px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
  background: white;
}

.error-button {
  padding: 8px 16px; 
  background: #3b82f6; 
  color: white; 
  border: none; 
  border-radius: 4px; 
  cursor: pointer; 
  margin-top: 16px;
}

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

/* Basic skeleton styles to prevent layout shift */
.skeleton-header {
  height: 64px;
  width: 100%;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}

.skeleton-content {
  margin-top: 64px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skeleton-rect {
  height: 20px;
  background-color: rgba(0,0,0,0.08);
  margin-bottom: 8px;
  border-radius: 4px;
}
