/* Ember & Oak Coffee Co. - Custom Styles */

/* CSS Custom Properties (Brand Colors) */
:root {
  --primary: #6B7B6E;     /* muted sage green */
  --secondary: #9E8F7A;   /* warmer, earthier sand/taupe */
  --accent: #8F6B5A;      /* deeper, more mature terracotta */
  --light: #F7F5F2;       /* soft cream */
  --dark: #3D3D3B;        /* charcoal earth */
  --success: #5D7B56;     /* deeper muted sage */
  --danger: #9A5E53;      /* deeper dusty rose */
  --warning: #AF8E6E;     /* softer muted gold */
  --info: #6B8F82;        /* slightly deeper soft teal */
  
  /* Typography */
  --font-family-serif: 'Georgia', serif;
  --font-family-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --section-padding: 4rem 0;
  --card-border-radius: 0.75rem;
  --transition-base: all 0.3s ease;
}

/* Global Styles */
body {
  font-family: var(--font-family-sans);
  color: var(--dark);
  background-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
  color: var(--primary);
  font-weight: 600;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: var(--transition-base);
}

/* Earth-Tone Utility Classes for Password Strength */
.earth-dusty-rose { color: var(--danger) !important; }
.earth-muted-gold { color: var(--warning) !important; }
.earth-sand-taupe { color: var(--secondary) !important; }
.earth-muted-sage { color: var(--success) !important; }

.skip-to-content:focus {
  top: 6px;
}

/* Custom Bootstrap Button Styles */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  transition: var(--transition-base);
  box-shadow: 0 2px 4px rgba(90, 106, 93, 0.2); /* Subtle initial depth */
}

.btn-primary:hover {
  background-color: #5A6A5D; /* Sage green with subtle dark tone */
  border-color: #5A6A5D;
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(90, 106, 93, 0.4); /* Soft earth-tone shadow */
  color: white;
}

.btn-primary:focus {
  background-color: #5A6A5D;
  border-color: #5A6A5D;
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(90, 106, 93, 0.25), 
    0 6px 16px rgba(90, 106, 93, 0.3);
}

.btn-secondary {
  background-color: #C4B7A6; /* Sand/taupe color */
  border-color: #C4B7A6;
  color: var(--dark);
  transition: var(--transition-base);
  box-shadow: 0 2px 4px rgba(176, 163, 147, 0.2); /* Subtle initial depth */
}

.btn-secondary:hover {
  background-color: #B0A393; /* Slightly darker sand/taupe */
  border-color: #B0A393;
  color: var(--dark);
  transform: scale(1.02);
  box-shadow: 
    0 6px 16px rgba(176, 163, 147, 0.4), 
    0 2px 4px rgba(176, 163, 147, 0.2);
}

.btn-secondary:focus {
  background-color: #B0A393;
  border-color: #B0A393;
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(176, 163, 147, 0.25), 
    0 6px 16px rgba(176, 163, 147, 0.3);
}

/* Button Outline Variants */
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  transition: var(--transition-base);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 
    0 4px 12px rgba(90, 106, 93, 0.3), 
    0 0 0 1px rgba(90, 106, 93, 0.1);
}

.btn-outline-primary:focus {
  box-shadow: 
    0 0 0 3px rgba(90, 106, 93, 0.25), 
    0 4px 12px rgba(90, 106, 93, 0.3);
  outline: none;
}

.btn-outline-secondary {
  border-color: var(--secondary);
  color: var(--dark);
  transition: var(--transition-base);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--dark);
  box-shadow: 
    0 4px 12px rgba(176, 163, 147, 0.3), 
    0 0 0 1px rgba(176, 163, 147, 0.1);
}

.btn-outline-secondary:focus {
  box-shadow: 
    0 0 0 3px rgba(176, 163, 147, 0.25), 
    0 4px 12px rgba(176, 163, 147, 0.3);
  outline: none;
}

/* ========================================
   Link Styles - Earth-Tone Palette
   ======================================== */

/* Base link styling with muted terracotta accent
   Contrast ratio: #A67F6D on #F7F5F2 = ~4.6:1 (passes WCAG AA) */
a:link {
  color: var(--accent);  /* #A67F6D - muted terracotta */
  text-decoration: none;
  transition: var(--transition-base);
}

