/* ========================================
   CONVERTISSEUR DE DATES LATINES - CSS
   Thème : Parchemin & Manuscrit Médiéval
======================================== */

/* ========================================
   IMPORTATION DES POLICES
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ========================================
   VARIABLES DE THÈMES
======================================== */

:root {
  /* Thème Parchemin (défaut) */
  --primary-color: #8B4513;
  --primary-light: #A0522D;
  --primary-accent: #DEB887;
  --primary-alpha: rgba(139, 69, 19, 0.3);

  --converter-bg: linear-gradient(135deg, #FDF5E6 0%, #F5E6D3 100%);
  --converter-text: #3E2723;
  --input-bg: rgba(255, 255, 255, 0.7);
  --input-border: rgba(139, 69, 19, 0.3);
  --mode-toggle-bg: rgba(139, 69, 19, 0.1);
  --result-bg: linear-gradient(135deg, #FFF8E7 0%, #F5E6D3 100%);
  --convert-btn-bg: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #DEB887 100%);
  --convert-btn-text: #ffffff;
  --border-ornament: #C19A6B;

  /* Typographie */
  --font-title: 'Cinzel', serif;
  --font-body: 'Crimson Text', serif;
  --font-latin: 'EB Garamond', serif;
}

/* Thème Manuscrit Bleu */
.theme-blue {
  --primary-color: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-accent: #60a5fa;
  --primary-alpha: rgba(30, 58, 138, 0.3);

  --converter-bg: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  --converter-text: #1e3a8a;
  --input-bg: rgba(255, 255, 255, 0.8);
  --input-border: rgba(30, 58, 138, 0.3);
  --mode-toggle-bg: rgba(30, 58, 138, 0.1);
  --result-bg: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  --convert-btn-bg: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
  --convert-btn-text: #ffffff;
  --border-ornament: #3b82f6;
}

/* Thème Enluminure Verte */
.theme-green {
  --primary-color: #14532d;
  --primary-light: #16a34a;
  --primary-accent: #4ade80;
  --primary-alpha: rgba(20, 83, 45, 0.3);

  --converter-bg: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  --converter-text: #14532d;
  --input-bg: rgba(255, 255, 255, 0.8);
  --input-border: rgba(20, 83, 45, 0.3);
  --mode-toggle-bg: rgba(20, 83, 45, 0.1);
  --result-bg: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  --convert-btn-bg: linear-gradient(135deg, #14532d 0%, #16a34a 50%, #4ade80 100%);
  --convert-btn-text: #ffffff;
  --border-ornament: #16a34a;
}

/* Thème Pourpre Royal */
.theme-purple {
  --primary-color: #581c87;
  --primary-light: #9333ea;
  --primary-accent: #c084fc;
  --primary-alpha: rgba(88, 28, 135, 0.3);

  --converter-bg: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  --converter-text: #581c87;
  --input-bg: rgba(255, 255, 255, 0.8);
  --input-border: rgba(88, 28, 135, 0.3);
  --mode-toggle-bg: rgba(88, 28, 135, 0.1);
  --result-bg: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  --convert-btn-bg: linear-gradient(135deg, #581c87 0%, #9333ea 50%, #c084fc 100%);
  --convert-btn-text: #ffffff;
  --border-ornament: #9333ea;
}

/* Thème Gothique */
.theme-gothic {
  --primary-color: #1f2937;
  --primary-light: #4b5563;
  --primary-accent: #9ca3af;
  --primary-alpha: rgba(31, 41, 55, 0.3);

  --converter-bg: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  --converter-text: #1f2937;
  --input-bg: rgba(255, 255, 255, 0.8);
  --input-border: rgba(31, 41, 55, 0.3);
  --mode-toggle-bg: rgba(31, 41, 55, 0.1);
  --result-bg: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  --convert-btn-bg: linear-gradient(135deg, #1f2937 0%, #4b5563 50%, #9ca3af 100%);
  --convert-btn-text: #ffffff;
  --border-ornament: #4b5563;
}

/* Thème Moderne Clair */
.theme-modern {
  --primary-color: #0f172a;
  --primary-light: #475569;
  --primary-accent: #94a3b8;
  --primary-alpha: rgba(15, 23, 42, 0.3);

  --converter-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --converter-text: #0f172a;
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-border: rgba(15, 23, 42, 0.2);
  --mode-toggle-bg: rgba(15, 23, 42, 0.05);
  --result-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --convert-btn-bg: linear-gradient(135deg, #0f172a 0%, #475569 50%, #94a3b8 100%);
  --convert-btn-text: #ffffff;
  --border-ornament: #475569;
}

/* ========================================
   LAYOUT PRINCIPAL
======================================== */

/* Masquer l'historique sur mobile */
.desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

.converter-container {
  background: var(--converter-bg);
  border-radius: 20px;
  padding: 4px;
  box-shadow:
    0 8px 20px rgba(139, 69, 19, 0.2),
    0 0 0 1px var(--border-ornament);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

/* Bordure ornementale style manuscrit */
.converter-container::before {
  content: '✠';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px var(--primary-alpha);
  z-index: 10;
  font-family: var(--font-latin);
}

.converter-card {
  background: var(--converter-bg);
  color: var(--converter-text);
  border-radius: 18px;
  padding: 2rem;
  position: relative;
  overflow: visible;
  font-family: var(--font-body);

  /* Texture parchemin subtile */
  background-image:
    var(--converter-bg),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(139, 69, 19, 0.02) 2px,
      rgba(139, 69, 19, 0.02) 4px
    );
}

/* Ornements aux coins */
.converter-card::after {
  content: '❦';
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--primary-color);
  opacity: 0.3;
  font-family: var(--font-latin);
}

/* ========================================
   BOUTON PARAMÈTRES
======================================== */

.settings-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--converter-text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px var(--primary-alpha);
}

.settings-toggle:hover {
  background: var(--primary-light);
  color: white;
  transform: scale(1.05) rotate(90deg);
  border-color: var(--primary-color);
}

.settings-gear {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

/* ========================================
   TOGGLE DES MODES
======================================== */

.mode-toggle {
  display: flex;
  background: var(--mode-toggle-bg);
  border-radius: 12px;
  padding: 6px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border: 2px solid var(--input-border);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--converter-text);
  opacity: 0.6;
  font-size: 0.95rem;
  font-family: var(--font-title);
}

.mode-btn.active {
  background: var(--primary-color);
  color: white;
  box-shadow:
    0 4px 12px var(--primary-alpha),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  opacity: 1;
}

.mode-btn:hover:not(.active) {
  background: var(--input-bg);
  opacity: 0.8;
}

.mode-icon {
  font-size: 1.3rem;
}

.mode-text {
  font-size: 1rem;
  font-weight: 600;
}

/* ========================================
   SECTION DES INPUTS
======================================== */

.input-section {
  margin-bottom: 2rem;
  position: relative;
}

.input-mode {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.input-mode.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mode grille pour numérique */
.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.input-group {
  position: relative;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--converter-text);
  font-size: 0.95rem;
  font-family: var(--font-title);
  letter-spacing: 0.5px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--input-border);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--input-bg);
  color: var(--converter-text);
  font-family: var(--font-body);
  box-shadow:
    inset 0 1px 3px rgba(0,0,0,0.08),
    0 1px 2px rgba(0,0,0,0.05);
}

.input-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-latin);
  line-height: 1.6;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow:
    0 0 0 3px var(--primary-alpha),
    inset 0 1px 3px rgba(0,0,0,0.1),
    0 4px 12px var(--primary-alpha);
  transform: translateY(-2px);
}

