/* === Light mode (default) === */

body {
    background-color: #ededed;
}

a {
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    color: #3957f1;
}

.navBackground {
    background: #3957f1;
}

.text-title {
    color: #3957f1;
}

.card-header {
    color: black;
}

.card-footer {
    color: black;
}

.form-label {
    color: black !important;
}

.e-grid .e-altrow {
    background-color: #e8e8ef;
}

.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th {
    background-color: #eff1f4;
}

.custom-hover-card:hover {
    background-color: #e2e6ea;
    transition: background-color 0.3s ease;
}

.seccion-ayuda {
    background-color: #e9f3ff;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    padding: 0.25rem;
    overflow: hidden;
    max-width: 100%;
}

.btn-seccion {
    all: unset;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #0d47a1;
    background-color: #d0e7ff;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    box-sizing: border-box;
}

    .btn-seccion:hover {
        background-color: #b6dbff;
    }

.chevron {
    font-size: 0.9rem;
    width: 1rem;
    text-align: center;
    color: #2f5fa7;
}

.contenido-unico {
    background-color: #ffffff;
    color: #333;
    padding: 1rem;
    margin: 0.5rem 0.5rem 0.5rem 1rem;
    border-radius: 0.25rem;
    border-left: 3px solid #64b5f6;
}

.e-accordion .e-acrdn-item {
    margin-bottom: 0.25rem !important;
}

.seccion-ayuda,
.btn-seccion {
    max-width: 100%;
    overflow-x: hidden;
}

/* === Dark mode === */

[data-bs-theme="dark"] body {
    background-color: black;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: cornflowerblue;
}

[data-bs-theme="dark"] .alert {
    color: white;
}

[data-bs-theme="dark"] .form-select {
    background: #2D2D2D;
    color: #E1E1E1;
}

[data-bs-theme="dark"] .navBackground {
    background: #000000;
}

[data-bs-theme="dark"] .text-title {
    color: cornflowerblue;
}

[data-bs-theme="dark"] .link-primary {
    color: #8bb9fe !important;
}

[data-bs-theme="dark"] .e-grid .e-altrow {
    background-color: #333333;
}

[data-bs-theme="dark"] .e-form-label {
    color: white !important;
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-child(odd) > td,
[data-bs-theme="dark"] .table-striped > tbody > tr:nth-child(odd) > th {
    background-color: #333333;
}

[data-bs-theme="dark"] .card-footer {
    color: white;
}

[data-bs-theme="dark"] .card-header {
    color: white;
}

[data-bs-theme="dark"] .custom-hover-card:hover {
    background-color: #23272b;
    transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .seccion-ayuda {
    background-color: #2e2e2e;
}

[data-bs-theme="dark"] .btn-seccion {
    color: #e0e0e0;
    background-color: #3d3d3d;
}

    [data-bs-theme="dark"] .btn-seccion:hover {
        background-color: #4c4c4c;
    }

[data-bs-theme="dark"] .chevron {
    color: #aaa;
}

[data-bs-theme="dark"] .contenido-unico {
    background-color: #383838;
    color: #f1f1f1;
    border-left: 3px solid #4a90e2;
}
