/* Modern Crypto Web Application Styles - Orange Theme */

/* Price Ticker Styles - Orange Theme (Enhanced) */
.price-ticker-container {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border-bottom: 2px solid #fed7aa;
    height: 70px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.live-indicator {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(249 115 22 / 0.2), 0 2px 4px -2px rgb(249 115 22 / 0.2);
    overflow: hidden;
}

.live-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 4px rgba(255, 255, 255, 1);
}

.live-text {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.price-ticker {
    flex: 1;
    overflow: hidden;
    margin-left: 140px;
    margin-right: 20px;
    position: relative;
}

.price-ticker::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, rgba(255, 247, 237, 0.8), rgba(255, 247, 237, 0));
    z-index: 5;
    pointer-events: none;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
    height: 100%;
    transform: translateX(100%);
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    border: 1.5px solid #fed7aa;
    min-width: 200px;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 250ms ease-in-out;
    position: relative;
    z-index: 2;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
}

.ticker-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #fb923c, #f97316);
    opacity: 0;
    transition: opacity 250ms ease-in-out;
}

.ticker-item:hover {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgb(249 115 22 / 0.1), 0 4px 6px -4px rgb(249 115 22 / 0.1);
    border-color: #fb923c;
}

.ticker-item:hover::before {
    opacity: 1;
}

.crypto-symbol {
    font-weight: 700;
    color: #ea580c;
    font-size: 1rem;
    letter-spacing: 0.025em;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

.crypto-price {
    font-weight: 600;
    color: #c2410c;
    font-size: 1rem;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

.crypto-change {
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    line-height: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.crypto-change.positive {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.crypto-change.negative {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(0.95);
    }
}

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

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.price-ticker:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    height: 100%;
    gap: 0.5rem;
}

.ticker-loading .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.1em;
}

/* Responsive ticker adjustments */
@media (max-width: 768px) {
    .price-ticker-container {
        height: 50px;
    }
    
    .live-indicator {
        left: 10px;
        padding: 0.2rem 0.5rem;
    }
    
    .live-text {
        font-size: 0.7rem;
    }
    
    .price-ticker {
        margin-left: 80px;
        margin-right: 10px;
    }
    
    .ticker-content {
        gap: 1.5rem;
    }
    
    .ticker-item {
        min-width: 140px;
        padding: 0.4rem 0.8rem;
    }
    
    .crypto-symbol {
        font-size: 0.8rem;
    }
    
    .crypto-price {
        font-size: 0.85rem;
    }
    
    .crypto-change {
        font-size: 0.75rem;
        padding: 0.15rem 0.4rem;
    }
}

:root {
  /* Orange Theme Colors */
  --primary-orange: #ea580c;
  --primary-orange-dark: #c2410c;
  --primary-orange-light: #fb923c;
  --secondary-orange: #fed7aa;
  --accent-orange: #f97316;
  
  /* Modern White & Orange Color Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ea580c 0%, #c2410c 50%, #9a3412 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --gradient-glass: linear-gradient(145deg, rgba(234, 88, 12, 0.05) 0%, rgba(234, 88, 12, 0.02) 100%);
  --gradient-hero: #f97316; /* Orange-500 solid color */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-orange: 0 10px 25px -5px rgba(234, 88, 12, 0.3);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Accessibility - Override Bootstrap text colors for dark theme */
.text-muted {
  color: var(--text-muted) !important;
}

.text-white-50 {
  color: var(--text-light) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-dark {
  color: var(--text-primary) !important;
}

/* Ensure all text has proper contrast */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary) !important;
}

p, span, div, small {
  color: inherit;
}

/* Table text colors */
.table {
  color: var(--text-primary) !important;
}

.table th {
  color: var(--text-secondary) !important;
}

.table td {
  color: var(--text-primary) !important;
}

/* Card text colors */
.card {
  color: var(--text-primary) !important;
}

.card-title {
  color: var(--text-primary) !important;
}

.card-text {
  color: var(--text-secondary) !important;
}

/* Modern Header */
.modern-header {
  background: var(--bg-primary);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.modern-header .navbar {
  padding: var(--space-md) 0;
}

.modern-header .navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-orange);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.modern-header .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modern-header .nav-link:hover {
  color: var(--primary-orange);
  background: var(--gradient-glass);
  transform: translateY(-1px);
}

.modern-header .nav-link.active {
  background: var(--gradient-glass);
  color: var(--primary-orange);
  box-shadow: var(--shadow-sm);
}

/* Modern Cards */
.modern-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: var(--text-primary) !important;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-orange);
}

