.aside {
    background-color: #333333;
}

body {
    color: #f2eada;
    background-color: #333333 !important;
}

.text-muted {
    color: #f2eada !important;
}

.text-dark-50 {
    color: #ffffff !important;
}

.btn.btn-clean:hover {
    background-color: #333333 !important;
    border: solid;
    border-color: #f2eada;
    color: #333333 !important; /* Mant�n el color del texto */
    transform: scale(1.05); /* Escala ligeramente el bot�n */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.8); /* Sombra m�s pronunciada al pasar el cursor */
}

.btn.btn-clean.dropdown-toggle:after {
    color: #333333 !important;
}


a {
    color: #f2eada !important;
}

    a:hover {
        background-color: #939191 !important;
        color: #f2eada !important;
        transition: transform 0.3s, background-color 0.3s, color 0.3s, border 0.3s, box-shadow 0.3s;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra inicial */
    }


.offcanvas {
    background-color: #333333;
    -webkit-box-shadow: 0px 1px 9px -3px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 1px 9px -3px rgba(0, 0, 0, 0.25);
    border: solid;
    border-color: #f2eada;
}

#Reja.menu-link {
    background-color: #333333 !important;
}

@media (min-width: 992px) {
    .brand {
        background-color: #333333;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

        .brand .btn i {
            color: #f2eada;
        }

        .brand .btn .svg-icon svg g [fill] {
            -webkit-transition: fill 0.3s ease;
            transition: fill 0.3s ease;
            fill: #494b74;
        }

        .brand .btn .svg-icon svg:hover g [fill] {
            -webkit-transition: fill 0.3s ease;
            transition: fill 0.3s ease;
        }

        .brand .btn.active .svg-icon svg g [fill], .brand .btn:hover .svg-icon svg g [fill] {
            -webkit-transition: fill 0.3s ease;
            transition: fill 0.3s ease;
            fill: #333333;
        }

        .brand .btn.active .svg-icon svg:hover g [fill], .brand .btn:hover .svg-icon svg:hover g [fill] {
            -webkit-transition: fill 0.3s ease;
            transition: fill 0.3s ease;
        }

        .brand .btn.active i, .brand .btn:hover i {
            color: #f2eada;
        }
}

@media (max-width: 991.98px) {
    .header-mobile {
        background-color: #333333;
    }

        .header-mobile .burger-icon span {
            background-color: rgb(197, 195, 201); /*MOD LUIS*/
        }

            .header-mobile .burger-icon span::before, .header-mobile .burger-icon span::after {
                background-color: rgb(197, 195, 201); /*MOD LUIS*/
            }

        .header-mobile .burger-icon:hover span {
            background-color: #333333;
        }

            .header-mobile .burger-icon:hover span::before, .header-mobile .burger-icon:hover span::after {
                background-color: #333333;
            }

        .header-mobile .burger-icon-active span {
            background-color: #333333;
        }

            .header-mobile .burger-icon-active span::before, .header-mobile .burger-icon-active span::after {
                background-color: #333333;
            }

        .header-mobile .btn i {
            color: #f2eada;
        }

        .header-mobile .btn .svg-icon svg g [fill] {
            -webkit-transition: fill 0.3s ease;
            transition: fill 0.3s ease;
            fill: #484f66;
        }

        .header-mobile .btn .svg-icon svg:hover g [fill] {
            -webkit-transition: fill 0.3s ease;
            transition: fill 0.3s ease;
        }

        .header-mobile .btn.active .svg-icon svg g [fill], .header-mobile .btn:hover .svg-icon svg g [fill] {
            -webkit-transition: fill 0.3s ease;
            transition: fill 0.3s ease;
            fill: #3699FF;
        }

        .header-mobile .btn.active .svg-icon svg:hover g [fill], .header-mobile .btn:hover .svg-icon svg:hover g [fill] {
            -webkit-transition: fill 0.3s ease;
            transition: fill 0.3s ease;
        }

        .header-mobile .btn.active i, .header-mobile .btn:hover i {
            color: #3699FF;
        }
}

/* ===== MODO OSCURO - ACCESIBILIDAD ECOLÓGICOS ===== */
/* Inputs */
.input-institucional,
.input-institucional2,
input[type="text"],
input[type="password"],
select {
    background: #e0e0e0 !important;
    border-color: #4a4a6a !important;
    color: var(--text-dark) !important;
}
    .input-institucional::placeholder,
    .input-institucional2::placeholder,
    input[type="text"]::placeholder,
    input[type="password"]::placeholder {
        color: #2a2a3e !important; /* O un tono un poco más claro si quieres que parezca sugerencia */
        opacity: 1; /* Obligatorio para Firefox */
    }

    .input-institucional:focus,
    .input-institucional2:focus,
    input[type="text"]:focus,
    input[type="password"]:focus,
    select:focus {
        background: #e0e0e0 !important;
        border-color: #4dabf7 !important;
        box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2) !important;
    }

    .input-institucional:disabled,
    .input-institucional2:disabled,
    input[type="text"]:disabled,
    input[type="password"]:disabled,
    select:disabled {
        background: #e0e0e0 !important;
        color: #2a2a3e !important;
    }

