/* light-override.css */
[data-bs-theme="light"] {
    --bs-body-bg: #ffffff;
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-body-color: #4e4f4f;
    --bs-body-color-rgb: 78, 79, 79;

    --bs-emphasis-color: #232526;
    --bs-emphasis-color-rgb: 35, 37, 38;

    --bs-secondary-color: #8f8f8b;
    --bs-secondary-color-rgb: 143, 143, 139;
    --bs-secondary-bg: #f5f5f4;
    --bs-secondary-bg-rgb: 245, 245, 244;

    --bs-tertiary-color: rgba(78, 79, 79, 0.5);
    --bs-tertiary-bg: #faf9f7;
    --bs-tertiary-bg-rgb: 250, 249, 247;

    --bs-heading-color: #232526;

    --bs-border-color: #e5e3dc;
    --bs-border-color-translucent: rgba(0, 0, 0, 0.1);

    --bs-light: #f5f5f4;
    --bs-light-rgb: 245, 245, 244;
    --bs-dark: #232526;
    --bs-dark-rgb: 35, 37, 38;

    --bs-light-bg-subtle: #f8f8f7;
    --bs-dark-bg-subtle: #e9e9e8;
    --bs-light-text-emphasis: #4e4f4f;
    --bs-dark-text-emphasis: #232526;
}

/* Navbar, cards, dropdowns jaisi cheezein jo direct color use karti hain */
[data-bs-theme="light"] .layout-navbar,
[data-bs-theme="light"] .card,
[data-bs-theme="light"] .dropdown-menu {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    box-shadow: 0 0.1875rem 0.5rem 0 rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .bg-navbar-theme {
    background-color: #ffffff !important;
}

/* ----------------------- */

/* ===== SIDEBAR ===== */
[data-bs-theme="light"] .layout-menu,
[data-bs-theme="light"] .bg-menu-theme {
    background-color: #ffffff !important;
    color: #4e4f4f !important;
}

[data-bs-theme="light"] .menu-link,
[data-bs-theme="light"] .menu-item .menu-link {
    color: #4e4f4f !important;
}

[data-bs-theme="light"] .menu-link:hover,
[data-bs-theme="light"] .menu-item.active > .menu-link {
    background-color: #f5f5f4 !important;
    color: #232526 !important;
}

[data-bs-theme="light"] .menu-sub {
    background-color: #fafaf9 !important;
}

[data-bs-theme="light"] .app-brand-text {
    color: #232526 !important;
}

/* ===== MAIN CONTENT / PAGE BACKGROUND ===== */
[data-bs-theme="light"] .layout-page,
[data-bs-theme="light"] .content-wrapper,
[data-bs-theme="light"] .layout-wrapper,
[data-bs-theme="light"] body {
    background-color: #f5f5f4 !important;
    color: #4e4f4f !important;
}

/* ===== NAVBAR (already added, repeating for completeness) ===== */
[data-bs-theme="light"] .layout-navbar,
[data-bs-theme="light"] .bg-navbar-theme {
    background-color: #ffffff !important;
    color: #4e4f4f !important;
}

/* ===== CARDS ===== */
[data-bs-theme="light"] .card,
[data-bs-theme="light"] .card-body,
[data-bs-theme="light"] .card-header,
[data-bs-theme="light"] .card-footer {
    background-color: #ffffff !important;
    color: #4e4f4f !important;
    border-color: #e5e3dc !important;
}

/* ===== TABLES ===== */
[data-bs-theme="light"] .table {
    color: #4e4f4f !important;
    --bs-table-bg: #ffffff;
    --bs-table-striped-bg: #f8f8f7;
    --bs-table-border-color: #e5e3dc;
}

[data-bs-theme="light"] .table thead th {
    background-color: #f5f5f4 !important;
    color: #4e4f4f !important;
}

/* ===== DROPDOWNS ===== */
[data-bs-theme="light"] .dropdown-menu {
    background-color: #ffffff !important;
    color: #4e4f4f !important;
    border-color: #e5e3dc !important;
}

[data-bs-theme="light"] .dropdown-item {
    color: #4e4f4f !important;
}

[data-bs-theme="light"] .dropdown-item:hover {
    background-color: #f5f5f4 !important;
}

/* ===== FORMS / INPUTS ===== */
[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
    background-color: #ffffff !important;
    color: #4e4f4f !important;
    border-color: #e5e3dc !important;
}

/* ===== FOOTER ===== */
[data-bs-theme="light"] .content-footer,
[data-bs-theme="light"] .footer {
    background-color: #ffffff !important;
    color: #4e4f4f !important;
}

/* ===== MODALS ===== */
[data-bs-theme="light"] .modal-content {
    background-color: #ffffff !important;
    color: #4e4f4f !important;
}

[data-bs-theme="light"] {
    /* Menu / Sidebar */
    --bs-menu-bg: #ffffff;
    --bs-menu-bg-rgb: 255, 255, 255;
    --bs-menu-color: #4e4f4f;
    --bs-menu-color-rgb: 78, 79, 79;
    --bs-menu-hover-bg: #f5f5f4;
    --bs-menu-hover-color: #e9c176;
    --bs-menu-sub-active-bg: var(--bs-primary-bg-subtle);
    --bs-menu-sub-active-color: var(--bs-primary);
    --bs-menu-active-color: var(--bs-primary);
    --bs-menu-active-bg: var(--bs-primary-bg-subtle);
    --bs-menu-active-toggle-bg: #f5f5f4;
    --bs-menu-horizontal-active-bg: var(--bs-menu-bg);
    --bs-menu-box-shadow: 0 0.125rem 0.375rem 0 rgba(0, 0, 0, 0.08);
    --bs-menu-divider-color: #e5e3dc;
}
