/* ======================================================
   CONFIGURACIÓN GENERAL
   ====================================================== */

/* TEMA CLARO (Default) */
body.tema-claro {
    background-color: #f8f9fa;
    color: #212529;
    transition: background-color 0.3s ease;
}

.check-caseta{
   border: 2px solid #ff5733 !important;
}
/* TEMA OSCURO */
body.tema-oscuro {
    background-color: #121212;
    color: #f1f1f1;
    transition: background-color 0.3s ease;
}

/* ======================================================
   ADAPTACIÓN AUTOMÁTICA PARA MODO OSCURO
   ====================================================== */

/*  tarjetas, contenedores blancos y bordes */
body.tema-oscuro .card,
body.tema-oscuro .bg-white,
body.tema-oscuro .list-group-item,
body.tema-oscuro .modal-content,
body.tema-oscuro .border {
    background-color: #1e1e1e !important;
    color: #f1f1f1 !important;
    border-color: #333 !important;
}

/* Tablas en modo oscuro */
body.tema-oscuro .table {
    color: #f1f1f1 !important;
    background-color: #1e1e1e !important;
}

body.tema-oscuro .table th,
body.tema-oscuro .table td {
    border-color: #333 !important;
}

/* Inputs, Selects y Formularios */
body.tema-oscuro .form-control,
body.tema-oscuro .form-select {
    background-color: #2b2b2b !important;
    border-color: #444 !important;
    color: #fff !important;
}

body.tema-oscuro .form-control:focus,
body.tema-oscuro .form-select:focus {
    background-color: #333 !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Textos secundarios y badges */
body.tema-oscuro .text-muted {
    color: #bbb !important;
}

body.tema-oscuro hr {
    background-color: #444;
    opacity: 0.5;
}

/* Enlaces */
body.tema-oscuro a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #9ecbff;
}

body.tema-oscuro a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: #c2e0ff;
}

/* Ajuste específico para los dropdowns de la barra */
body.tema-oscuro .dropdown-menu {
    background-color: #2b2b2b;
    border-color: #444;
}

body.tema-oscuro .dropdown-item {
    color: #eee;
}

body.tema-oscuro .dropdown-item:hover {
    background-color: #3d3d3d;
    color: #fff;
}
/* ======================================================
   RESPONSIVO USO DE TELEFONO Y TABLET
   ====================================================== */

/* TABLET (576px - 768px) */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .card {
        margin-bottom: 15px;
    }
}

/* TELEFONO (menos de 576px) */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .table th, .table td {
        font-size: 0.78rem;
        padding: 0.4rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 5px;
    }

    /* Login */
    .login-box {
        width: 90% !important;
        padding: 20px;
    }

    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }

    h1, h2, h3 {
        font-size: 1.3rem;
    }
}
/* ======================================================
   BARRA DE NAVEGACION 
   ====================================================== */

@media (max-width: 991px) {
    
    /* Evita que el contenido se desplace cuando abre el menú */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #212529;
        padding: 10px 15px;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    }

    /* Que el contenido debajo no se mueva */
    body {
        overflow-x: hidden;
    }
     /* Menu configuracion usuario */
    .dropdown-menu-end {
        right: 0 !important;
        left: auto !important;
        position: fixed !important;
        top: 60px !important;
        width: 220px !important;
    }
}