a:visited {
  color: #9A7363;  /* Slightly muted version for visited links */
  text-decoration: none;
}

/* Hover and focus states with darker terracotta
   Contrast ratio: #8F6B5A on #F7F5F2 = ~5.8:1 (passes WCAG AA) */
a:hover {
  color: #8F6B5A;  /* Darker terracotta for hover emphasis */
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus {
  color: #8F6B5A;
  text-decoration: underline;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Active link state */
a:active {
  color: #7A5C4D;  /* Even darker for click feedback */
}

/* Ensure navigation links don't inherit these base styles */
.navbar-nav .nav-link,
.navbar-brand,
.btn,
.skip-to-content {
  text-decoration: none;
}

/* ========================================
   Text Utility Classes
   ======================================== */

/* Primary accent text - terracotta */
.text-accent {
  color: var(--accent) !important;  /* #A67F6D */
}

/* Dark accent for emphasis */
.text-accent-dark {
  color: #8F6B5A !important;
}

/* Earth palette text utilities */
.text-sage {
  color: var(--primary) !important;  /* #6B7B6E */
}

.text-sand {
  color: var(--secondary) !important;  /* #C4B7A6 */
}

.text-charcoal {
  color: var(--dark) !important;  /* #3D3D3B */
}

.text-cream {
  color: var(--light) !important;  /* #F7F5F2 */
}

/* Muted text for secondary content */
.text-muted-earth {
  color: #7A7A78;  /* Softer charcoal */
}

/* Navigation Styles */
.navbar-brand {
  font-family: var(--font-family-serif);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary) !important;
}

.navbar-nav .nav-link {
  color: var(--primary) !important;
  font-weight: 500;
  transition: var(--transition-base);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--accent) !important;
}

.navbar-nav .nav-link.active {
  color: var(--accent) !important;
  font-weight: 600;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

/* Hero Section Styles */
.hero-section {
  background: linear-gradient(135deg, rgba(109, 123, 110, 0.8), rgba(61, 61, 59, 0.9)),
              url('https://placehold.co/1920x800/6B7B6E/FFFFFF?text=Sage+Earth+Background');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--light);  /* Use soft cream for text */
  padding: 8rem 0;
  text-align: center;
  position: relative;
  border-bottom: 4px solid var(--accent);  /* Adds a subtle earth-tone accent border */
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Card Styles */
.card {
  border-radius: var(--card-border-radius);
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition-base);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  transition: var(--transition-base);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-title {
  color: var(--primary);
  font-weight: 600;
}

/* Product Card Specific Styles */
.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .btn {
  margin-top: auto;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.roast-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Admin Dashboard Styles */
.admin-stats-card {
  border: none;
  border-radius: var(--card-border-radius);
  transition: var(--transition-base);
}

.admin-stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.table td {
  vertical-align: middle;
}

.btn-group-sm > .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Account Dashboard Styles */
.account-sidebar .list-group-item {
  border: none;
  border-radius: 0;
  transition: var(--transition-base);
}

.account-sidebar .list-group-item:hover {
  background-color: var(--light);
  padding-left: 1.25rem;
}

.account-sidebar .list-group-item.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.account-sidebar .list-group-item.active:hover {
  background-color: var(--dark);
}

/* Tab Content Styles */
.tab-content {
  border: none;
  background: transparent;
}

.tab-pane {
  animation: fadeIn 0.3s ease-in;
}

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

/* Flash Messages */
.flash-messages {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1050;
  max-width: 400px;
}

.flash-messages .alert {
  animation: slideInRight 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Auto-dismiss flash messages after 5 seconds */
.flash-messages .alert {
  animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-in 4.7s forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateX(100%); }
}

/* Form Validation States */
.form-control.is-valid {
  border-color: var(--success);
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Password Strength Indicator */
.password-strength {
  height: 4px;
  border-radius: 2px;
  background-color: #e9ecef;
  margin-top: 0.25rem;
  overflow: hidden;
}

.password-strength .strength-bar {
  height: 100%;
  transition: var(--transition-base);
  border-radius: 2px;
}

.strength-weak { background-color: var(--danger); width: 25%; }
.strength-fair { background-color: var(--warning); width: 50%; }
.strength-good { background-color: var(--info); width: 75%; }
.strength-strong { background-color: var(--success); width: 100%; }

/* Loading States */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-right-color: transparent;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
  .flash-messages {
    top: 70px;
    left: 10px;
    right: 10px;
    max-width: none;
  }
  
  .admin-stats-card .display-4 {
    font-size: 2rem;
  }
  
  .account-sidebar .list-group-item {
    text-align: center;
  }
  
  .table-responsive {
    border: none;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .card,
  .btn,
  .nav-link,
  .alert,
  .tab-pane {
    transition: none;
    animation: none;
  }
  
  .card:hover {
    transform: none;
  }
}

/* Focus States for Keyboard Navigation */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.2rem rgba(44, 24, 16, 0.25);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary: #000000;
    --secondary: #666666;
    --light: #ffffff;
    --dark: #000000;
  }
  
  .card {
    border: 2px solid #000000;
  }
  
  .btn {
    border-width: 2px;
  }
}
}