/* Ensure all text in modern cards is visible */
.modern-card h1,
.modern-card h2,
.modern-card h3,
.modern-card h4,
.modern-card h5,
.modern-card h6 {
  color: var(--text-primary) !important;
}

.modern-card p {
  color: var(--text-secondary) !important;
}

.modern-card small {
  color: var(--text-muted) !important;
}

.modern-card span {
  color: inherit;
}

/* Crypto Stats Cards */
.crypto-stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.crypto-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.crypto-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
  border-color: var(--primary-orange);
}

.crypto-stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-orange);
  margin-bottom: var(--space-sm);
}

.crypto-stat-card .stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crypto-stat-card .stat-change {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: var(--space-sm);
}

.crypto-stat-card .stat-change.positive {
  color: var(--success);
}

.crypto-stat-card .stat-change.negative {
  color: var(--danger);
}

/* Modern Buttons */
.btn-modern {
  background: var(--gradient-primary);
  border: none;
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
  color: var(--text-primary);
}

.btn-modern:active {
  transform: translateY(0);
}

.btn-modern-outline {
  background: transparent;
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-modern-outline:hover {
  background: var(--primary-orange);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

/* Crypto Table */
.crypto-table {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  width: 100%;
}

.crypto-table .table {
  margin: 0;
  color: var(--text-primary);
  background: var(--bg-primary);
  font-size: 0.9rem;
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}

.crypto-table .table thead th {
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid var(--primary-orange);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.crypto-table .table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  background: var(--bg-primary);
  display: table-row;
}

.crypto-table .table tbody tr:nth-child(even) {
  background: var(--bg-secondary);
}

.crypto-table .table tbody tr:hover {
  background: var(--gradient-glass);
  transform: none;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.1);
}

.crypto-table .table tbody td {
  border: none;
  padding: 1rem 1.5rem;
  vertical-align: middle;
  color: var(--text-primary) !important;
  font-weight: 500;
  display: table-cell;
  white-space: nowrap;
}

/* Crypto Row - only for divs within table cells */
.crypto-table .crypto-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  white-space: nowrap;
}

.crypto-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.crypto-info h6 {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary) !important;
}

.crypto-info small {
  color: var(--text-muted) !important;
  font-size: 0.75rem;
}

/* Ensure table text is visible */
.crypto-table .table tbody td {
  color: var(--text-primary) !important;
}

.crypto-table .table tbody td.text-muted {
  color: var(--text-muted) !important;
}

.crypto-table .table tbody td small {
  color: var(--text-muted) !important;
}

/* Price display text */
.price-display {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary) !important;
}

/* Table specific styling improvements */
.crypto-table .table tbody tr td:first-child {
  color: var(--text-muted) !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  width: 60px;
}

.crypto-table .table tbody tr td h6 {
  color: var(--text-primary) !important;
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
}