/* Flèche des selects */
.input-group select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238B4513' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  appearance: none;
  padding-right: 2.5rem;
}

.input-group select option {
  background: white;
  color: #333;
  padding: 0.5rem;
}

/* ========================================
   OPTIONS AVANCÉES
======================================== */

.options-section {
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.options-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--converter-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.option-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.option-item label {
  cursor: pointer;
  font-size: 0.9rem;
  margin: 0;
  font-family: var(--font-body);
}

/* ========================================
   SECTION CONVERSION
======================================== */

.convert-section {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.convert-btn {
  background: var(--convert-btn-bg);
  color: var(--convert-btn-text);
  border: none;
  padding: 1.125rem 3rem;
  border-radius: 60px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow:
    0 6px 20px var(--primary-alpha),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.convert-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.convert-btn:hover::before {
  left: 100%;
}

.convert-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 30px var(--primary-alpha),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.convert-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.convert-icon {
  font-size: 1.3rem;
}

/* Bouton reset (style médiéval) */
.reset-icon-btn {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.reset-icon-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.5);
  transform: scale(1.1) rotate(-15deg);
}

/* ========================================
   SECTION RÉSULTATS
======================================== */

.result-section {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card {
  background: var(--result-bg);
  border: 3px solid var(--border-ornament);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  position: relative;
  margin-top: 1.5rem;
  box-shadow:
    0 8px 24px var(--primary-alpha),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Ornement de résultat */
.result-card::before {
  content: '✨';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px var(--primary-alpha);
}

.close-result-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
}

.close-result-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.5);
  transform: scale(1.1);
}

.copy-result-btn {
  position: absolute;
  top: 1rem;
  right: 3.5rem;
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.copy-result-btn:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  transform: scale(1.1);
}

.copy-result-btn.copied {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.6);
}