/* Tabla */
.tabla-gases {
    border: 1px solid #4a4a6a !important;
}

.tabla-gases thead {
    background: #1e1e1e !important;
}

    .tabla-gases th {
        background: #5a4a5e !important;
        color: #e0e0e0 !important;
        border-bottom: 2px solid #4a4a6a !important;
    }

.tabla-gases tbody tr:nth-child(even) {
    background: #252535 !important;
    color: #e0e0e0 !important;
}

.tabla-gases tbody tr:hover {
    background: #2a2a3e !important;
}

    .tabla-gases td {
        border-bottom: 1px solid #4a4a6a !important;
        color: #5a4a5e !important;
        background-color: #e0e0e0;
    }

/* Botones */
.btn-outline-secondary {
    background: transparent !important;
    color: #e0e0e0 !important;
    border: 2px solid #e0e0e0 !important;
}

.btn-outline-secondary:hover {
    background: #e0e0e0 !important;
    color: #1e1e2f !important;
}

.btn-success {
    background: #157347 !important;
}

.btn-success:hover {
    background: #146c43 !important;
}

.btn-primary {
    background: #0b5ed7 !important;
}

.btn-primary:hover {
    background: #0a58ca !important;
}

/* Labels y títulos */
.card-title,
label,
.form-row-eco label {
    color: #e0e0e0 !important;
}

/* Cards */
.card-declaracion,
.card-declaracion.withlabel {
    border-color: rgba(255,255,255,0.1) !important;
}

/* HR */
hr {
    border-color: rgba(255,255,255,0.15) !important;
    opacity: 0.3 !important;
}

/* Card title border */
.card-title {
    border-bottom-color: #e0e0e0 !important;
}

/* Total base container */
.total-base-container label {
    color: #e0e0e0 !important;
}

.total-base-container input,
.total-base-container select {
    background: #e0e0e0 !important;
    border-color: #4a4a6a !important;
    color: #2a2a3e !important;
}

/* Acciones formulario border */
.acciones-formulario {
    border-top-color: #e0e0e0 !important;
}

/* Eco card */
.eco-card {
    border-color: rgba(255,255,255,0.1) !important;
}

/* Card info */
.card-info {
    border-left-color: #f59e0b !important;
}

.card-info p {
    color: #e0e0e0 !important;
}

/* Tooltips en modo oscuro */
body.modo-oscuro .btn-success[data-title]::after,
body.modo-oscuro .btn-primary[data-title]::after,
body.modo-oscuro .btn-outline-secondary[data-title]::after {
    background: #f2eada !important;
    color: #333333 !important;
}

body.modo-oscuro .btn-success[data-title]::before,
body.modo-oscuro .btn-primary[data-title]::before,
body.modo-oscuro .btn-outline-secondary[data-title]::before {
    border-top-color: #f2eada !important;
}

body.modo-oscuro .btnEliminar[data-title]::after {
    background: #f2eada !important;
    color: #333333 !important;
}

/* Tooltip botón ayuda modo oscuro */
body.modo-oscuro .btn-ayuda[data-title]::after {
    background: #f2eada !important;
    color: #333333 !important;
}
