/* LIGHT MODE GLOBAL OVERRIDES - FINAL FIX */

/* General Text Fixes */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode p,
body.light-mode span,
body.light-mode li,
body.light-mode label,
body.light-mode td,
body.light-mode th,
body.light-mode legend,
body.light-mode strong,
body.light-mode b {
    color: #18181b; /* Zinc-900 */
}

/* Exceptions for badges, buttons, etc */
body.light-mode .badge,
body.light-mode .btn,
body.light-mode .alert,
body.light-mode .svc-alert-danger,
body.light-mode .svc-alert-info,
body.light-mode .tdb-status-badge,
body.light-mode .tdb-btn-primary,
body.light-mode .tdb-btn-submit {
    /* Do not force color on these, let them inherit or keep their specific styling */
}

body.light-mode .text-muted,
body.light-mode .text-secondary {
    color: #52525b !important; /* Zinc-600 */
}

/* Dashboard Specific Overrides (External CSS Fixes) */

/* FS Vehicle Group Header */
body.light-mode .fs-vehicle-group h4 {
    color: #18181b !important;
}

/* WooCommerce Edit Account/Address Forms */
body.light-mode .woocommerce-account form.edit-account legend,
body.light-mode .woocommerce-account form.edit-address legend {
    color: #18181b !important;
}

body.light-mode .woocommerce-account form.edit-account .input-text,
body.light-mode .woocommerce-account form.edit-address .input-text,
body.light-mode .woocommerce-account form.edit-account select,
body.light-mode .woocommerce-account form.edit-address select {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #18181b !important;
    box-shadow: none !important;
}

/* Table Headers & Cells */
body.light-mode .woocommerce-account table.shop_table th {
    color: #52525b !important;
}

body.light-mode .woocommerce-account table.shop_table td {
    color: #18181b !important;
}

/* Address Box */
body.light-mode .woocommerce-account .woocommerce-Addresses .woocommerce-Address-title h3 {
    color: #18181b !important;
    border-bottom-color: #e2e8f0 !important;
}

body.light-mode .woocommerce-account .woocommerce-Addresses .woocommerce-Address-row {
    color: #3f3f46 !important;
}

/* File Service Buttons */
body.light-mode .btn-fs-dl-orig {
    color: #52525b !important;
    border-color: #cbd5e1 !important;
}

body.light-mode .btn-fs-dl-orig:hover {
    color: #18181b !important;
    border-color: #94a3b8 !important;
    background-color: #f1f5f9 !important;
}

/* Auth Page / My Account (tdb-my-account.css) */
body.light-mode .auth-card .nav-tabs .nav-link:hover {
    color: #18181b !important;
    background-color: #f1f5f9 !important;
}

/* Services Page Text */
body.light-mode .svc-text-sm-faded {
    color: #52525b !important;
    opacity: 1 !important;
}

/* Ensure Button Text remains white where needed */
body.light-mode .btn-primary,
body.light-mode .btn-success,
body.light-mode .btn-danger,
body.light-mode .btn-fs-success {
    color: #fff !important;
}

/* === MY ACCOUNT PAGE SPECIFIC LIGHT MODE FIXES === */

body.light-mode.page-template-page-my-account,
body.light-mode.woocommerce-account {
    background-color: #F8FAFC !important;
}

body.light-mode .tdb-portal-container {
    background-color: #F8FAFC !important;
}

body.light-mode .tdb-col-left {
    background-color: #FFFFFF !important;
    border-right-color: #E2E8F0 !important;
}

body.light-mode .tdb-feature-card {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

body.light-mode .tdb-icon-box {
    background: #F1F5F9 !important;
    color: #18181B !important;
}

body.light-mode .tdb-card-title,
body.light-mode .tdb-headline,
body.light-mode .tdb-form-title,
body.light-mode .tdb-label {
    color: #18181B !important;
}

body.light-mode .tdb-headline span {
    background: linear-gradient(135deg, #18181B 0%, #64748B 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.light-mode .tdb-subheadline,
body.light-mode .tdb-card-desc,
body.light-mode .tdb-form-subtitle,
body.light-mode .tdb-forgot-pass,
body.light-mode .tdb-nav-link {
    color: #64748B !important;
}

body.light-mode .tdb-nav-link.active {
    color: #18181B !important;
}

body.light-mode .tdb-input {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #18181B !important;
}

body.light-mode .tdb-btn-primary {
    background: #FF6B00 !important;
    color: #FFFFFF !important;
}

/* Dashboard Logged In */
body.light-mode .woocommerce-account .woocommerce {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .woocommerce-MyAccount-navigation {
    background: #F8FAFC !important;
    border-right-color: #E2E8F0 !important;
}

body.light-mode .woocommerce-MyAccount-navigation li a {
    color: #64748B !important;
}

body.light-mode .woocommerce-MyAccount-navigation li a:hover {
    background: #F1F5F9 !important;
    color: #FF6B00 !important;
}

body.light-mode .woocommerce-MyAccount-navigation li.is-active a {
    background: rgba(255, 107, 0, 0.1) !important;
    color: #FF6B00 !important;
}

body.light-mode .woocommerce-MyAccount-content {
    background: #FFFFFF !important;
    color: #52525B !important;
}

body.light-mode .woocommerce-MyAccount-content h2,
body.light-mode .woocommerce-MyAccount-content h3,
body.light-mode .woocommerce-MyAccount-content strong {
    color: #18181B !important;
}

/* Forms in Dashboard */
body.light-mode .woocommerce-EditAccountForm fieldset legend,
body.light-mode .woocommerce-address-fields h3 {
    color: #18181B !important;
}

body.light-mode .woocommerce-form-row label {
    color: #52525B !important;
}