.result-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--converter-text);
  opacity: 0.8;
  margin-bottom: 1rem;
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-latin-text {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 2px solid var(--input-border);
  font-family: var(--font-latin);
  line-height: 1.8;
  word-wrap: break-word;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.result-roman-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 1rem;
  padding: 0.875rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  border: 1px solid var(--input-border);
  font-family: var(--font-title);
}

.result-description {
  font-size: 0.85rem;
  color: var(--converter-text);
  opacity: 0.7;
  font-style: italic;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

/* Détails des composants */
.result-details {
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid var(--input-border);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: left;
}

.result-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--input-border);
  font-family: var(--font-body);
}

.result-detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: var(--converter-text);
  font-size: 0.9rem;
}

.detail-value {
  font-family: var(--font-latin);
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Fête liturgique */
.result-feast {
  background: linear-gradient(135deg, var(--primary-alpha), transparent);
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}

.feast-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feast-icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.feast-content {
  text-align: left;
  flex: 1;
}

.feast-name {
  font-weight: 600;
  color: var(--converter-text);
  font-size: 1rem;
  font-family: var(--font-title);
  margin-bottom: 0.25rem;
}

.feast-latin {
  font-family: var(--font-latin);
  color: var(--primary-color);
  font-size: 0.9rem;
  font-style: italic;
}

/* ========================================
   SECTION ERREURS
======================================== */

.error-section {
  animation: shake 0.5s ease-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.error-card {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 3px solid #dc2626;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.error-icon {
  font-size: 2rem;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.error-message {
  color: #dc2626;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ========================================
   AVERTISSEMENTS ET ENCADRÉS INFORMATIFS
======================================== */

/* Avertissement de date inexistante (adapté au thème du site) */
#result-warning {
  margin-bottom: 1.25rem;
  animation: slideUp 0.5s ease-out;
}

.warning-box {
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(239, 68, 68, 0.05));
  border-left: 4px solid #dc2626;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.warning-box-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 0.75rem;
  font-family: var(--font-title);
}

.warning-box-region {
  margin-bottom: 0.625rem;
  color: #991b1b;
  font-weight: 600;
  font-family: var(--font-body);
}

.warning-box-explanation {
  margin-bottom: 0.625rem;
  color: #7f1d1d;
  font-family: var(--font-body);
  line-height: 1.6;
}

.warning-box-message {
  padding: 0.875rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  color: #7f1d1d;
  font-weight: 500;
  font-family: var(--font-body);
  line-height: 1.6;
}

/* Mode sombre pour le warning */
:root.theme-dark .warning-box {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(239, 68, 68, 0.08));
}

:root.theme-dark .warning-box-title {
  color: #f87171;
}

:root.theme-dark .warning-box-region {
  color: #fca5a5;
}

:root.theme-dark .warning-box-explanation {
  color: #fca5a5;
}

:root.theme-dark .warning-box-message {
  background: rgba(0, 0, 0, 0.3);
  color: #fecaca;
}

/* Encadré informatif rouge (adapté au thème du site) */
.info-box-red {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(239, 68, 68, 0.05));
  border-left: 5px solid #dc2626;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.info-box-red-title {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc2626;
  font-family: var(--font-title);
}

