/* BetReplicator Component Styles */
/* Additional CSS for specific components and states */

/* Form error states */
.form-error {
  color: var(--danger-color);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
  display: block;
}

.form-group input.error {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Loading animations */
@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Error message styles */
.error-message {
  padding: var(--spacing-md);
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: var(--border-radius-sm);
  margin: var(--spacing-md);
  text-align: center;
}

/* Success message styles */
.success-message {
  padding: var(--spacing-md);
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: var(--border-radius-sm);
  margin: var(--spacing-md);
  text-align: center;
}

/* Status icons */
.status-icon,
.connection-icon {
  font-size: 1.2em;
  margin-right: var(--spacing-sm);
}

/* Activity states */
.activity-empty,
.activity-error {
  padding: var(--spacing-md);
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

.activity-error {
  color: var(--danger-color);
}

/* Button states */
.btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Card hover effects */
.card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--box-shadow-lg);
  transform: translateY(-2px);
}

/* Responsive grid improvements */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .auth-options {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .card {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
  }
  
  .btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
  }
  
  .auth-card {
    padding: var(--spacing-md);
  }
  
  .notification {
    margin-bottom: var(--spacing-xs);
  }
}

/* Print styles */
@media print {
  .header,
  .notifications,
  .loading-overlay {
    display: none !important;
  }
  
  .main {
    padding: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000;
    --text-color: #000;
    --background-color: #fff;
  }
  
  .card {
    border: 2px solid var(--border-color);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .loading-spinner {
    animation: none;
  }
}

/* Focus management */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

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

/* Accessibility improvements */
.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;
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #e1e5e9;
    --text-muted: #adb5bd;
    --background-color: #212529;
    --background-light: #343a40;
    --border-color: #495057;
  }
}
