/* Custom styles for ContrastBuddy */

:root {
  /* ridon IT GmbH Corporate Colors - Professional Tech Color Palette */
  --primary-color: #2563eb;        /* Professional Blue - ridon main brand color */
  --primary-dark: #1e40af;         /* Darker blue for depth */
  --primary-light: #3b82f6;        /* Lighter blue for highlights */
  
  --secondary-color: #6366f1;      /* Modern Indigo accent */
  --secondary-dark: #4f46e5;       /* Darker indigo */
  
  --success-color: #059669;        /* Professional Green */
  --success-dark: #047857;         /* Darker green */
  --success-light: #10b981;        /* Lighter green */
  
  --warning-color: #d97706;        /* Professional Amber */
  --warning-dark: #b45309;         /* Darker amber */
  
  --danger-color: #dc2626;         /* Professional Red */
  --danger-dark: #b91c1c;          /* Darker red */
  
  /* Professional Gray Scale - ridon inspired */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Enhanced Shadows for ridon-style depth */
  --shadow-primary: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-accent: 0 10px 20px rgba(37, 99, 235, 0.08);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  min-height: 100vh;
  min-height: -webkit-fill-available; /* iOS safe area fix */
  position: relative;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top); /* iOS notch/status bar */
  padding-bottom: env(safe-area-inset-bottom); /* iOS home indicator */
}

/* Card styling with ridon-inspired colors */
.card {
  border: none;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  margin-top: env(safe-area-inset-top);
  margin-bottom: env(safe-area-inset-bottom);
}

.card-header {
  border-radius: 1rem 1rem 0 0 !important;
  border: none;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  color: white !important;
}

/* Ensure all text in card headers has proper contrast */
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6,
.card-header small,
.card-header .text-light {
  color: white !important;
}

/* Inner card headers (like Live-Vorschau) */
.card-body .card .card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
  color: white !important;
  padding: 1rem 1.25rem;
  border-bottom: none;
  border-radius: 0.75rem 0.75rem 0 0 !important;
}

.card-body .card .card-header h5,
.card-body .card .card-header h2 {
  color: white !important;
  font-weight: 600;
  margin: 0;
}

/* Animated gradient overlay for header */
.card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.card-body {
  padding: 2rem;
  background: rgba(248, 250, 252, 0.5);
  backdrop-filter: blur(10px);
}

/* Input styling with ridon colors */
.input-group .form-control {
  border-radius: 0.5rem 0 0 0.5rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  background: white;
  font-size: 0.95rem;
}

.input-group .form-control-color {
  border-radius: 0 0.5rem 0.5rem 0;
  width: 60px;
  padding: 0.25rem;
  border: 1px solid var(--gray-200);
  border-left: none;
  cursor: pointer;
}

.form-control:focus,
.form-control-color:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  border-color: #0d6efd;
}

/* Inner cards in card body */
.card-body .card {
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Preview area styling */
#preview-area {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 0 0 0.75rem 0.75rem;
  position: relative;
  background: white;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

#preview-area:hover {
  box-shadow: inset 0 2px 4px rgba(37, 99, 235, 0.05);
}

#preview-area.good-contrast {
  border-color: #28a745;
}

#preview-area.poor-contrast {
  border-color: #dc3545;
}

/* Alert styling for results with ridon colors */
.alert {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.alert-info {
  background: rgba(239, 246, 255, 0.8);
  color: var(--primary-dark);
  border-color: rgba(37, 99, 235, 0.2);
  border-left-color: var(--primary-color);
}

.alert-success {
  background: rgba(236, 253, 245, 0.8);
  color: var(--success-dark);
  border-color: rgba(5, 150, 105, 0.2);
  border-left-color: var(--success-color);
}

.alert-warning {
  background: rgba(255, 251, 235, 0.8);
  color: var(--warning-dark);
  border-color: rgba(217, 119, 6, 0.2);
  border-left-color: var(--warning-color);
}

.alert-danger {
  background: rgba(254, 242, 242, 0.8);
  color: var(--danger-dark);
  border-color: rgba(220, 38, 38, 0.2);
  border-left-color: var(--danger-color);
}

/* Suggestion cards with ridon styling */
.suggestion {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0.75rem;
  padding: 0.75rem;
  text-align: center;
  background: white;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  height: 100%;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.suggestion:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
  background: linear-gradient(to bottom, white, rgba(37, 99, 235, 0.02));
  z-index: 10;
}

.suggestion:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.suggestion .color-preview {
  width: 100%;
  height: 40px;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.suggestion .color-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.suggestion .color-text {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}

.suggestion .color-description {
  font-size: 0.75rem;
  color: var(--gray-600);
  line-height: 1.2;
  margin-bottom: 0.25rem;
  min-height: 1.2em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion .color-ratio {
  margin-top: auto;
}

/* Ensure equal column heights */
#suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

#suggestions > div {
  display: flex;
}

#suggestions .suggestion {
  width: 100%;
}

/* Button styling with ridon brand colors */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn-success {
  background: var(--success-color);
  border-color: var(--success-color);
  color: white;
}

.btn-success:hover {
  background: var(--success-dark);
  border-color: var(--success-dark);
  color: white;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.btn-outline-secondary {
  color: var(--gray-600);
  border-color: var(--gray-300);
  background: white;
}

.btn-outline-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-700);
}