.crypto-table .table tbody tr td .fw-semibold {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.crypto-table .table tbody tr td .fw-bold {
  color: var(--text-primary) !important;
  font-weight: 700;
}

/* Ensure proper table layout */
.crypto-table .table tbody tr {
  height: 60px;
}

.crypto-table .table tbody tr td {
  height: 60px;
  vertical-align: middle;
}

/* Table cell alignment and spacing */
.crypto-table .table tbody tr:last-child td {
  border-bottom: none;
}

/* Price column styling */
.crypto-table .table tbody tr td:nth-child(3) {
  text-align: right;
  font-family: 'Courier New', monospace;
}

/* Market cap and volume columns */
.crypto-table .table tbody tr td:nth-child(5),
.crypto-table .table tbody tr td:nth-child(6) {
  text-align: right;
  font-family: 'Courier New', monospace;
}

/* Change column styling */
.crypto-table .table tbody tr td:nth-child(4) {
  text-align: center;
}

/* 7-day chart column */
.crypto-table .table tbody tr td:nth-child(7) {
  text-align: center;
}

/* Table header alignment */
.crypto-table .table thead th:nth-child(3),
.crypto-table .table thead th:nth-child(4),
.crypto-table .table thead th:nth-child(5),
.crypto-table .table thead th:nth-child(6),
.crypto-table .table thead th:nth-child(7) {
  text-align: center;
}

.crypto-table .table thead th:nth-child(3) {
  text-align: right;
}

/* Stat card text */
.crypto-stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-orange) !important;
  margin-bottom: var(--space-sm);
}

.crypto-stat-card .stat-label {
  color: var(--text-muted) !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Price Change */
.price-change {
  font-weight: 600;
  font-size: 0.875rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.price-change.positive {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success) !important;
}

.price-change.negative {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger) !important;
}

/* Modern Typography */
.display-modern {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.heading-modern {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.subheading-modern {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* Glass Effect */
.glass-effect {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .display-modern {
    font-size: 2rem;
  }
  
  .heading-modern {
    font-size: 1.5rem;
  }
  
  .modern-card {
    padding: var(--space-lg);
  }
  
  .crypto-stat-card {
    padding: var(--space-lg);
  }
  
  .crypto-stat-card .stat-value {
    font-size: 1.5rem;
  }
}

/* White Theme Enhancements */
.white-theme {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
}

/* Additional white theme styling */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Hero section improvements */
.hero-section {
  background: var(--gradient-hero) !important;
  border-bottom: 1px solid var(--border-color);
}

/* Card hover effects for white theme */
.modern-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px var(--primary-orange);
}

/* Button improvements */
.btn-modern {
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
}

.btn-modern:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

.btn-modern-outline {
  background: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
  box-shadow: var(--shadow-sm);
}

.btn-modern-outline:hover {
  background: var(--primary-orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

/* News page specific styles */
.news-card h5 {
  color: var(--text-primary) !important;
}

/* News card badge container */
.news-card .badge {
  max-width: calc(100% - 1rem);
  margin-bottom: 0.5rem;
}

/* Grid view badge styling */
#grid-view .news-card {
  overflow: visible;
  height: auto;
  min-height: 400px;
}

#grid-view .news-card .badge {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

#grid-view .news-card .card-body,
#grid-view .news-card .p-3 {
  overflow: visible;
  word-wrap: break-word;
}

/* List view badge styling */
#list-view .news-card .badge {
  max-width: 200px;
}

/* Related Articles section styling */
.related-articles .news-card {
  overflow: visible;
  height: auto;
  min-height: 350px;
}

.related-articles .news-card .badge {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.75rem;
}

.related-articles .news-card .news-content {
  padding: 1rem;
  overflow: visible;
  word-wrap: break-word;
}

.related-articles .news-card .news-title {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--text-primary) !important;
}