.info-box-red p {
  margin-bottom: 1rem;
  color: var(--text-main, #333);
  font-family: var(--font-body);
  line-height: 1.7;
}

.info-box-red p:last-child {
  margin-bottom: 0;
}

.info-box-red ul {
  margin: 1rem 0 1.25rem 1.5rem;
  padding-left: 0;
  color: var(--text-main, #333);
  font-family: var(--font-body);
  line-height: 1.7;
}

.info-box-red li {
  margin-bottom: 0.75rem;
}

.info-box-red strong {
  color: var(--text-main, #333);
  font-weight: 700;
}

.info-box-red .highlight-red {
  color: #dc2626;
  font-weight: 700;
}

/* Mode sombre pour info-box-red */
:root.theme-dark .info-box-red {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(239, 68, 68, 0.08));
}

:root.theme-dark .info-box-red-title {
  color: #f87171;
}

:root.theme-dark .info-box-red .highlight-red {
  color: #fca5a5;
}

/* Encadré informatif jaune (adapté au thème du site) */
.info-box-yellow {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08), rgba(250, 204, 21, 0.05));
  border-left: 5px solid #eab308;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.15);
}

.info-box-yellow-title {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #713f12;
  font-family: var(--font-title);
}

.info-box-yellow p {
  margin-bottom: 1rem;
  color: var(--text-main, #333);
  font-family: var(--font-body);
  line-height: 1.7;
}

.info-box-yellow p:last-child {
  margin-bottom: 0;
}

.info-box-yellow ul {
  margin: 1rem 0 1.25rem 1.5rem;
  padding-left: 0;
  color: var(--text-main, #333);
  font-family: var(--font-body);
  line-height: 1.7;
}

.info-box-yellow li {
  margin-bottom: 0.75rem;
}

.info-box-yellow strong {
  color: var(--text-main, #333);
  font-weight: 700;
}

.info-box-yellow .highlight-yellow {
  color: #713f12;
  font-weight: 700;
}

.info-box-yellow-tip {
  margin-bottom: 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-main, #333);
}

/* Mode sombre pour info-box-yellow */
:root.theme-dark .info-box-yellow {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(250, 204, 21, 0.08));
}

:root.theme-dark .info-box-yellow-title {
  color: #fde047;
}

:root.theme-dark .info-box-yellow .highlight-yellow {
  color: #fef08a;
}

:root.theme-dark .info-box-yellow-tip {
  background: rgba(0, 0, 0, 0.3);
}

/* Titres de sections dans la documentation */
.doc-section-title {
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main, #333);
  font-family: var(--font-title);
}

/* ========================================
   HISTORIQUE
======================================== */

.history-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--input-border);
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.history-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--converter-text);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  font-family: var(--font-title);
}

.history-icon {
  font-size: 1.2rem;
}

.clear-btn {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.clear-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.5);
  transform: scale(1.05);
}