/* Status icons and colors */
.status-aaa {
  color: var(--success-color);
}

.status-aa {
  color: var(--warning-color);
}

.status-fail {
  color: var(--danger-color);
}

/* Loading animation */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Footer styling */
.card-footer {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
}

.card-footer .btn-link {
  color: var(--gray-600);
  text-decoration: none;
}

.card-footer .btn-link:hover {
  color: var(--primary-color);
}

/* Cookie banner with ridon colors */
#cookie-banner {
  background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
  border-top: 1px solid var(--primary-color);
}

/* Modal styling */
.modal-content {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-bottom: none;
  padding: 1.5rem;
}

.modal-body {
  color: var(--gray-700);
  padding: 2rem;
}

.modal-body h6 {
  color: var(--primary-dark);
  font-weight: 600;
}

.modal-body .text-primary {
  color: var(--primary-color) !important;
}

.modal-body .alert-info {
  background: rgba(239, 246, 255, 0.5);
  color: var(--gray-700);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-left-width: 4px;
  border-left-color: var(--primary-color);
}

/* Responsive adjustments */

/* Large phones and up (iPhone 6/7/8 Plus, newer models) */
@media (max-width: 414px) {
  body {
    font-size: 14px;
    padding-top: calc(env(safe-area-inset-top) + 0.5rem);
  }
  
  .container-fluid {
    padding: 0.5rem;
    padding-top: 1rem;
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  .card {
    border-radius: 0.75rem;
    margin: 0.5rem;
  }
  
  .card-header {
    padding: 1rem !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .h3 {
    font-size: 1.25rem;
  }
  
  /* Touch-friendly buttons */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Touch-friendly form controls */
  .form-control,
  .form-control-color {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .form-control-color {
    width: 50px !important;
  }
  
  /* Language switcher mobile */
  .lang-switch {
    min-width: 30px;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  /* Cookie banner mobile optimization */
  #cookie-banner .row {
    text-align: center;
  }
  
  #cookie-banner p {
    font-size: 14px;
    margin-bottom: 1rem;
  }
  
  #cookie-banner .btn {
    margin: 0.25rem;
    min-width: 100px;
  }
  
  /* Suggestion cards mobile */
  .suggestion {
    padding: 0.5rem;
    min-height: 120px;
  }
  
  .suggestion .color-preview {
    height: 30px;
  }
  
  .suggestion .color-description {
    font-size: 0.7rem;
  }
  
  .suggestion .color-text {
    font-size: 0.8rem;
  }
  
  /* Modal adjustments */
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .modal-xl {
    max-width: 95%;
  }
  
  /* Preview area mobile */
  #preview-area {
    min-height: 60px !important;
    padding: 1rem;
  }
  
  #preview-area p {
    font-size: 1rem;
  }
  
  #preview-area small {
    font-size: 0.75rem;
  }
}

/* Small tablets and large phones (iPhone landscape) */
@media (min-width: 415px) and (max-width: 576px) {
  .card-body {
    padding: 1.5rem;
  }
  
  .card-header {
    padding: 1.5rem !important;
  }
  
  .h3 {
    font-size: 1.5rem;
  }
  
  /* Touch targets */
  .btn, .form-control, .form-control-color {
    min-height: 44px;
  }
}

/* iPads and tablets */
@media (min-width: 577px) and (max-width: 768px) {
  .container-fluid {
    padding: 1rem;
  }
  
  .card-body {
    padding: 1.75rem;
  }
  
  .modal-xl {
    max-width: 90%;
  }
}

/* iPad Pro and larger tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .col-xl-4 {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Accessibility improvements */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Skip navigation link */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.visually-hidden-focusable:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0.5rem 1rem !important;
  margin: 1rem !important;
  clip: auto !important;
  background: #0d6efd !important;
  color: white !important;
  text-decoration: none !important;
  border-radius: 0.375rem !important;
}

/* Focus styles for better accessibility */
.suggestion:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

*:focus {
  outline-color: var(--primary-color);
}

/* Animation for status changes */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.status-update {
  animation: pulse 0.3s ease-in-out;
}

/* Copy success notification */
.copy-success {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  border-radius: 0.5rem;
  background: var(--success-color);
  color: white;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
  /* Disable heavy animations on mobile */
  .card-header::before {
    animation: none !important;
  }
  
  /* Simplify backgrounds on mobile */
  body::after {
    display: none;
  }
  
  /* Touch feedback */
  .btn:active,
  .suggestion:active {
    transform: scale(0.98);
  }
  
  /* iOS-specific fixes */
  @supports (-webkit-touch-callout: none) {
    /* Prevent text selection on buttons */
    .btn {
      -webkit-touch-callout: none;
      -webkit-user-select: none;
      user-select: none;
    }
    
    /* Smooth scrolling */
    .container-fluid {
      -webkit-overflow-scrolling: touch;
    }
  }
}