/* Timeline Styles (About Page) */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 50%;
  padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50%;
  padding-left: 2rem;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border: 3px solid var(--light);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: var(--card-border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -20px;
  border-left-color: white;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -20px;
  border-right-color: white;
}

.timeline-content h4 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-content h5 {
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    text-align: left !important;
    padding-left: 3rem;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .timeline-marker {
    left: 20px;
  }
  
  .timeline-content::before {
    left: -20px !important;
    right: auto !important;
    border-right-color: white !important;
    border-left-color: transparent !important;
  }
}

/* Parallax Section */
.parallax-section {
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.9), rgba(26, 15, 10, 0.8)),
              url('https://placehold.co/1920x600/2C1810/FFFFFF?text=Coffee+Background');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

/* Values Section */
.values-section {
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(139, 69, 19, 0.9)),
              url('https://placehold.co/1920x600/8B4513/FFFFFF?text=Coffee+Values+Background');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

/* Team Cards */
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Featured Post Styles */
.featured-post .card-img-top {
  height: clamp(250px, 40vh, 400px);
  object-fit: cover;
}

.featured-post:hover {
  transform: translateY(-2px);
}

/* Blog Card Styles */
.blog-card {
  transition: var(--transition-base);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card .card-img-top {
  height: clamp(150px, 25vh, 200px);
  object-fit: cover;
  transition: var(--transition-base);
}

.blog-card:hover .card-img-top {
  transform: scale(1.03);
}

/* Article Content Styles */
.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--dark);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--light);
  font-style: italic;
  font-size: 1.125rem;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Contact Form Styles */
.contact-form-fields .form-control,
.contact-form-fields .form-select {
  border-radius: 0.5rem;
  border: 2px solid #e9ecef;
  transition: var(--transition-base);
}

.contact-form-fields .form-control:focus,
.contact-form-fields .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(44, 24, 16, 0.25);
}

.contact-form-fields .form-control.is-valid,
.contact-form-fields .form-select.is-valid {
  border-color: var(--success);
}

.contact-form-fields .form-control.is-invalid,
.contact-form-fields .form-select.is-invalid {
  border-color: var(--danger);
}

/* Map Styles */
.map-placeholder,
.map-embed {
  border-radius: var(--card-border-radius);
  overflow: hidden;
}

/* Product Gallery Styles */
.product-gallery .main-image img {
  width: 100%;
  height: clamp(300px, 50vh, 500px);
  object-fit: cover;
}

.thumbnail-images .thumbnail-img {
  height: clamp(60px, 8vw, 80px);
  object-fit: cover;
  border: 2px solid transparent;
  transition: var(--transition-base);
}

.thumbnail-images .thumbnail-img:hover,
.thumbnail-images .thumbnail-img.active {
  border-color: var(--primary);
  opacity: 1 !important;
}

