/*!
* Light Theme Override
* Fuerza texto más oscuro (primary) en tema light para mejor legibilidad
*/

/* Cuando el tema es light o no está definido */
[data-bs-theme="light"],
:root:not([data-bs-theme="dark"]) {
    /* Textos principales más oscuros */
    --bs-body-color: #1e2027;
    --bs-heading-color: #050911;

    /* Links más oscuros */
    --bs-link-color: #3a57e8;
    --bs-link-hover-color: #2845c7;

    /* Texto muted más oscuro pero aún diferenciable */
    --bs-secondary-color: #4a5568;
    --bs-tertiary-color: #6b7280;
}

/* Forzar texto más oscuro en elementos comunes del tema light */
[data-bs-theme="light"] body,
:root:not([data-bs-theme="dark"]) body {
    color: #1e2027 !important;
}

[data-bs-theme="light"] .text-body,
:root:not([data-bs-theme="dark"]) .text-body {
    color: #1e2027 !important;
}

[data-bs-theme="light"] .text-muted,
:root:not([data-bs-theme="dark"]) .text-muted {
    color: #4a5568 !important;
}

/* Headings más oscuros */
[data-bs-theme="light"] h1,
[data-bs-theme="light"] h2,
[data-bs-theme="light"] h3,
[data-bs-theme="light"] h4,
[data-bs-theme="light"] h5,
[data-bs-theme="light"] h6,
[data-bs-theme="light"] .h1,
[data-bs-theme="light"] .h2,
[data-bs-theme="light"] .h3,
[data-bs-theme="light"] .h4,
[data-bs-theme="light"] .h5,
[data-bs-theme="light"] .h6,
:root:not([data-bs-theme="dark"]) h1,
:root:not([data-bs-theme="dark"]) h2,
:root:not([data-bs-theme="dark"]) h3,
:root:not([data-bs-theme="dark"]) h4,
:root:not([data-bs-theme="dark"]) h5,
:root:not([data-bs-theme="dark"]) h6,
:root:not([data-bs-theme="dark"]) .h1,
:root:not([data-bs-theme="dark"]) .h2,
:root:not([data-bs-theme="dark"]) .h3,
:root:not([data-bs-theme="dark"]) .h4,
:root:not([data-bs-theme="dark"]) .h5,
:root:not([data-bs-theme="dark"]) .h6 {
    color: #050911 !important;
}

/* Card titles más oscuros */
[data-bs-theme="light"] .card-title,
:root:not([data-bs-theme="dark"]) .card-title {
    color: #050911 !important;
}

/* Labels de formularios más oscuros */
[data-bs-theme="light"] .form-label,
[data-bs-theme="light"] label,
:root:not([data-bs-theme="dark"]) .form-label,
:root:not([data-bs-theme="dark"]) label {
    color: #1e2027 !important;
}

/* Texto en tablas más oscuro */
[data-bs-theme="light"] .table,
:root:not([data-bs-theme="dark"]) .table {
    color: #1e2027 !important;
}

/* Texto en listas más oscuro */
[data-bs-theme="light"] .list-group-item,
:root:not([data-bs-theme="dark"]) .list-group-item {
    color: #1e2027 !important;
}

/* Placeholder de inputs visible pero diferenciado */
[data-bs-theme="light"] ::placeholder,
:root:not([data-bs-theme="dark"]) ::placeholder {
    color: #6b7280 !important;
    opacity: 0.7;
}

/* Links en sidebar más oscuros */
[data-bs-theme="light"] .sidebar-link,
[data-bs-theme="light"] .nav-link,
:root:not([data-bs-theme="dark"]) .sidebar-link,
:root:not([data-bs-theme="dark"]) .nav-link {
    color: #1e2027 !important;
}

/* Texto en alertas */
[data-bs-theme="light"] .alert,
:root:not([data-bs-theme="dark"]) .alert {
    color: #1e2027 !important;
}

/* Breadcrumbs más oscuros */
[data-bs-theme="light"] .breadcrumb-item,
:root:not([data-bs-theme="dark"]) .breadcrumb-item {
    color: #4a5568 !important;
}

[data-bs-theme="light"] .breadcrumb-item.active,
:root:not([data-bs-theme="dark"]) .breadcrumb-item.active {
    color: #1e2027 !important;
}

/* Dropdown items */
[data-bs-theme="light"] .dropdown-item,
:root:not([data-bs-theme="dark"]) .dropdown-item {
    color: #1e2027 !important;
}

/* Small text más visible */
[data-bs-theme="light"] small,
[data-bs-theme="light"] .small,
:root:not([data-bs-theme="dark"]) small,
:root:not([data-bs-theme="dark"]) .small {
    color: #4a5568 !important;
}

/* Párrafos */
[data-bs-theme="light"] p,
:root:not([data-bs-theme="dark"]) p {
    color: #1e2027 !important;
}

/* Texto en badges (no afectar bg) */
[data-bs-theme="light"] .badge,
:root:not([data-bs-theme="dark"]) .badge {
    /* Mantener el color de fondo original de cada badge */
}

/* Strong/Bold más oscuro */
[data-bs-theme="light"] strong,
[data-bs-theme="light"] b,
:root:not([data-bs-theme="dark"]) strong,
:root:not([data-bs-theme="dark"]) b {
    color: #050911 !important;
}