/* Language Switcher */
.lang-switch {
  min-width: 35px;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.lang-switch.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.lang-switch:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Completely New Tooltip System - Simple & Reliable */
.tooltip-container {
  position: relative;
  display: inline-block;
}

.tooltip-content {
  position: fixed;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: none;
  border-radius: 16px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-800);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(37, 99, 235, 0.1);
  z-index: 10000;
  min-width: 280px;
  max-width: 320px;
  display: none;
  backdrop-filter: blur(12px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tooltip-content::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-top: none;
  border-left: none;
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
}

.tooltip-color-preview {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid var(--gray-200);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tooltip-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--gray-900);
  margin: 0;
}

.tooltip-section {
  margin-bottom: 16px;
}

.tooltip-section:last-child {
  margin-bottom: 0;
}

.tooltip-section-title {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tooltip-values {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 13px;
}

.tooltip-label {
  font-weight: 600;
  color: var(--gray-600);
}

.tooltip-value {
  color: var(--gray-900);
  font-weight: 500;
}

.tooltip-contrast {
  background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.tooltip-contrast-ratio {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.tooltip-wcag-badges {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tooltip-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tooltip-badge.success {
  background: var(--success-color);
  color: white;
}

.tooltip-badge.warning {
  background: var(--warning-color);
  color: white;
}

.tooltip-badge.danger {
  background: var(--danger-color);
  color: white;
}

.tooltip-theory {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(99, 102, 241, 0.05));
  border-radius: 12px;
  padding: 12px;
  border-left: 4px solid var(--secondary-color);
}

.tooltip-theory-text {
  font-size: 12px;
  color: var(--gray-700);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}

.emoji {
  font-size: 14px;
}

/* Suggestion Section Titles */
.suggestion-section-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

.suggestion-section-title .emoji {
  font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .custom-tooltip {
    width: 260px;
    font-size: 0.8rem;
    padding: 0.875rem;
  }
}

/* Ensure suggestion cards don't clip tooltips */
.suggestion {
  position: relative;
}

#suggestions {
  overflow: visible;
}

#suggestions .col-6,
#suggestions .col-md-4, 
#suggestions .col-lg-3 {
  overflow: visible;
}

.card-body {
  overflow: visible;
}

.container-fluid {
  overflow: visible;
}

/* Fix for suggestion cards positioning */
.suggestion {
  position: relative;
}

#suggestions {
  overflow: visible;
}

#suggestions .col-6,
#suggestions .col-md-4,
#suggestions .col-lg-3 {
  overflow: visible;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Copy button animation */
.btn-copy-success {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: white !important;
}

/* Suggestion cards */
.suggestion-card {
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 0.75rem;
  border: 2px solid transparent;
}

.suggestion-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #0d6efd;
}

/* Loading animation */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0d6efd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tooltip styling */
.custom-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  z-index: 1050;
  max-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Color wheel specific styles */
#color-wheel {
  display: block;
  margin: 0 auto;
  border: 2px solid #dee2e6;
  transition: border-color 0.2s ease;
}

#color-wheel:hover {
  border-color: #0d6efd;
}

/* Color swatch styles */
.color-swatch {
  transition: all 0.3s ease;
  min-height: 60px;
  cursor: pointer;
  user-select: none;
}

.color-swatch:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.color-swatch.selected {
  border-width: 3px !important;
  border-color: #0d6efd !important;
}

/* Input mode toggle styles */
.btn-check:checked + .btn {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: white;
}

.btn-check:checked + .btn-outline-success {
  background-color: #198754;
  border-color: #198754;
  color: white;
}

.btn-check:checked + .btn-outline-info {
  background-color: #0dcaf0;
  border-color: #0dcaf0;
  color: white;
}

/* Animation for mode switching */
#manual-input, #wheel-input {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#manual-input.d-none, #wheel-input.d-none {
  opacity: 0;
  transform: translateY(-10px);
}

/* Color theory indicators */
.color-theory-indicator {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

/* Enhanced button feedback */
.btn-success-feedback {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: white !important;
  transform: scale(0.98);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .card {
    background: rgba(33, 37, 41, 0.95);
    color: #f8f9fa;
  }
  
  .text-muted {
    color: #adb5bd !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid;
  }
  
  .btn {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Active contrast pair highlighting */
.active-contrast-pair {
  position: relative;
  border-width: 3px !important;
  box-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
  animation: pulse-active-border 2s infinite;
}

@keyframes pulse-active-border {
  0% {
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(13, 110, 253, 0.6);
  }
  100% {
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
  }
}

/* Color assignment buttons styling */
#assign-foreground,
#assign-background {
  border: 1px solid #ababab62 !important;
  transition: all 0.3s ease;
}

#assign-foreground:hover,
#assign-background:hover {
  border-color: rgba(13, 110, 253, 0.6) !important;
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.2);
}

.color-swatch {
  transition: all 0.3s ease;
}

/* Icon coloring for contrast display */
.contrast-text-icon,
.contrast-bg-icon {
  font-size: 16px;
  text-shadow: 0 0 1px rgba(0,0,0,0.5);
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.3));
} 