/* Password Strength Meter */
.password-strength-meter {
  height: 4px;
  background-color: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.password-strength-bar.weak {
  width: 25%;
  background-color: var(--danger);
}

.password-strength-bar.fair {
  width: 50%;
  background-color: var(--warning);
}

.password-strength-bar.good {
  width: 75%;
  background-color: var(--info);
}

.password-strength-bar.strong {
  width: 100%;
  background-color: var(--success);
}

/* Flash Messages */
.flash-message {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1050;
  max-width: min(400px, calc(100vw - 40px));
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Accordion Customizations */
.accordion-button:not(.collapsed) {
  background-color: var(--primary);
  color: white;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

/* Responsive Design Utilities */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 4rem 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .product-gallery .main-image img {
    height: 300px;
  }
  
  .thumbnail-images .thumbnail-img {
    height: 60px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .card-footer,
  .social-sharing,
  .comments-section {
    display: none !important;
  }
  
  .article-content {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .card {
    border: 1px solid #000;
    box-shadow: none;
  }
}
}

.roast-light {
  background-color: #f8f9fa;
  color: var(--primary);
}

.roast-medium {
  background-color: var(--secondary);
  color: var(--primary);
}

.roast-dark {
  background-color: var(--primary);
  color: white;
}

/* Timeline Styles (for About page) */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--secondary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin: 2rem 0;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  margin-left: 0;
  text-align: right;
  padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 0;
  text-align: left;
  padding-left: 2rem;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: var(--card-border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 45%;
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 3px solid white;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-year {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Form Styles */
.form-control {
  border-radius: 0.5rem;
  border: 2px solid #e9ecef;
  transition: var(--transition-base);
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

.form-control.is-valid {
  border-color: var(--success);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 2.94 2.94L7.83 7.12 8.77 8.06 5.23 11.6z'/%3e%3c/svg%3e");
}

.form-control.is-invalid {
  border-color: var(--danger);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.5 5.5l1 1m0-1l-1 1'/%3e%3c/svg%3e");
}

/* Password Strength Meter */
.password-strength {
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.password-strength.weak .password-strength-bar {
  width: 25%;
  background: var(--danger);
}

.password-strength.fair .password-strength-bar {
  width: 50%;
  background: var(--warning);
}

.password-strength.good .password-strength-bar {
  width: 75%;
  background: var(--info);
}

.password-strength.strong .password-strength-bar {
  width: 100%;
  background: var(--success);
}

/* Flash Messages */
.flash-messages {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  min-width: 300px;
}

.flash-message {
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
}

.flash-message.success {
  background-color: var(--success);
  border-color: var(--success);
  color: white;
}

.flash-message.error {
  background-color: var(--danger);
  border-color: var(--danger);
  color: white;
}

.flash-message.info {
  background-color: var(--info);
  border-color: var(--info);
  color: white;
}

.flash-message.warning {
  background-color: var(--warning);
  border-color: var(--warning);
  color: var(--dark);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Filter Styles (Products page) */
.filter-section {
  background: white;
  border-radius: var(--card-border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  position: sticky;
  top: 20px;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group h6 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-check-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

/* Admin Panel Styles */
.admin-stats .card {
  border-left: 4px solid;
  background: linear-gradient(135deg, white, #f8f9fa);
}

.admin-stats .card:nth-child(1) {
  border-left-color: var(--info);
}

.admin-stats .card:nth-child(2) {
  border-left-color: var(--success);
}

.admin-stats .card:nth-child(3) {
  border-left-color: var(--warning);
}

.admin-stats .card:nth-child(4) {
  border-left-color: var(--primary);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.table-hover tbody tr:hover {
  background-color: rgba(212, 165, 116, 0.1);
}

/* Footer Styles */
footer {
  background: var(--primary);
  color: white;
  margin-top: 4rem;
}

footer h5 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-base);
}

footer a:hover {
  color: var(--secondary);
}

.footer-social {
  font-size: 1.5rem;
}

.footer-social a {
  margin: 0 0.5rem;
  transition: var(--transition-base);
}

.footer-social a:hover {
  transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin-right: 0 !important;
    text-align: left !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .timeline-marker {
    left: 20px;
    transform: translateX(-50%);
  }
  
  .hero-section {
    padding: 4rem 0;
    background-attachment: scroll;
  }
  
  .filter-section {
    position: static;
    margin-bottom: 1rem;
  }
  
  .flash-messages {
    left: 20px;
    right: 20px;
    min-width: auto;
  }
}

@media (max-width: 576px) {
  :root {
    --section-padding: 2rem 0;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn:last-child {
    margin-bottom: 0;
  }
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-section {
    background-attachment: scroll;
  }
  
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* Print styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* =====================================================
   CONTRAST FIXES - Accessibility Improvements
   Ensures WCAG AA compliance (4.5:1 for normal text)
   ===================================================== */

/* Warning Flash Messages - dark text on yellow needs to be very dark */
.flash-message.warning {
  background-color: #ffc107;
  border-color: #e0a800;
  color: #1a1a1a; /* Near black for maximum contrast on yellow */
}

.flash-message.warning .btn-close {
  filter: none; /* Ensure close button is visible */
}

/* Bootstrap Alert Overrides for better contrast */
.alert-warning {
  background-color: #fff3cd;
  border-color: #e0a800;
  color: #1a1a1a; /* Dark text on light yellow */
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #17a2b8;
  color: #0c5460; /* Dark teal text on light blue */
}

/* Roast Badges - ensure text is readable */
.roast-light {
  background-color: #f8f9fa;
  color: #1a1a1a; /* Dark text on light background */
  border: 1px solid #dee2e6;
}

.roast-medium {
  background-color: #c4956a; /* Slightly darker caramel */
  color: #1a1a1a; /* Dark text for contrast */
}

.roast-dark {
  background-color: var(--primary);
  color: #ffffff; /* White text on dark background */
}

/* Stat Icons - fix white on yellow issue */
.stat-icon.bg-warning {
  background-color: #e0a800 !important; /* Darker yellow */
  color: #1a1a1a !important; /* Dark text instead of white */
}

/* Timeline year badge - ensure readable */
.timeline-year {
  background: var(--primary);
  color: #ffffff;
}

/* Password strength meter text indicators */
.password-strength-text {
  font-size: 0.75rem;
  font-weight: 600;
}

.password-strength-text.weak {
  color: #b02a37; /* Darker red */
}

.password-strength-text.fair {
  color: #997404; /* Darker yellow/gold */
}

.password-strength-text.good {
  color: #0a6ebd; /* Darker blue */
}

.password-strength-text.strong {
  color: #146c43; /* Darker green */
}

/* Form placeholder text - ensure readable */
.form-control::placeholder {
  color: #6c757d; /* Medium gray, meets contrast requirements */
  opacity: 1;
}

/* Muted text improvements */
.text-muted {
  color: #5a6268 !important; /* Darker gray for better readability */
}

/* Secondary button - ensure text is readable on hover */
.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: #1a1a1a; /* Dark text on caramel */
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #8B4513; /* Saddle brown */
  border-color: #8B4513;
  color: #ffffff; /* White text on dark */
}

/* Disabled button states */
.btn:disabled,
.btn.disabled {
  opacity: 0.65;
}

.btn-secondary:disabled,
.btn-secondary.disabled {
  background-color: #d4a574;
  border-color: #d4a574;
  color: #4a4a4a; /* Ensure disabled state is readable */
}

/* Toast notifications */
.toast.warning,
.toast.bg-warning {
  background-color: #fff3cd !important;
  color: #1a1a1a !important;
}

.toast.info,
.toast.bg-info {
  background-color: #d1ecf1 !important;
  color: #0c5460 !important;
}

/* Badge contrast fixes */
.badge.bg-warning {
  background-color: #e0a800 !important;
  color: #1a1a1a !important;
}

.badge.bg-info {
  background-color: #17a2b8 !important;
  color: #ffffff !important;
}

.badge.bg-light {
  background-color: #f8f9fa !important;
  color: #1a1a1a !important;
  border: 1px solid #dee2e6;
}

.badge.bg-secondary {
  background-color: #6c757d !important;
  color: #ffffff !important;
}

/* Table text on striped rows */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  color: #1a1a1a;
}

/* Card text on various backgrounds */
.card.bg-light {
  color: #1a1a1a;
}

.card.bg-warning {
  background-color: #fff3cd !important;
  color: #1a1a1a !important;
}

.card.bg-info {
  background-color: #d1ecf1 !important;
  color: #0c5460 !important;
}

/* Admin stats card text */
.admin-stats .card {
  color: #1a1a1a; /* Ensure dark text on gradient backgrounds */
}

.admin-stats .card .display-4,
.admin-stats .card h5,
.admin-stats .card p {
  color: #1a1a1a;
}

/* Links on dark backgrounds */
.bg-dark a:not(.btn),
footer a:not(.btn) {
  color: #d4a574; /* Caramel color for links on dark */
}

.bg-dark a:not(.btn):hover,
footer a:not(.btn):hover {
  color: #f5f1eb; /* Cream color on hover */
}

/* Hero section text - ensure high contrast */
.hero-section,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Parallax and values sections text */
.parallax-section,
.parallax-section h1,
.parallax-section h2,
.parallax-section h3,
.parallax-section p,
.values-section,
.values-section h1,
.values-section h2,
.values-section h3,
.values-section p {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Input group text */
.input-group-text {
  background-color: #e9ecef;
  color: #1a1a1a;
  border-color: #ced4da;
}

/* List group items */
.list-group-item {
  color: #1a1a1a;
  background-color: #ffffff;
}

.list-group-item.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.list-group-item.disabled {
  color: #5a6268;
  background-color: #f8f9fa;
}

/* Dropdown items */
.dropdown-item {
  color: #1a1a1a;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8f9fa;
  color: #1a1a1a;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--primary);
  color: #ffffff;
}

/* Accordion fixes */
.accordion-button {
  color: #1a1a1a;
  background-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
  color: #ffffff;
  background-color: var(--primary);
}

/* Breadcrumb */
.breadcrumb-item a {
  color: var(--accent);
}

.breadcrumb-item.active {
  color: #5a6268;
}

/* Pagination */
.page-link {
  color: var(--primary);
}

.page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.page-item.disabled .page-link {
  color: #6c757d;
  background-color: #ffffff;
}

/* =====================================================
   CONTRAST FIXES - Accessibility Improvements
   Ensures WCAG AA compliance (4.5:1 for normal text)
   ===================================================== */

/* Warning Flash Messages - dark text on yellow needs to be very dark */
.flash-message.warning {
  background-color: #ffc107;
  border-color: #e0a800;
  color: #1a1a1a; /* Near black for maximum contrast on yellow */
}

.flash-message.warning .btn-close {
  filter: none; /* Ensure close button is visible */
}

/* Bootstrap Alert Overrides for better contrast */
.alert-warning {
  background-color: #fff3cd;
  border-color: #e0a800;
  color: #1a1a1a; /* Dark text on light yellow */
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #17a2b8;
  color: #0c5460; /* Dark teal text on light blue */
}

/* Roast Badges - ensure text is readable */
.roast-light {
  background-color: #f8f9fa;
  color: #1a1a1a; /* Dark text on light background */
  border: 1px solid #dee2e6;
}

.roast-medium {
  background-color: #c4956a; /* Slightly darker caramel */
  color: #1a1a1a; /* Dark text for contrast */
}

.roast-dark {
  background-color: var(--primary);
  color: #ffffff; /* White text on dark background */
}

/* Stat Icons - fix white on yellow issue */
.stat-icon.bg-warning {
  background-color: #e0a800 !important; /* Darker yellow */
  color: #1a1a1a !important; /* Dark text instead of white */
}

/* Timeline year badge - ensure readable */
.timeline-year {
  background: var(--primary);
  color: #ffffff;
}

/* Password strength meter text indicators */
.password-strength-text {
  font-size: 0.75rem;
  font-weight: 600;
}

.password-strength-text.weak {
  color: #b02a37; /* Darker red */
}

.password-strength-text.fair {
  color: #997404; /* Darker yellow/gold */
}

.password-strength-text.good {
  color: #0a6ebd; /* Darker blue */
}

.password-strength-text.strong {
  color: #146c43; /* Darker green */
}

/* Form placeholder text - ensure readable */
.form-control::placeholder {
  color: #6c757d; /* Medium gray, meets contrast requirements */
  opacity: 1;
}

/* Muted text improvements */
.text-muted {
  color: #5a6268 !important; /* Darker gray for better readability */
}

/* Secondary button - ensure text is readable on hover */
.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: #1a1a1a; /* Dark text on caramel */
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #8B4513; /* Saddle brown */
  border-color: #8B4513;
  color: #ffffff; /* White text on dark */
}

/* Disabled button states */
.btn:disabled,
.btn.disabled {
  opacity: 0.65;
}

.btn-secondary:disabled,
.btn-secondary.disabled {
  background-color: #d4a574;
  border-color: #d4a574;
  color: #4a4a4a; /* Ensure disabled state is readable */
}

/* Toast notifications */
.toast.warning,
.toast.bg-warning {
  background-color: #fff3cd !important;
  color: #1a1a1a !important;
}

.toast.info,
.toast.bg-info {
  background-color: #d1ecf1 !important;
  color: #0c5460 !important;
}

/* Badge contrast fixes */
.badge.bg-warning {
  background-color: #e0a800 !important;
  color: #1a1a1a !important;
}

.badge.bg-info {
  background-color: #17a2b8 !important;
  color: #ffffff !important;
}

.badge.bg-light {
  background-color: #f8f9fa !important;
  color: #1a1a1a !important;
  border: 1px solid #dee2e6;
}

.badge.bg-secondary {
  background-color: #6c757d !important;
  color: #ffffff !important;
}

/* Table text on striped rows */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  color: #1a1a1a;
}

/* Card text on various backgrounds */
.card.bg-light {
  color: #1a1a1a;
}

.card.bg-warning {
  background-color: #fff3cd !important;
  color: #1a1a1a !important;
}

.card.bg-info {
  background-color: #d1ecf1 !important;
  color: #0c5460 !important;
}

/* Admin stats card text */
.admin-stats .card {
  color: #1a1a1a; /* Ensure dark text on gradient backgrounds */
}

.admin-stats .card .display-4,
.admin-stats .card h5,
.admin-stats .card p {
  color: #1a1a1a;
}

/* Links on dark backgrounds */
.bg-dark a:not(.btn),
footer a:not(.btn) {
  color: #d4a574; /* Caramel color for links on dark */
}

.bg-dark a:not(.btn):hover,
footer a:not(.btn):hover {
  color: #f5f1eb; /* Cream color on hover */
}

/* Hero section text - ensure high contrast */
.hero-section,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Parallax and values sections text */
.parallax-section,
.parallax-section h1,
.parallax-section h2,
.parallax-section h3,
.parallax-section p,
.values-section,
.values-section h1,
.values-section h2,
.values-section h3,
.values-section p {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Input group text */
.input-group-text {
  background-color: #e9ecef;
  color: #1a1a1a;
  border-color: #ced4da;
}

/* List group items */
.list-group-item {
  color: #1a1a1a;
  background-color: #ffffff;
}

.list-group-item.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.list-group-item.disabled {
  color: #5a6268;
  background-color: #f8f9fa;
}

/* Dropdown items */
.dropdown-item {
  color: #1a1a1a;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8f9fa;
  color: #1a1a1a;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--primary);
  color: #ffffff;
}

/* Accordion fixes */
.accordion-button {
  color: #1a1a1a;
  background-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
  color: #ffffff;
  background-color: var(--primary);
}

/* Breadcrumb */
.breadcrumb-item a {
  color: var(--accent);
}

.breadcrumb-item.active {
  color: #5a6268;
}

/* Pagination */
.page-link {
  color: var(--primary);
}

.page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.page-item.disabled .page-link {
  color: #6c757d;
  background-color: #ffffff;
}

/* test marker append */


/* =====================================================
   CONTRAST FIXES - Accessibility Improvements
   Ensures WCAG AA compliance (4.5:1 for normal text)
   ===================================================== */

/* Warning Flash Messages - dark text on yellow needs to be very dark */
.flash-message.warning {
  background-color: #ffc107;
  border-color: #e0a800;
  color: #1a1a1a; /* Near black for maximum contrast on yellow */
}

.flash-message.warning .btn-close {
  filter: none; /* Ensure close button is visible */
}

/* Bootstrap Alert Overrides for better contrast */
.alert-warning {
  background-color: #fff3cd;
  border-color: #e0a800;
  color: #1a1a1a; /* Dark text on light yellow */
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #17a2b8;
  color: #0c5460; /* Dark teal text on light blue */
}

/* Roast Badges - ensure text is readable */
.roast-light {
  background-color: #f8f9fa;
  color: #1a1a1a; /* Dark text on light background */
  border: 1px solid #dee2e6;
}

.roast-medium {
  background-color: #c4956a; /* Slightly darker caramel */
  color: #1a1a1a; /* Dark text for contrast */
}

.roast-dark {
  background-color: var(--primary);
  color: #ffffff; /* White text on dark background */
}

/* Stat Icons - fix white on yellow issue */
.stat-icon.bg-warning {
  background-color: #e0a800 !important; /* Darker yellow */
  color: #1a1a1a !important; /* Dark text instead of white */
}

/* Timeline year badge - ensure readable */
.timeline-year {
  background: var(--primary);
  color: #ffffff;
}

/* Password strength meter text indicators */
.password-strength-text {
  font-size: 0.75rem;
  font-weight: 600;
}

.password-strength-text.weak {
  color: #b02a37; /* Darker red */
}

.password-strength-text.fair {
  color: #997404; /* Darker yellow/gold */
}

.password-strength-text.good {
  color: #0a6ebd; /* Darker blue */
}

.password-strength-text.strong {
  color: #146c43; /* Darker green */
}

/* Form placeholder text - ensure readable */
.form-control::placeholder {
  color: #6c757d; /* Medium gray, meets contrast requirements */
  opacity: 1;
}

/* Muted text improvements */
.text-muted {
  color: #5a6268 !important; /* Darker gray for better readability */
}

/* Secondary button - ensure text is readable on hover */
.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: #1a1a1a; /* Dark text on caramel */
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #8B4513; /* Saddle brown */
  border-color: #8B4513;
  color: #ffffff; /* White text on dark */
}

/* Disabled button states */
.btn:disabled,
.btn.disabled {
  opacity: 0.65;
}

.btn-secondary:disabled,
.btn-secondary.disabled {
  background-color: #d4a574;
  border-color: #d4a574;
  color: #4a4a4a; /* Ensure disabled state is readable */
}

/* Toast notifications */
.toast.warning,
.toast.bg-warning {
  background-color: #fff3cd !important;
  color: #1a1a1a !important;
}

.toast.info,
.toast.bg-info {
  background-color: #d1ecf1 !important;
  color: #0c5460 !important;
}

/* Badge contrast fixes */
.badge.bg-warning {
  background-color: #e0a800 !important;
  color: #1a1a1a !important;
}

.badge.bg-info {
  background-color: #17a2b8 !important;
  color: #ffffff !important;
}

.badge.bg-light {
  background-color: #f8f9fa !important;
  color: #1a1a1a !important;
  border: 1px solid #dee2e6;
}

.badge.bg-secondary {
  background-color: #6c757d !important;
  color: #ffffff !important;
}

/* Table text on striped rows */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  color: #1a1a1a;
}

/* Card text on various backgrounds */
.card.bg-light {
  color: #1a1a1a;
}

.card.bg-warning {
  background-color: #fff3cd !important;
  color: #1a1a1a !important;
}

.card.bg-info {
  background-color: #d1ecf1 !important;
  color: #0c5460 !important;
}

/* Admin stats card text */
.admin-stats .card {
  color: #1a1a1a; /* Ensure dark text on gradient backgrounds */
}

.admin-stats .card .display-4,
.admin-stats .card h5,
.admin-stats .card p {
  color: #1a1a1a;
}

/* Links on dark backgrounds */
.bg-dark a:not(.btn),
footer a:not(.btn) {
  color: #d4a574; /* Caramel color for links on dark */
}

.bg-dark a:not(.btn):hover,
footer a:not(.btn):hover {
  color: #f5f1eb; /* Cream color on hover */
}

/* Hero section text - ensure high contrast */
.hero-section,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Parallax and values sections text */
.parallax-section,
.parallax-section h1,
.parallax-section h2,
.parallax-section h3,
.parallax-section p,
.values-section,
.values-section h1,
.values-section h2,
.values-section h3,
.values-section p {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Input group text */
.input-group-text {
  background-color: #e9ecef;
  color: #1a1a1a;
  border-color: #ced4da;
}

/* List group items */
.list-group-item {
  color: #1a1a1a;
  background-color: #ffffff;
}

.list-group-item.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.list-group-item.disabled {
  color: #5a6268;
  background-color: #f8f9fa;
}

/* Dropdown items */
.dropdown-item {
  color: #1a1a1a;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8f9fa;
  color: #1a1a1a;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--primary);
  color: #ffffff;
}

/* Accordion fixes */
.accordion-button {
  color: #1a1a1a;
  background-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
  color: #ffffff;
  background-color: var(--primary);
}

/* Breadcrumb */
.breadcrumb-item a {
  color: var(--accent);
}

.breadcrumb-item.active {
  color: #5a6268;
}

/* Pagination */
.page-link {
  color: var(--primary);
}

.page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.page-item.disabled .page-link {
  color: #6c757d;
  background-color: #ffffff;
}