.history-content {
  height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.history-content::-webkit-scrollbar {
  width: 6px;
}

.history-content::-webkit-scrollbar-track {
  background: transparent;
}

.history-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--converter-text);
  opacity: 0.5;
}

.empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.history-empty p {
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
  font-family: var(--font-body);
}

.history-item {
  background: var(--input-bg);
  border-radius: 10px;
  padding: 0.875rem;
  border: 2px solid var(--input-border);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInHistory 0.3s ease-out;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px var(--primary-alpha);
}

@keyframes slideInHistory {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.history-item-type {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.history-item-content {
  color: var(--converter-text);
  font-weight: 500;
  font-size: 0.85rem;
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-arrow {
  color: var(--primary-color);
  font-weight: bold;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.history-item-result {
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  text-align: right;
  font-family: var(--font-latin);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================
   MODAL PARAMÈTRES
======================================== */

.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

.settings-modal-content {
  background: var(--converter-bg);
  border-radius: 20px;
  padding: 0;
  max-width: 550px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
  border: 3px solid var(--border-ornament);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.settings-modal-header {
  background: var(--primary-color);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  border-bottom: 2px solid var(--border-ornament);
}

.settings-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
}

.close-modal-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.settings-modal-body {
  padding: 2rem;
  color: var(--converter-text);
  overflow-y: auto;
  max-height: calc(85vh - 90px);
  font-family: var(--font-body);
}

/* ========================================
   SETTINGS GROUPES
======================================== */

.setting-group {
  margin-bottom: 1.75rem;
}

.setting-label {
  display: block;
  color: var(--converter-text);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
  font-family: var(--font-title);
}

/* Thèmes de couleur */
.theme-options {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.theme-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 4px;
  background: var(--input-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.theme-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.theme-btn.active {
  border-color: var(--primary-color);
  box-shadow:
    0 0 0 2px var(--primary-alpha),
    0 4px 12px rgba(0,0,0,0.2);
  transform: scale(1.1);
}

.theme-preview {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Taille de police */
.font-size-options {
  display: flex;
  gap: 0.75rem;
}

.font-btn {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid var(--input-border);
  background: var(--input-bg);
  color: var(--converter-text);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: var(--font-title);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.font-btn[data-size="small"] {
  font-size: 0.8rem;
}

.font-btn[data-size="normal"] {
  font-size: 1rem;
}

.font-btn[data-size="large"] {
  font-size: 1.2rem;
}

.font-btn[data-size="extra-large"] {
  font-size: 1.4rem;
}

.font-btn:hover {
  background: var(--primary-light);
  color: white;
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.font-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px var(--primary-alpha);
}

/* Toggle animations */
.animation-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  border-radius: 28px;
  border: 2px solid var(--input-border);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-text {
  color: var(--converter-text);
  font-size: 0.95rem;
  font-family: var(--font-body);
}

/* Bouton reset paramètres */
.reset-btn {
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  color: #dc2626;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-title);
}

.reset-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.5);
  transform: scale(1.02);
}

.reset-icon {
  font-size: 1.1rem;
}

/* ========================================
   TAILLES DE POLICE
======================================== */

.font-small {
  font-size: 90%;
}

.font-large {
  font-size: 110%;
}

.font-extra-large {
  font-size: 120%;
}

/* ========================================
   ANIMATIONS DÉSACTIVÉES
======================================== */

.no-animations * {
  animation: none !important;
  transition: none !important;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
  .converter-card {
    padding: 1.25rem;
  }

  .input-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mode-btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .mode-text {
    font-size: 0.8rem;
    text-align: center;
  }

  .convert-btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }

  .result-latin-text {
    font-size: 1.2rem;
    padding: 1rem;
  }

  .result-roman-text {
    font-size: 0.95rem;
  }

  .settings-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .theme-options {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .converter-container {
    border-radius: 12px;
  }

  .converter-card {
    padding: 1rem;
    border-radius: 10px;
  }

  .mode-toggle {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .mode-btn {
    padding: 0.625rem 0.25rem;
    font-size: 0.75rem;
  }

  .mode-icon {
    font-size: 1.1rem;
  }

  .mode-text {
    font-size: 0.7rem;
  }

  .convert-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    gap: 0.5rem;
  }

  .result-latin-text {
    font-size: 1.05rem;
    padding: 0.875rem;
  }

  .result-roman-text {
    font-size: 0.85rem;
    padding: 0.75rem;
  }

  .result-details {
    padding: 0.75rem;
  }

  .result-detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .history-item-result {
    text-align: left;
    width: 100%;
  }
}

@media (max-width: 320px) {
  .converter-card {
    padding: 0.75rem;
  }

  .mode-btn {
    padding: 0.5rem 0.125rem;
    font-size: 0.7rem;
  }

  .convert-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }

  .result-latin-text {
    font-size: 0.95rem;
  }
}

/* ============================================
   SECTION TABLEAU DE RECHERCHE DE FÊTES
   ============================================ */

.feast-search-section {
  background: white !important;
  padding: 3rem 0 !important;
  border-top: 2px solid var(--primary-accent, #d4a574) !important;
}

.feast-search-section .feast-search-header {
  text-align: center !important;
  margin-bottom: 2rem !important;
}

.feast-search-section .feast-search-header h2 {
  font-family: var(--font-title) !important;
  font-size: 2rem !important;
  color: var(--primary-color, #8b4513) !important;
  margin-bottom: 0.5rem !important;
}

.feast-search-section .feast-search-subtitle {
  font-family: var(--font-body) !important;
  color: var(--text-secondary, #666) !important;
  font-size: 1.1rem !important;
}

.feast-search-section .feast-search-controls {
  background: white !important;
  padding: 1.5rem !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  margin-bottom: 1.5rem !important;
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.feast-search-section .feast-search-input {
  width: 100% !important;
  padding: 0.875rem 1.25rem !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  border: 2px solid var(--primary-accent, #d4a574) !important;
  border-radius: 8px !important;
  margin-bottom: 1rem !important;
  transition: all 0.3s ease !important;
  background: white !important;
  color: #333 !important;
  box-sizing: border-box !important;
}

.feast-search-section .feast-search-input:focus {
  outline: none !important;
  border-color: var(--primary-color, #8b4513) !important;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1) !important;
}

.feast-search-section .feast-filter-buttons {
  display: flex !important;
  gap: 0.5rem !important;
  flex-wrap: wrap !important;
}

.feast-search-section .feast-filter-btn {
  padding: 0.625rem 1.25rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  background: var(--bg-light, #f5f5f5) !important;
  color: var(--text-primary, #333) !important;
  border: 2px solid var(--primary-accent, #d4a574) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.feast-search-section .feast-filter-btn:hover {
  background: var(--primary-accent, #d4a574) !important;
  border-color: var(--primary-color, #8b4513) !important;
}

.feast-search-section .feast-filter-btn.active {
  background: var(--primary-color, #8b4513) !important;
  color: white !important;
  border-color: var(--primary-color, #8b4513) !important;
}

.feast-search-section .feast-table-container {
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  overflow: hidden !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
}

.feast-search-section .feast-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-family: var(--font-body) !important;
  table-layout: fixed !important;
}

.feast-search-section .feast-table thead {
  background: var(--primary-color, #8b4513) !important;
  color: white !important;
}

.feast-search-section .feast-table th {
  padding: 0.75rem 0.5rem !important;
  text-align: left !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border-bottom: 2px solid var(--primary-light, #a0552f) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

.feast-search-section .feast-table th:last-child {
  border-right: none !important;
}

.feast-search-section .feast-table th:nth-child(1) { width: 90px !important; }
.feast-search-section .feast-table th:nth-child(2) { width: 28% !important; }
.feast-search-section .feast-table th:nth-child(3) { width: auto !important; }
.feast-search-section .feast-table th:nth-child(4) { width: 110px !important; text-align: center !important; }

.feast-search-section .feast-table tbody tr {
  border-bottom: 1px solid var(--primary-accent, #d4a574) !important;
  transition: background 0.2s ease !important;
  background: transparent !important;
}

.feast-search-section .feast-table tbody tr:hover {
  background: var(--bg-light, #f5f5f5) !important;
}

.feast-search-section .feast-table tbody tr:last-child {
  border-bottom: none !important;
}

.feast-search-section .feast-table td {
  padding: 0.75rem 0.5rem !important;
  font-size: 0.9rem !important;
  border-right: 1px solid var(--primary-accent, #d4a574) !important;
  background: transparent !important;
}

.feast-search-section .feast-table td:last-child {
  border-right: none !important;
}

.feast-search-section .feast-table .feast-date {
  font-weight: 600 !important;
  color: var(--primary-color, #8b4513) !important;
  white-space: nowrap !important;
  text-align: left !important;
}

.feast-search-section .feast-table .feast-name {
  font-weight: 500 !important;
  color: var(--text-primary, #333) !important;
}

.feast-search-section .feast-table .feast-latin {
  font-family: var(--font-latin) !important;
  font-style: italic !important;
  color: var(--text-secondary, #666) !important;
  font-size: 0.85rem !important;
}

.feast-search-section .feast-table .feast-type {
  font-size: 0.85rem !important;
  color: var(--text-secondary, #666) !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.feast-search-section .feast-table .no-results {
  text-align: center !important;
  padding: 2rem !important;
  color: var(--text-secondary, #666) !important;
  font-style: italic !important;
}

.feast-search-section .feast-mobile-note {
  padding: 1.5rem !important;
  background: var(--bg-light, #f5f5f5) !important;
  border-top: 2px solid var(--primary-accent, #d4a574) !important;
  text-align: center !important;
}

.feast-search-section .feast-mobile-note .info-icon {
  font-size: 1.5rem !important;
  display: block !important;
  margin-bottom: 0.5rem !important;
}

.feast-search-section .feast-mobile-note p {
  font-family: var(--font-body) !important;
  color: var(--text-secondary, #666) !important;
  margin-bottom: 1rem !important;
}

.feast-search-section .mobile-feast-year-selector {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.75rem !important;
  flex-wrap: wrap !important;
}

.feast-search-section .mobile-feast-year-selector label {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  color: var(--text-primary, #333) !important;
}

.feast-search-section .year-input-small {
  width: 100px !important;
  padding: 0.5rem !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  border: 2px solid var(--primary-accent, #d4a574) !important;
  border-radius: 6px !important;
  text-align: center !important;
  background: white !important;
  color: #333 !important;
  box-sizing: border-box !important;
}

.feast-search-section .calculate-btn {
  padding: 0.5rem 1.25rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  background: var(--primary-color, #8b4513) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.feast-search-section .calculate-btn:hover {
  background: var(--primary-light, #a0552f) !important;
  transform: translateY(-1px) !important;
}

/* Responsive pour tablettes */
@media (max-width: 768px) {
  .feast-search-header h2 {
    font-size: 1.5rem;
  }

  .feast-table {
    font-size: 0.85rem;
  }

  .feast-table th,
  .feast-table td {
    padding: 0.625rem 0.5rem;
  }

  .feast-latin {
    display: none;
  }
}

/* Responsive pour mobiles */
@media (max-width: 480px) {
  .feast-search-section {
    padding: 2rem 0;
  }

  .feast-filter-buttons {
    gap: 0.375rem;
  }

  .feast-filter-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .feast-table th,
  .feast-table td {
    padding: 0.5rem 0.375rem;
    font-size: 0.75rem;
  }

  .feast-type {
    font-size: 0.7rem;
  }
}

/* ============================================
   MODE SOMBRE POUR LE TABLEAU DES FÊTES
   ============================================ */

:root.theme-dark .feast-search-section {
  background: var(--bg-main, #1a1a1a) !important;
}

:root.theme-dark .feast-search-section .feast-search-header h2 {
  color: var(--primary-color, #8b4513) !important;
}

:root.theme-dark .feast-search-section .feast-search-subtitle {
  color: var(--text-secondary, #999) !important;
}

:root.theme-dark .feast-search-section .feast-search-controls {
  background: var(--bg-light, #2a2a2a) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

:root.theme-dark .feast-search-section .feast-search-input {
  background: var(--bg-main, #1a1a1a) !important;
  color: var(--text-main, #e5e5e5) !important;
  border-color: var(--primary-accent, #5a3a1a) !important;
}

:root.theme-dark .feast-search-section .feast-search-input::placeholder {
  color: var(--text-secondary, #999) !important;
}

:root.theme-dark .feast-search-section .feast-search-input:focus {
  border-color: var(--primary-color, #8b4513) !important;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.2) !important;
}

:root.theme-dark .feast-search-section .feast-filter-btn {
  background: var(--bg-main, #1a1a1a) !important;
  color: var(--text-main, #e5e5e5) !important;
  border-color: var(--primary-accent, #5a3a1a) !important;
}

:root.theme-dark .feast-search-section .feast-filter-btn:hover {
  background: var(--primary-accent, #5a3a1a) !important;
}

:root.theme-dark .feast-search-section .feast-filter-btn.active {
  background: var(--primary-color, #8b4513) !important;
  color: white !important;
}

:root.theme-dark .feast-search-section .feast-table-container {
  background: var(--bg-light, #2a2a2a) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

:root.theme-dark .feast-search-section .feast-table thead {
  background: var(--primary-color, #8b4513) !important;
}

:root.theme-dark .feast-search-section .feast-table th {
  border-bottom-color: var(--primary-light, #a0552f) !important;
  border-right-color: rgba(255, 255, 255, 0.1) !important;
}

:root.theme-dark .feast-search-section .feast-table tbody tr {
  border-bottom-color: var(--primary-accent, #5a3a1a) !important;
}

:root.theme-dark .feast-search-section .feast-table tbody tr:hover {
  background: var(--bg-main, #1a1a1a) !important;
}

:root.theme-dark .feast-search-section .feast-table td {
  border-right-color: var(--primary-accent, #5a3a1a) !important;
}

:root.theme-dark .feast-search-section .feast-table .feast-date {
  color: var(--primary-color, #a0552f) !important;
}

:root.theme-dark .feast-search-section .feast-table .feast-name {
  color: var(--text-main, #e5e5e5) !important;
}

:root.theme-dark .feast-search-section .feast-table .feast-latin {
  color: var(--text-secondary, #999) !important;
}

:root.theme-dark .feast-search-section .feast-table .feast-type {
  color: var(--text-secondary, #999) !important;
}

:root.theme-dark .feast-search-section .feast-table .no-results {
  color: var(--text-secondary, #999) !important;
}

:root.theme-dark .feast-search-section .feast-mobile-note {
  background: var(--bg-light, #2a2a2a) !important;
  border-top-color: var(--primary-accent, #5a3a1a) !important;
}

:root.theme-dark .feast-search-section .feast-mobile-note p {
  color: var(--text-secondary, #999) !important;
}

:root.theme-dark .feast-search-section .mobile-feast-year-selector label {
  color: var(--text-main, #e5e5e5) !important;
}

:root.theme-dark .feast-search-section .year-input-small {
  background: var(--bg-main, #1a1a1a) !important;
  color: var(--text-main, #e5e5e5) !important;
  border-color: var(--primary-accent, #5a3a1a) !important;
}

:root.theme-dark .feast-search-section .calculate-btn {
  background: var(--primary-color, #8b4513) !important;
}

:root.theme-dark .feast-search-section .calculate-btn:hover {
  background: var(--primary-light, #a0552f) !important;
}
