/* Core styles for index.html inline styles */

/* NoScript fallback styles */
.noscript-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: #f5f5f5;
  color: #333;
  text-align: center;
  padding: 20px;
}

.noscript-title {
  color: #1976d2;
  margin-bottom: 16px;
}

.noscript-message {
  margin-bottom: 16px;
}

/* Loading screen styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

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

.loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-title {
  margin: 0;
  font-weight: 300;
  font-size: 24px;
}

.loading-subtitle {
  margin: 8px 0 0;
  opacity: 0.8;
  font-size: 14px;
}

/* Loading animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #1976d2;
  color: white;
  padding: 8px;
  z-index: 10000;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast improvements for accessibility */
.high-contrast-text {
  color: #1a1a1a !important;
  text-shadow: none !important;
}

.high-contrast-button {
  background-color: #0066cc !important;
  color: #ffffff !important;
  border: 2px solid #004499 !important;
}

.high-contrast-button:hover {
  background-color: #004499 !important;
  border-color: #003366 !important;
}

.high-contrast-link {
  color: #0066cc !important;
  text-decoration: underline !important;
}

.high-contrast-link:hover,
.high-contrast-link:focus {
  color: #004499 !important;
  background-color: #f0f8ff !important;
}

/* Improved focus indicators */
*:focus {
  outline: 3px solid #0066cc !important;
  outline-offset: 2px !important;
}

/* Better contrast for disabled elements */
.disabled-element {
  opacity: 0.6 !important;
  color: #666666 !important;
}

/* Error state improvements */
.error-text {
  color: #cc0000 !important;
  font-weight: 600 !important;
}

.error-border {
  border: 2px solid #cc0000 !important;
}

/* Success state improvements */
.success-text {
  color: #006600 !important;
  font-weight: 600 !important;
}

/* Loading states with better contrast */
.loading-state {
  color: #333333 !important;
  background-color: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
}