/* --------------------
   LOGIN
-------------------- */
.login-body {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.logo {
    width: 80px;
    margin-bottom: 20px;
}

.brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #6a1b9a;
}

.brand span {
    color: #d32f2f;
    font-weight: 900;
}

.btn-primary {
    background-color: #6a1b9a;
    border: none;
}

.btn-primary:hover {
    background-color: #4a148c;
}

.form-text {
    font-size: 0.9rem;
}

/* --------------------
   SIDEBAR PERSONALIZADO
-------------------- */
.sidebar {
    min-height: 100vh;
    background-color: #dcdcdc;
}

.sidebar .list-group-item {
    background-color: transparent;
    color: #333333;
    border: none;
    padding: 8px 16px;
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item.active {
    background-color: #cfcfcf;
    color: #000000;
}

.sidebar-heading {
    font-weight: bold;
    background-color: #2e0854;
    color: #ffffff;
    padding: 1rem;
    font-size: 1.25rem;
}

#wrapper {
    display: flex;
    flex-direction: row;
}

#page-content-wrapper {
    flex: 1;
    min-height: 100vh;
}

.navbar {
    height: 60px;
    display: flex;
    align-items: center;
}

@media (max-width: 767.98px) {
    #sidebar-wrapper {
        position: fixed;
        top: 60px;
        left: 0;
        height: 100%;
        width: 250px;
        z-index: 1030;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        background-color: #dcdcdc;
    }

    #wrapper.toggled #sidebar-wrapper {
        transform: translateX(0);
    }

    .sidebar-heading {
        font-size: 1rem;
        padding: 0.75rem;
    }
}
/* --------------------
   TOGGLE DE ACORDEÓN EN SIDEBAR
-------------------- */
.accordion-button::after {
    display: none;
}

.toggle-icon {
    font-size: 1.2rem;
    margin-left: auto;
}

.accordion-button.collapsed .toggle-icon::before {
    content: "+";
}

.accordion-button:not(.collapsed) .toggle-icon::before {
    content: "-";
}

/* --------------------
   BOTONES PERSONALIZADOS
-------------------- */
.btn-volver {
    border: 1px solid #0d6efd;
    background-color: transparent;
    color: #0d6efd;
    padding: 6px 12px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-volver:hover {
    background-color: #0d6efd;
    color: #fff;
}

.btn-guardar {
    background-color: #198754;
    color: #fff;
    font-weight: 500;
    padding: 6px 16px;
    border: none;
}

.btn-guardar:hover {
    background-color: #157347;
}

.btn-eliminar {
    background-color: #dc3545;
    color: white;
    font-weight: 500;
    padding: 6px 12px;
    border: none;
}

.btn-eliminar:hover {
    background-color: #bb2d3b;
}

.btn-secundario {
    border: 1px solid #6c757d;
    background-color: transparent;
    color: #6c757d;
    padding: 6px 12px;
}

.btn-secundario:hover {
    background-color: #6c757d;
    color: white;
}

/* --------------------
   TÍTULOS Y TARJETAS
-------------------- */
h3.titulo-modulo {
    font-weight: bold;
    text-transform: uppercase;
    color: #5a315f;
    border-bottom: 2px solid #c3a2d7;
    padding-bottom: 0.25rem;
    margin-bottom: 1rem;
}

.card-titulo {
    font-size: 1.1rem;
    font-weight: bold;
    color: #5a315f;
}

.card-subtitulo {
    font-size: 0.95rem;
    color: #6c757d;
}

/* --------------------
   ESPACIADOS UTILES
-------------------- */
.mt-6 { margin-top: 4rem; }
.mb-6 { margin-bottom: 4rem; }

/* --------------------
   MODALES
-------------------- */
.modal-header {
    background-color: #f5f5f5;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}
