/**
 * Light Theme Styles for eRacingTR
 * This file contains all light theme overrides
 */

/* ============================================
   CSS Variables - Light Theme
   ============================================ */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: rgba(26, 26, 26, 0.8);
    --text-muted: rgba(26, 26, 26, 0.6);
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --header-bg: #ffffff;
    --header-top-bg: #f8f9fa;
    --hero-bg: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 50%, #f5f7fa 100%);
}

/* ============================================
   General Layout Styles
   ============================================ */
[data-theme="light"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="light"] .site-content {
    background: #f8f9fa !important;
}

[data-theme="light"] .page-heading {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .page-heading__title {
    color: #1a1a1a !important;
}

/* ============================================
   Header Styles
   ============================================ */
[data-theme="light"] .header__top-bar {
    background: #f8f9fa !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .header__primary {
    background: linear-gradient(135deg, #c8c8c8 0%, #ffffff 50%) !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .header--layout-1 .header__primary,
[data-theme="light"] .header--layout-2 .header__primary,
[data-theme="light"] .header--layout-3 .header__primary,
[data-theme="light"] .header--layout-4 .header__primary,
[data-theme="light"] .header--layout-5 .header__primary {
    background: linear-gradient(135deg, #c8c8c8 0%, #ffffff 50%) !important;
}

[data-theme="light"] .header--layout-1 .header__primary::after,
[data-theme="light"] .header--layout-2 .header__primary::after,
[data-theme="light"] .header--layout-3 .header__primary::after,
[data-theme="light"] .header--layout-4 .header__primary::after,
[data-theme="light"] .header--layout-5 .header__primary::after {
    background: transparent !important;
    display: none !important;
}

[data-theme="light"] .header__primary-inner {
    background: linear-gradient(135deg, #c8c8c8 0%, #ffffff 50%) !important;
    background-color: transparent !important;
}

[data-theme="light"] .header--layout-1 .header__primary-inner::before {
    display: block !important;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.25) 100%) !important;
    background-color: rgba(220, 53, 69, 0.2) !important;
}

[data-theme="light"] .header__primary-inner[style*="background"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

[data-theme="light"] #language-select {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #4a4a4a !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .social-links__link {
    color: #4a4a4a !important;
}

[data-theme="light"] .main-nav__list a {
    color: #4a4a4a !important;
}

[data-theme="light"] .main-nav__megamenu {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .main-nav__megamenu a {
    color: #4a4a4a !important;
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #4a4a4a !important;
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.4) !important;
}

/* ============================================
   Header - Inline Style Overrides
   ============================================ */
[data-theme="light"] .header__top-bar[style*="background: #1a1a1a"] {
    background: #f8f9fa !important;
}

[data-theme="light"] .header__top-bar[style*="border-bottom: 1px solid #333"] {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .header-mobile[style*="background: #222"] {
    background: #ffffff !important;
}

[data-theme="light"] .header-mobile {
    background: #ffffff !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   Header - Theme Toggle Button Inline Styles
   ============================================ */
[data-theme="light"] .theme-toggle-btn[style*="background: rgba(255, 255, 255, 0.1)"] {
    background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .theme-toggle-btn[style*="border: 1px solid rgba(255, 255, 255, 0.2)"] {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .theme-toggle-btn[style*="color: #fff"] {
    color: #4a4a4a !important;
}

/* ============================================
   Theme Beta Text
   ============================================ */
[data-theme="light"] .theme-toggle-btn {
    width: auto !important;
    min-width: auto !important;
    padding: 0 10px !important;
}

[data-theme="light"] .theme-beta-text {
    display: inline !important;
    color: #4a4a4a !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    opacity: 0.9 !important;
}

/* ============================================
   Header - Language Select Inline Styles
   ============================================ */
[data-theme="light"] #language-select[style*="background: #333"] {
    background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] #language-select[style*="color: white"] {
    color: #4a4a4a !important;
}

[data-theme="light"] #language-select[style*="border: 1px solid #555"] {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

/* ============================================
   Header - Social Links
   ============================================ */
[data-theme="light"] .social-links__link.text-white {
    color: #4a4a4a !important;
}

[data-theme="light"] .social-links__link[style*="color: white"] {
    color: #4a4a4a !important;
}

[data-theme="light"] .social-links__link:hover {
    color: #dc3545 !important;
}

/* ============================================
   Header - Main Navigation
   ============================================ */
[data-theme="light"] .main-nav__list a.text-white {
    color: #4a4a4a !important;
}

[data-theme="light"] .main-nav__list a[style*="color: white"] {
    color: #4a4a4a !important;
}

[data-theme="light"] .main-nav__list a:hover {
    color: #dc3545 !important;
}

[data-theme="light"] .main-nav__list a.text-danger {
    color: #dc3545 !important;
}

/* ============================================
   Header - Megamenu Inline Styles
   ============================================ */
[data-theme="light"] .main-nav__megamenu[style*="background: #333"] {
    background: #ffffff !important;
}

[data-theme="light"] .main-nav__megamenu {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .main-nav__megamenu .text-white {
    color: #4a4a4a !important;
}

[data-theme="light"] .main-nav__megamenu a.text-white {
    color: #4a4a4a !important;
}

[data-theme="light"] .main-nav__megamenu a[style*="color: white"] {
    color: #4a4a4a !important;
}

[data-theme="light"] .main-nav__megamenu a:hover {
    color: #dc3545 !important;
}

[data-theme="light"] .main-nav__megamenu .posts__cat-label[style*="background: #555"] {
    background: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .main-nav__megamenu .posts__cat-label.text-white {
    color: #4a4a4a !important;
}

[data-theme="light"] .main-nav__megamenu .posts__cat-label[style*="color: white"] {
    color: #4a4a4a !important;
}

[data-theme="light"] .main-nav__megamenu span.text-white {
    color: #4a4a4a !important;
}

[data-theme="light"] .main-nav__megamenu span[style*="color: white"] {
    color: #4a4a4a !important;
}

/* ============================================
   Header - Mobile Menu
   ============================================ */
[data-theme="light"] .header-mobile__logo-img {
    filter: none !important;
}

[data-theme="light"] .burger-menu-icon {
    color: #1a1a1a !important;
}

[data-theme="light"] .burger-menu-icon__line {
    background: #1a1a1a !important;
}

/* ============================================
   Header - Navigation Buttons
   ============================================ */
[data-theme="light"] .nav-btn.text-white {
    color: #4a4a4a !important;
}

[data-theme="light"] .nav-btn.text-white:hover {
    color: #dc3545 !important;
}

[data-theme="light"] .nav-sub-btn.text-white {
    color: #4a4a4a !important;
}

[data-theme="light"] .nav-sub-btn.text-white:hover {
    color: #dc3545 !important;
}

/* ============================================
   Header - Logo
   ============================================ */
[data-theme="light"] .header-logo__img {
    filter: none !important;
}

/* ============================================
   Header - Primary Inner
   ============================================ */
[data-theme="light"] .header__primary-inner {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   Header - Top Bar Inner
   ============================================ */
[data-theme="light"] .header__top-bar-inner {
    border-bottom: none !important;
}

/* ============================================
   Header - Additional Overrides
   ============================================ */
[data-theme="light"] .header__top-bar * {
    color: inherit;
}

[data-theme="light"] .header__primary * {
    color: inherit;
}

[data-theme="light"] .main-nav__list li a {
    color: #4a4a4a !important;
}

[data-theme="light"] .main-nav__list li a:hover {
    color: #dc3545 !important;
}

[data-theme="light"] .main-nav__list li.active > a {
    color: #dc3545 !important;
}

/* ============================================
   Welcome Page / Hero Section
   ============================================ */
[data-theme="light"] .modern-hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 50%, #f5f7fa 100%) !important;
}

[data-theme="light"] .hero-background {
    opacity: 0.08 !important;
}

[data-theme="light"] .hero-badge {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.1) 100%) !important;
    border-color: rgba(220, 53, 69, 0.25) !important;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #1a1a1a 0%, #dc3545 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .hero-description {
    color: rgba(26, 26, 26, 0.8) !important;
}

[data-theme="light"] .modern-card,
[data-theme="light"] .widget-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .card-header-modern,
[data-theme="light"] .widget-modern > div:first-child {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.03) 100%) !important;
    padding: 18px 22px !important;
    border: none !important;
    border-left: 4px solid #dc3545 !important;
    border-radius: 20px 20px 0 0 !important;
}

[data-theme="light"] .card-header-modern[style*="padding: 22px 28px"] {
    padding: 18px 22px !important;
}

[data-theme="light"] .card-header-modern h4[style*="font-size: 1.5rem"] {
    font-size: 1.25rem !important;
}

[data-theme="light"] .card-header-modern h4[style*="gap: 14px"] {
    gap: 12px !important;
}

/* Tryouts header icon box - match with standings widget */
[data-theme="light"] .card-header-modern h4 span[style*="width: 42px"],
[data-theme="light"] .card-header-modern h4 span[style*="height: 42px"],
[data-theme="light"] .card-header-modern h4 span[style*="display: inline-flex"][style*="width: 42px"],
[data-theme="light"] .card-header-modern h4 span[style*="display: inline-flex"][style*="height: 42px"] {
    width: 38px !important;
    height: 38px !important;
}

[data-theme="light"] .card-header-modern h4 span i[style*="font-size: 1.1rem"] {
    font-size: 1rem !important;
}

[data-theme="light"] .card-header-modern h4 span[style*="display: inline-flex"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
}

/* Standings widget icon box - match with other headers */
[data-theme="light"] .widget-standings-modern .widget__title h4 span.icon-box,
[data-theme="light"] .widget-standings-modern .widget__title h4 span[style*="width: 38px"][style*="height: 38px"],
[data-theme="light"] .widget-standings-modern .widget__title h4 span[style*="display: inline-flex"][style*="width: 38px"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
    padding: 0 !important;
}

[data-theme="light"] .widget-standings-modern .widget__title h4 span.icon-box i,
[data-theme="light"] .widget-standings-modern .widget__title h4 span[style*="width: 38px"] i {
    font-size: 1rem !important;
    color: #ffffff !important;
}

[data-theme="light"] .card-header-modern h4 span[style*="background: linear-gradient(135deg, #dc3545"] {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

[data-theme="light"] .card-header-modern h4,
[data-theme="light"] .widget-modern h4 {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern {
    background: #ffffff !important;
}

[data-theme="light"] .post-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .post-card-modern figure {
    background: #f0f0f0 !important;
}

[data-theme="light"] .post-card-modern .text-muted {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] .table thead th {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.1) 100%) !important;
    color: #1a1a1a !important;
}

/* ============================================
   Welcome Page - Hero Section Details
   ============================================ */
[data-theme="light"] .hero-badge span {
    color: #1a1a1a !important;
}

[data-theme="light"] .hero-cta-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: #ffffff !important;
}

[data-theme="light"] .floating-circle {
    opacity: 0.6 !important;
}

[data-theme="light"] #heroSlider {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

/* ============================================
   Welcome Page - Next Race Card
   ============================================ */
[data-theme="light"] .next-race-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .next-race-card h3 {
    color: #1a1a1a !important;
}

[data-theme="light"] .next-race-card h4 {
    color: rgba(26, 26, 26, 0.9) !important;
}

[data-theme="light"] .next-race-card p {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] .countdown-modern {
    background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .countdown-modern h5 {
    color: #1a1a1a !important;
}

/* ============================================
   Welcome Page - Tryouts Table
   ============================================ */
[data-theme="light"] .card-body-modern .table thead th:first-child {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.1) 100%) !important;
}

[data-theme="light"] .card-body-modern .table tbody td:first-child {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody tr:nth-child(even) td:first-child {
    background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr:hover td:first-child {
    background: rgba(220, 53, 69, 0.1) !important;
}

[data-theme="light"] .card-body-modern .table thead th:nth-child(2) {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.1) 100%) !important;
}

[data-theme="light"] .card-body-modern .table tbody td:nth-child(2) {
    background: #ffffff !important;
}

[data-theme="light"] .card-body-modern .table tbody td:nth-child(2) strong {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td:nth-child(2) strong a {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td:nth-child(2) strong a:hover {
    color: #dc3545 !important;
}

[data-theme="light"] .card-body-modern .table tbody tr:nth-child(even) td:nth-child(2) {
    background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr:hover td:nth-child(2) {
    background: rgba(220, 53, 69, 0.1) !important;
}

[data-theme="light"] .card-body-modern .table thead th.fastest-lap-col {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.1) 100%) !important;
}

[data-theme="light"] .card-body-modern .table tbody td.fastest-lap-col {
    background: #ffffff !important;
}

[data-theme="light"] .card-body-modern .table tbody tr:nth-child(even) td.fastest-lap-col {
    background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr:hover td.fastest-lap-col {
    background: rgba(220, 53, 69, 0.1) !important;
}

[data-theme="light"] .card-body-modern .table tbody td {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td span[style*="color: rgba(255,255,255,0.4)"] {
    color: rgba(26, 26, 26, 0.4) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="background: transparent"] {
    background: transparent !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="background: rgba(255,255,255,0.02)"] {
    background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(26, 26, 26, 0.6) !important;
}

/* ============================================
   Welcome Page - Instagram Posts
   ============================================ */
[data-theme="light"] .post-card-modern figure {
    background: #f0f0f0 !important;
}

[data-theme="light"] .post-card-modern div[style*="color: rgba(255,255,255,0.8)"] {
    color: rgba(26, 26, 26, 0.8) !important;
}

[data-theme="light"] .post-card-modern time[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .post-card-modern div[style*="background: rgba(0,0,0,0.7)"] {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* ============================================
   Welcome Page - Sidebar Widgets
   ============================================ */
[data-theme="light"] .widget-modern > div:last-child {
    background: #ffffff !important;
}

[data-theme="light"] .btn-modern-secondary {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #1a1a1a !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .btn-modern-secondary:hover {
    background: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .widget-standings-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .widget-standings-modern .widget__title {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.03) 100%) !important;
}

[data-theme="light"] .widget-standings-modern .widget__title h4 {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-standings-modern .table-standings thead {
    background: rgba(220, 53, 69, 0.1) !important;
}

[data-theme="light"] .widget-standings-modern .table-standings thead th {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-standings-modern .table-standings tbody tr {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .widget-standings-modern .table-standings tbody tr:hover {
    background: rgba(220, 53, 69, 0.1) !important;
}

[data-theme="light"] .widget-standings-modern .table-standings tbody td {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-standings-modern .rank-badge-modern {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-standings-modern .podium-row-modern .rank-badge-modern {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-standings-modern .points-display-modern {
    color: #dc3545 !important;
}

[data-theme="light"] .widget-standings-modern .podium-row-modern .points-display-modern {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-standings-modern .team-meta__name-modern {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-standings-modern .team-meta__name-modern a {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-standings-modern .team-meta__name-modern a:hover {
    color: #dc3545 !important;
}

[data-theme="light"] .widget-standings-modern .team-meta__place-modern {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] .widget-standings-modern .driver-photo-modern {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .widget-standings-modern .podium-row-modern .driver-photo-modern {
    border-color: rgba(255, 255, 255, 0.4) !important;
}

[data-theme="light"] .widget-standings-modern .podium-row-modern td {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-modern h6 a[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-modern h6 a[style*="color: #fff"]:hover {
    color: #dc3545 !important;
}

[data-theme="light"] .widget-modern time[style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] .widget-modern div[style*="border-bottom: 1px solid rgba(255,255,255,0.05)"] {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   Welcome Page - Additional Inline Style Overrides
   ============================================ */
[data-theme="light"] .card-body-modern .table tbody td[style*="color: rgba(255,255,255,0.4)"] {
    color: rgba(26, 26, 26, 0.4) !important;
}

[data-theme="light"] .card-body-modern .table tbody td[style*="color: rgba(255,255,255,0.8)"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td[style*="color: #dc3545"] {
    color: #dc3545 !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="background: transparent"] {
    background: transparent !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="background: rgba(255,255,255,0.02)"] {
    background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="border-bottom: 1px solid rgba(255,255,255,0.05)"] {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: rgba(255,255,255,0.8)"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: #dc3545"] {
    color: #dc3545 !important;
}

[data-theme="light"] .card-body-modern .table tbody td strong[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td strong a[style*="color: inherit"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td strong a:hover {
    color: #dc3545 !important;
}

[data-theme="light"] .card-body-modern .table tbody td span[style*="font-size: 0.95rem"][style*="color: rgba(255,255,255,0.4)"] {
    color: rgba(26, 26, 26, 0.4) !important;
}

[data-theme="light"] .card-body-modern .table tbody td span[style*="font-size: 0.95rem"][style*="font-weight: 500"][style*="color: rgba(255,255,255,0.4)"] {
    color: rgba(26, 26, 26, 0.4) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="background: rgba(255,255,255,0.02)"] td {
    background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr:hover td {
    background: rgba(220, 53, 69, 0.1) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr:hover td:first-child {
    background: rgba(220, 53, 69, 0.1) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr:hover td:nth-child(2) {
    background: rgba(220, 53, 69, 0.1) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr:hover td.fastest-lap-col {
    background: rgba(220, 53, 69, 0.1) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="background: transparent"]:hover td {
    background: rgba(220, 53, 69, 0.1) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="background: rgba(255,255,255,0.02)"]:hover td {
    background: rgba(220, 53, 69, 0.1) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: rgba(255,255,255,0.8)"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: #dc3545"] {
    color: #dc3545 !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: rgba(255,255,255,0.4)"] {
    color: rgba(26, 26, 26, 0.4) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: rgba(255,255,255,0.8)"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: #dc3545"] {
    color: #dc3545 !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: rgba(255,255,255,0.4)"] {
    color: rgba(26, 26, 26, 0.4) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: rgba(255,255,255,0.8)"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: #dc3545"] {
    color: #dc3545 !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: rgba(255,255,255,0.4)"] {
    color: rgba(26, 26, 26, 0.4) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: rgba(255,255,255,0.8)"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="color: #dc3545"] {
    color: #dc3545 !important;
}

/* Tryouts table text colors - General overrides */
[data-theme="light"] .card-body-modern .table tbody td strong {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td strong a {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td strong a:hover {
    color: #dc3545 !important;
}

/* Info text */
[data-theme="light"] .card-body-modern .text-center span[style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] .card-body-modern .text-center span[style*="color: #dc3545"] {
    color: #dc3545 !important;
}

/* General text color overrides for inline styles */
[data-theme="light"] [style*="color: rgba(255,255,255,0.4)"] {
    color: rgba(26, 26, 26, 0.4) !important;
}

[data-theme="light"] [style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] [style*="color: rgba(255,255,255,0.8)"] {
    color: rgba(26, 26, 26, 0.8) !important;
}

[data-theme="light"] [style*="color: #fff"]:not([style*="background"]) {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern [style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .next-race-card [style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .next-race-card [style*="color: rgba(255,255,255,0.9)"] {
    color: rgba(26, 26, 26, 0.9) !important;
}

[data-theme="light"] .next-race-card [style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] .post-card-modern [style*="color: rgba(255,255,255,0.8)"] {
    color: rgba(26, 26, 26, 0.8) !important;
}

[data-theme="light"] .widget-modern [style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-modern [style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(26, 26, 26, 0.6) !important;
}

/* ============================================
   Welcome Page - Tryouts Table Headers
   ============================================ */
[data-theme="light"] .card-body-modern .table thead th[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table thead th {
    color: #1a1a1a !important;
}

/* ============================================
   Welcome Page - Tryouts Table Body Cells
   ============================================ */
[data-theme="light"] .card-body-modern .table tbody td[style*="color: rgba(255,255,255,0.8)"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td[style*="color: rgba(255,255,255,0.4)"] {
    color: rgba(26, 26, 26, 0.4) !important;
}

[data-theme="light"] .card-body-modern .table tbody td[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td[style*="color: #dc3545"] {
    color: #dc3545 !important;
}

/* ============================================
   Welcome Page - Tryouts Table Rows
   ============================================ */
[data-theme="light"] .card-body-modern .table tbody tr[style*="border-bottom: 1px solid rgba(255,255,255,0.05)"] {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="background: transparent"] {
    background: transparent !important;
}

[data-theme="light"] .card-body-modern .table tbody tr[style*="background: rgba(255,255,255,0.02)"] {
    background: rgba(0, 0, 0, 0.02) !important;
}

/* ============================================
   Welcome Page - Card Header Modern
   ============================================ */
[data-theme="light"] .card-header-modern h4[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-header-modern [style*="color: rgba(255,255,255,0.9)"] {
    color: rgba(26, 26, 26, 0.9) !important;
}

[data-theme="light"] .card-header-modern i[style*="color: rgba(255,255,255,0.9)"] {
    color: rgba(26, 26, 26, 0.9) !important;
}

/* ============================================
   Welcome Page - Instagram Post Time Badge
   ============================================ */
[data-theme="light"] .post-card-modern time[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .post-card-modern div[style*="background: rgba(0,0,0,0.7)"] {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* ============================================
   Welcome Page - Countdown Counter
   ============================================ */
[data-theme="light"] .countdown-counter {
    color: #1a1a1a !important;
}

[data-theme="light"] .countdown-counter .countdown-item {
    color: #1a1a1a !important;
}

[data-theme="light"] .countdown-counter .countdown-value {
    color: #dc3545 !important;
}

[data-theme="light"] .countdown-counter .countdown-label {
    color: rgba(26, 26, 26, 0.6) !important;
}

/* ============================================
   Welcome Page - Widget Modern Headers
   ============================================ */
[data-theme="light"] .widget-modern h4[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-modern h4 span[style*="color: #fff"] {
    color: #ffffff !important;
}

/* ============================================
   Welcome Page - Standings Widget Inline Styles
   ============================================ */
[data-theme="light"] .widget-standings-modern .widget__title h4[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-standings-modern .widget__title h4 span[style*="color: #fff"] {
    color: #ffffff !important;
}

/* ============================================
   Welcome Page - Table Background Overrides
   ============================================ */
[data-theme="light"] .card-body-modern .table[style*="background: transparent"] {
    background: transparent !important;
}

[data-theme="light"] .card-body-modern .table thead[style*="background: linear-gradient"] {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.1) 100%) !important;
}

/* ============================================
   Welcome Page - Figure Background
   ============================================ */
[data-theme="light"] .post-card-modern figure[style*="background: #0a0a0a"] {
    background: #f0f0f0 !important;
}

/* ============================================
   Welcome Page - Image Shadow
   ============================================ */
[data-theme="light"] .post-card-modern img[style*="box-shadow: 0 2px 8px rgba(0,0,0,0.3)"] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   Welcome Page - Hover Link Colors
   ============================================ */
[data-theme="light"] .card-body-modern .table tbody td strong a[style*="color: inherit"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td strong a:hover {
    color: #dc3545 !important;
}

/* ============================================
   Welcome Page - Ranking Number Colors
   ============================================ */
[data-theme="light"] .card-body-modern .table tbody td[style*="color: rgba(255,255,255,0.8)"][style*="font-size: 1.2rem"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td[style*="color: #dc3545"][style*="font-size: 1.2rem"] {
    color: #dc3545 !important;
}

/* ============================================
   Welcome Page - Countdown Modern Specific
   ============================================ */
[data-theme="light"] .countdown-modern h5[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .countdown-modern i[style*="color: #dc3545"] {
    color: #dc3545 !important;
}

/* ============================================
   Welcome Page - Tryouts Table All Day Columns
   ============================================ */
[data-theme="light"] .card-body-modern .table tbody td[style*="padding: 1.25rem 0.75rem"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td[style*="padding: 1.25rem 0.75rem"] span[style*="color: rgba(255,255,255,0.4)"] {
    color: rgba(26, 26, 26, 0.4) !important;
}

/* ============================================
   Welcome Page - Badge Colors (Keep white text on colored badges)
   ============================================ */
[data-theme="light"] .badge[style*="background: linear-gradient"][style*="color: white"] {
    color: #ffffff !important;
}

/* ============================================
   Welcome Page - Instagram Post Link
   ============================================ */
[data-theme="light"] .post-card-modern a[style*="color: #dc3545"] {
    color: #dc3545 !important;
}

[data-theme="light"] .post-card-modern a[style*="color: #dc3545"]:hover {
    color: #c82333 !important;
}

/* ============================================
   Welcome Page - Widget Modern Content
   ============================================ */
[data-theme="light"] .widget-modern > div[style*="padding: 25px"],
[data-theme="light"] .widget-modern > div[style*="padding: 20px"] {
    background: #ffffff !important;
}

/* ============================================
   Welcome Page - Standings Widget Content
   ============================================ */
[data-theme="light"] .widget-standings-modern .widget__content {
    background: #ffffff !important;
}

[data-theme="light"] .widget-standings-modern .table-standings {
    background: transparent !important;
}

/* ============================================
   Welcome Page - YouTube Widget
   ============================================ */
[data-theme="light"] .widget-modern h6 a[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-modern h6 a[style*="color: #fff"]:hover {
    color: #dc3545 !important;
}

[data-theme="light"] .widget-modern time[style*="color: rgba(255,255,255,0.6)"] {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] .widget-modern div[style*="border-bottom: 1px solid rgba(255,255,255,0.05)"] {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   Welcome Page - Social Media Widget Buttons
   ============================================ */
[data-theme="light"] .social-btn-modern {
    color: #ffffff !important;
}

[data-theme="light"] .social-btn-modern span[style*="font-weight: 600"] {
    color: #ffffff !important;
}

/* ============================================
   Welcome Page - Modern Card Hover Shadow
   ============================================ */
[data-theme="light"] .modern-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================
   Welcome Page - Post Card Hover Shadow
   ============================================ */
[data-theme="light"] .post-card-modern:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================
   Welcome Page - Countdown Counter Items (JS Generated)
   ============================================ */
[data-theme="light"] .countdown-counter__item {
    color: #1a1a1a !important;
}

[data-theme="light"] .countdown-counter__label {
    color: rgba(26, 26, 26, 0.6) !important;
}

/* ============================================
   Welcome Page - Additional Specific Overrides
   ============================================ */
[data-theme="light"] .card-header-modern span[style*="color: #fff"] {
    color: #ffffff !important;
}

[data-theme="light"] .card-header-modern i[style*="color: #fff"] {
    color: #ffffff !important;
}

[data-theme="light"] .widget-modern span[style*="color: #fff"] {
    color: #ffffff !important;
}

[data-theme="light"] .widget-modern i[style*="color: #fff"] {
    color: #ffffff !important;
}

/* ============================================
   Welcome Page - Table Headers All Columns
   ============================================ */
[data-theme="light"] .card-body-modern .table thead th[style*="padding: 1.25rem"] {
    color: #1a1a1a !important;
}

/* ============================================
   Welcome Page - Table Body All Day Columns
   ============================================ */
[data-theme="light"] .card-body-modern .table tbody td[style*="padding: 1.25rem 0.75rem"][style*="text-align: center"] {
    color: #1a1a1a !important;
}

/* ============================================
   Welcome Page - Ranking Number Specific
   ============================================ */
[data-theme="light"] .card-body-modern .table tbody td[style*="font-size: 1.2rem"][style*="color: rgba(255,255,255,0.8)"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td[style*="font-size: 1.2rem"][style*="color: #dc3545"] {
    color: #dc3545 !important;
}

/* ============================================
   Welcome Page - Pilot Name Link
   ============================================ */
[data-theme="light"] .card-body-modern .table tbody td strong[style*="color: #fff"] a {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td strong[style*="color: #fff"] a:hover {
    color: #dc3545 !important;
}

/* ============================================
   Welcome Page - Standings Widget Table
   ============================================ */
[data-theme="light"] .widget-standings-modern .table-standings thead th[style*="color: #fff"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-standings-modern .table-standings tbody td[style*="color: rgba(255,255,255,0.9)"] {
    color: #1a1a1a !important;
}

/* ============================================
   Welcome Page - Standings Widget Links
   ============================================ */
[data-theme="light"] .widget-standings-modern .team-meta__name-modern a[style*="color: inherit"] {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-standings-modern .team-meta__name-modern a:hover {
    color: #dc3545 !important;
}

/* ============================================
   Cards & Components
   ============================================ */
[data-theme="light"] .card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .card-header {
    background: #f8f9fa !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .card--has-table {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .card__header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

[data-theme="light"] .card__content {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

/* ============================================
   Tables
   ============================================ */
[data-theme="light"] .table {
    color: #1a1a1a !important;
}

[data-theme="light"] .table thead th {
    background: #f0f0f0 !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .table thead {
    background: linear-gradient(135deg, #f0f0f0 0%, #e9ecef 100%) !important;
}

[data-theme="light"] .table tbody td {
    color: #1a1a1a !important;
}

[data-theme="light"] .table tbody tr {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Point Table Specific */
[data-theme="light"] .standings-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .standings-card__content {
    background: #ffffff !important;
}

[data-theme="light"] .standings-table thead {
    background: linear-gradient(135deg, #f0f0f0 0%, #e9ecef 100%) !important;
}

[data-theme="light"] .standings-table thead th {
    color: #1a1a1a !important;
}

[data-theme="light"] .standings-table tbody td {
    color: #1a1a1a !important;
}

[data-theme="light"] .regular-row {
    background: rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .regular-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .podium-row.podium-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%) !important;
}

[data-theme="light"] .podium-row.podium-silver {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 50%, #cbd5e1 100%) !important;
    border-left: 4px solid #94a3b8 !important;
}

[data-theme="light"] .podium-row.podium-silver td,
[data-theme="light"] .podium-row.podium-silver .driver-name,
[data-theme="light"] .podium-row.podium-silver .team-name {
    color: #1e293b !important;
}

[data-theme="light"] .podium-row.podium-silver .points-display {
    color: #475569 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .podium-row.podium-silver .rank-badge,
[data-theme="light"] .podium-row.podium-silver .rank-number {
    color: #1e293b !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 2px solid #94a3b8 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .podium-row.podium-bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 50%, #A0522D 100%) !important;
}

[data-theme="light"] .points-display {
    color: #dc3545 !important;
}

[data-theme="light"] .team-points {
    color: #10b981 !important;
}

[data-theme="light"] .track-points {
    color: #1a1a1a !important;
}

[data-theme="light"] .driver-name,
[data-theme="light"] .team-name {
    color: #1a1a1a !important;
}

/* ============================================
   Statistics Page
   ============================================ */
[data-theme="light"] .statistics-page {
    background: #f8f9fa !important;
}

[data-theme="light"] .stat-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .stat-card-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

[data-theme="light"] .stat-card-body {
    background: #ffffff !important;
    color: #000000 !important;
}

[data-theme="light"] .stat-card-footer {
    background: #f8f9fa !important;
    border-top-color: rgba(0, 0, 0, 0.1) !important;
    color: rgba(0, 0, 0, 0.8) !important;
}

[data-theme="light"] .stat-item {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
}

[data-theme="light"] .stat-item-name {
    color: #000000 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .stat-item-name a {
    color: #000000 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .stat-item-meta {
    color: #000000 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .stat-league {
    color: #000000 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .stat-track {
    color: #000000 !important;
    font-weight: 600 !important;
}

[data-theme="light"] .stat-item-value {
    color: #dc3545 !important;
}

[data-theme="light"] .track-btn:not(.active) {
    background: #ffffff !important;
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* ============================================
   Calendar Page
   ============================================ */
[data-theme="light"] .calendar-page {
    background: #f8f9fa !important;
}

[data-theme="light"] .calendar-day {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .calendar-day-content {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .calendar-race-item {
    background: #f8f9fa !important;
    border-left-color: #dc3545 !important;
}

[data-theme="light"] .calendar-race-item:hover {
    background: #e9ecef !important;
}

[data-theme="light"] .race-title h4 {
    color: #1a1a1a !important;
}

[data-theme="light"] .race-league {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] .race-time {
    color: #dc3545 !important;
}

/* ============================================
   Schedule Page
   ============================================ */
[data-theme="light"] .schedule-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .schedule-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .track-name {
    color: #1a1a1a !important;
}

[data-theme="light"] .track-details {
    color: #1a1a1a !important;
}

[data-theme="light"] .race-type-badge.sprint {
    color: #856404 !important;
}

[data-theme="light"] .race-type-badge.race {
    color: #004085 !important;
}

[data-theme="light"] .race-type-badge.combined {
    color: #004085 !important;
}

/* ============================================
   Live Broadcasts Page
   ============================================ */
[data-theme="light"] .broadcast-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .broadcast-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .broadcast-description {
    color: rgba(26, 26, 26, 0.8) !important;
}

/* ============================================
   Ref Decisions Page
   ============================================ */
[data-theme="light"] .complaint-scroll::-webkit-scrollbar-track {
    background: #e9ecef !important;
}

[data-theme="light"] .decision-scroll::-webkit-scrollbar-track {
    background: #e9ecef !important;
}

[data-theme="light"] .decision-description-scroll::-webkit-scrollbar-track {
    background: #e9ecef !important;
}

[data-theme="light"] .defense-made {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.15) 100%) !important;
    color: #155724 !important;
}

[data-theme="light"] .defense-not-made {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.15) 100%) !important;
    color: #856404 !important;
}

[data-theme="light"] .decision-section {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.08) 0%, rgba(23, 162, 184, 0.12) 100%) !important;
}

[data-theme="light"] .decision-description {
    background: rgba(23, 162, 184, 0.1) !important;
    color: #0c5460 !important;
}

/* ============================================
   Driver Detail Page
   ============================================ */
[data-theme="light"] .driver-detail-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

[data-theme="light"] .driver-header-card {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

[data-theme="light"] .stat-card-detail {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .stat-card-detail:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .stat-value {
    color: #dc3545 !important;
    text-shadow: none !important;
}

[data-theme="light"] .stat-label {
    color: rgba(26, 26, 26, 0.7) !important;
}

/* ============================================
   Navigation & Filters
   ============================================ */
[data-theme="light"] .content-filter {
    background: #ffffff !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .content-filter__list {
    background: #ffffff !important;
}

[data-theme="light"] .content-filter__link {
    color: #1a1a1a !important;
}

[data-theme="light"] .content-filter__item--active .content-filter__link {
    color: #dc3545 !important;
}

[data-theme="light"] .content-filter__item--active::before {
    background: #dc3545 !important;
}

/* ============================================
   Buttons
   ============================================ */
[data-theme="light"] .btn-outline-secondary {
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .btn-outline-secondary:hover {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border-color: #dc3545 !important;
}

[data-theme="light"] .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
    border-color: #28a745 !important;
}

[data-theme="light"] .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border-color: #dc3545 !important;
}

/* ============================================
   Forms
   ============================================ */
[data-theme="light"] .form-control {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .form-control:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

[data-theme="light"] .form-select {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #1a1a1a !important;
}

/* ============================================
   Alerts
   ============================================ */
[data-theme="light"] .alert {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .alert-info {
    background: #d1ecf1 !important;
    color: #0c5460 !important;
}

[data-theme="light"] .alert-success {
    background: #d4edda !important;
    color: #155724 !important;
}

[data-theme="light"] .alert-warning {
    background: #fff3cd !important;
    color: #856404 !important;
}

[data-theme="light"] .alert-danger {
    background: #f8d7da !important;
    color: #721c24 !important;
}

/* ============================================
   Modals
   ============================================ */
[data-theme="light"] .modal-content {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .modal-header {
    background: #f8f9fa !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .modal-body {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .modal-footer {
    background: #f8f9fa !important;
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   Dropdowns
   ============================================ */
[data-theme="light"] .dropdown-menu {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .dropdown-item {
    color: #1a1a1a !important;
}

[data-theme="light"] .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* ============================================
   Pagination
   ============================================ */
[data-theme="light"] .pagination .page-link {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #1a1a1a !important;
}

[data-theme="light"] .pagination .page-link:hover {
    background: #f8f9fa !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

[data-theme="light"] .pagination .page-item.active .page-link {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

/* ============================================
   Lists
   ============================================ */
[data-theme="light"] .list-group-item {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
}

/* ============================================
   Text & Typography
   ============================================ */
[data-theme="light"] .text-white {
    color: #1a1a1a !important;
}

[data-theme="light"] .text-muted {
    color: rgba(26, 26, 26, 0.6) !important;
}

/* ============================================
   Badges
   ============================================ */
[data-theme="light"] .badge {
    color: #ffffff !important;
}

[data-theme="light"] .badge.bg-warning {
    color: #856404 !important;
}

[data-theme="light"] .badge.bg-dark {
    background: #343a40 !important;
    color: #ffffff !important;
}

/* ============================================
   Footer
   ============================================ */
[data-theme="light"] .footer {
    background: #ffffff !important;
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .footer__content {
    color: rgba(26, 26, 26, 0.8) !important;
}

[data-theme="light"] .footer__copyright {
    background: #f8f9fa !important;
    color: rgba(26, 26, 26, 0.6) !important;
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   Welcome Page - Countdown Counter (JS Generated Elements)
   ============================================ */
[data-theme="light"] .countdown-counter__item {
    color: #1a1a1a !important;
}

[data-theme="light"] .countdown-counter__item--days,
[data-theme="light"] .countdown-counter__item--hours,
[data-theme="light"] .countdown-counter__item--mins,
[data-theme="light"] .countdown-counter__item--secs {
    color: #1a1a1a !important;
}

[data-theme="light"] .countdown-counter__label {
    color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme="light"] .countdown-counter__item + .countdown-counter__item::before {
    color: rgba(26, 26, 26, 0.2) !important;
}

/* ============================================
   Welcome Page - Comprehensive Text Color Overrides
   ============================================ */
/* Override all white text in tryouts table */
[data-theme="light"] .card-body-modern .table thead th {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td {
    color: #1a1a1a !important;
}

[data-theme="light"] .card-body-modern .table tbody td strong {
    color: #1a1a1a !important;
}

/* Override all white text in next race card */
[data-theme="light"] .next-race-card h3,
[data-theme="light"] .next-race-card h4,
[data-theme="light"] .next-race-card p {
    color: #1a1a1a !important;
}

[data-theme="light"] .next-race-card h4 {
    color: rgba(26, 26, 26, 0.9) !important;
}

[data-theme="light"] .next-race-card p {
    color: rgba(26, 26, 26, 0.6) !important;
}

/* Override all white text in widget headers */
[data-theme="light"] .widget-modern h4,
[data-theme="light"] .card-header-modern h4 {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-modern h4 span:not([style*="background"]),
[data-theme="light"] .card-header-modern h4 span:not([style*="background"]) {
    color: #1a1a1a !important;
}

/* Override all white text in standings widget */
[data-theme="light"] .widget-standings-modern .widget__title h4 {
    color: #1a1a1a !important;
}

[data-theme="light"] .widget-standings-modern .widget__title h4 span:not(.icon-box) {
    color: #1a1a1a !important;
}


/* ============================================
   Welcome Page - Countdown Counter (JS Generated Elements)
   ============================================ */
[data-theme=" light\] .countdown-counter__item {
 color: #1a1a1a !important;
}

[data-theme=\light\] .countdown-counter__item--days,
[data-theme=\light\] .countdown-counter__item--hours,
[data-theme=\light\] .countdown-counter__item--mins,
[data-theme=\light\] .countdown-counter__item--secs {
 color: #1a1a1a !important;
}

[data-theme=\light\] .countdown-counter__label {
 color: rgba(26, 26, 26, 0.6) !important;
}

[data-theme=\light\] .countdown-counter__item + .countdown-counter__item::before {
 color: rgba(26, 26, 26, 0.2) !important;
}

/* ============================================
 Welcome Page - Comprehensive Text Color Overrides
 ============================================ */
/* Override all white text in tryouts table */
[data-theme=\light\] .card-body-modern .table thead th {
 color: #1a1a1a !important;
}

[data-theme=\light\] .card-body-modern .table tbody td {
 color: #1a1a1a !important;
}

[data-theme=\light\] .card-body-modern .table tbody td strong {
 color: #1a1a1a !important;
}

/* Override all white text in next race card */
[data-theme=\light\] .next-race-card h3,
[data-theme=\light\] .next-race-card h4,
[data-theme=\light\] .next-race-card p {
 color: #1a1a1a !important;
}

[data-theme=\light\] .next-race-card h4 {
 color: rgba(26, 26, 26, 0.9) !important;
}

[data-theme=\light\] .next-race-card p {
 color: rgba(26, 26, 26, 0.6) !important;
}

/* Override all white text in widget headers */
[data-theme=\light\] .widget-modern h4,
[data-theme=\light\] .card-header-modern h4 {
 color: #1a1a1a !important;
}

[data-theme=\light\] .widget-modern h4 span:not([style*=\background\]),
[data-theme=\light\] .card-header-modern h4 span:not([style*=\background\]) {
 color: #1a1a1a !important;
}

/* Override all white text in standings widget */
[data-theme=\light\] .widget-standings-modern .widget__title h4 {
 color: #1a1a1a !important;
}

[data-theme=\light\] .widget-standings-modern .widget__title h4 span:not(.icon-box) {
 color: #1a1a1a !important;
}
