/* Global App Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(
    --font-family-sans,
    'Segoe UI',
    Tahoma,
    Geneva,
    Verdana,
    sans-serif
  );
  background-color: var(--color-bg-secondary, #f8f9fa);
}

.App {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Global button styles */
button {
  font-family: inherit;
}

/* Global link styles */
a {
  text-decoration: none;
  color: inherit;
}

/* Loading spinner */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner {
  border: 4px solid var(--color-gray-200, #f3f3f3);
  border-top: 4px solid var(--color-primary, #667eea);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

/* Error Boundary Styles */
.error-boundary {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.error-content {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 600px;
  width: 90%;
}

.error-content h1 {
  color: #e55353;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.error-content p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.error-content details {
  text-align: left;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.error-content summary {
  cursor: pointer;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.error-content pre {
  white-space: pre-wrap;
  font-size: 0.9rem;
  color: #e55353;
}

.reload-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reload-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