.related-articles .news-card .news-meta {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.related-articles .news-card .btn-modern {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.news-card p {
  color: var(--text-secondary) !important;
}

.news-card small {
  color: var(--text-muted) !important;
}

/* Footer Styling - Light Mode */
footer .footer-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

footer .footer-title,
footer h5.footer-title {
  color: #1e293b !important;
  font-weight: 700;
}

footer .footer-description,
footer p.footer-description {
  color: #475569 !important;
  font-size: 0.95rem;
}

footer .footer-link,
footer a.footer-link {
  color: #64748b !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

footer .footer-link:hover,
footer a.footer-link:hover {
  color: #f97316 !important;
  transform: translateY(-1px);
}

footer .footer-divider,
footer hr.footer-divider {
  border-color: #e2e8f0 !important;
  opacity: 1;
}

footer .footer-copyright,
footer p.footer-copyright {
  color: #64748b !important;
}

/* Footer text - Legacy support */
footer a {
  color: var(--text-muted) !important;
  transition: color 0.3s ease;
}

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

footer p {
  color: var(--text-muted) !important;
}

/* Footer Styling - Dark Mode (WCAG AA 2.1 Compliant) */
@media (prefers-color-scheme: dark) {
  footer .footer-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f172a 100%) !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
  }
  
  footer .footer-title,
  footer h5.footer-title {
    color: #ffffff !important; /* White - 16:1 contrast on #1a1a1a (exceeds AAA) */
    font-weight: 700;
  }
  
  footer .footer-description,
  footer p.footer-description {
    color: #e2e8f0 !important; /* Very light gray - 11:1 contrast (exceeds AAA) */
    font-size: 0.95rem;
  }
  
  footer .footer-link,
  footer a.footer-link {
    color: #fbbf24 !important; /* Bright yellow - 10:1 contrast (exceeds AAA) */
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  footer .footer-link:hover,
  footer a.footer-link:hover {
    color: #fcd34d !important; /* Brighter yellow - 12:1 contrast */
    transform: translateY(-1px);
    text-decoration: underline;
  }
  
  footer .footer-divider,
  footer hr.footer-divider {
    border-color: rgba(251, 191, 36, 0.4) !important;
    opacity: 1;
  }
  
  footer .footer-copyright,
  footer p.footer-copyright {
    color: #cbd5e0 !important; /* Light gray - 8:1 contrast (exceeds AA) */
  }
  
  /* Override legacy footer styles in dark mode */
  footer a:not(.footer-link) {
    color: #fbbf24 !important; /* Bright yellow for visibility */
  }
  
  footer a:not(.footer-link):hover {
    color: #fcd34d !important;
  }
  
  footer p:not(.footer-description):not(.footer-copyright) {
    color: #e2e8f0 !important; /* Light gray for readability */
  }
  
  /* Footer icon styling in dark mode */
  footer .text-orange,
  footer i.text-orange {
    color: #f97316 !important; /* Orange - 6:1 contrast (exceeds AA) */
  }
  
  footer .text-orange:hover {
    color: #fbbf24 !important; /* Brighter yellow-orange on hover */
  }
}

/* Glass effect text */
.glass-effect {
  color: var(--text-primary) !important;
}

.glass-effect span {
  color: var(--text-muted) !important;
}

.glass-effect .badge {
  color: var(--text-primary) !important;
}

/* Badge improvements */
.badge {
  font-weight: 600;
  letter-spacing: 0.025em;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  max-width: 100%;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  cursor: help;
  transition: all 250ms ease-in-out;
  position: relative;
  word-break: break-word;
}

.badge.bg-orange {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.badge.bg-orange:hover {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%) !important;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.5);
  transform: translateY(-3px) scale(1.05);
  color: #ffffff !important;
}

/* Tooltip on hover */
.badge:hover {
  max-width: none;
  white-space: normal;
  word-wrap: break-word;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
  transition: all 250ms ease-in-out;
}

/* Alternative: Show full text in a tooltip */
.badge[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.5rem;
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: normal;
  word-wrap: break-word;
  max-width: 300px;
  z-index: 1000;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  animation: fadeIn 200ms ease-in-out;
}

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

/* Utility Classes */
.text-orange {
  color: var(--primary-orange) !important;
}

.bg-orange {
  background: var(--gradient-primary) !important;
  color: #ffffff !important;
}

.border-orange {
  border-color: var(--primary-orange) !important;
}

.shadow-orange {
  box-shadow: var(--shadow-orange) !important;
}

/* Additional accessibility improvements */
.btn-modern-outline {
  color: var(--primary-orange) !important;
  border-color: var(--primary-orange) !important;
}

.btn-modern-outline:hover {
  color: var(--text-primary) !important;
  background: var(--primary-orange) !important;
}

/* Ensure all links are visible */
a {
  color: var(--primary-orange);
  text-decoration: none;
}

a:hover {
  color: var(--primary-orange-light);
}

/* Status indicators */
.status-indicator {
  background: var(--success) !important;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-orange);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-orange-dark);
}
