﻿body {
    background: linear-gradient(to bottom, #f3f4f6, lightgrey);
    background-color: lightgrey;    
    height: 85vh;
    overflow-y:hidden;
}

.login-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.btn-primary {
    background-color: #0F4D8C;
    border-color: #0F4D8C;
}

.btn-primary:hover {
    background-color: #1259A3;
}

#btnSubmit {
    width: 250px;
}

.layout {
    position: relative; /* Cambiado de grid a relative para que los elementos dentro puedan posicionarse con absolute */
    height: 100vh; /* Toda la altura de la pantalla */
}

.main-content {
    padding-top: 25px;
    width: calc(100% - 250px);
    height: 100vh;    
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
}

.sidebar {
    background-color: white;
    width: 240px;
    height: 100vh;
    color: #004c98;
    overflow: hidden;
    transition: width 0.3s ease-in-out;
    padding-left: 10px;
}

    .sidebar a {
        color: #004c98; /* #0d6efd; */ /* #004c98;  #0077cc;  */
        text-decoration: none;
        display: flex;
        align-items: center;
        border-radius: 10px;
        white-space: nowrap;
        overflow: hidden;
        height: 50px;
        width: 225px;
        margin-left:10px;
    }

    .sidebar.collapsed #divBotonera {
        width: 100px;
    }

    .sidebar.collapsed a {
        /*justify-content: center;*/
        margin-left: 12px;
        border-radius: 20px;
        width:100px !important;
    }

    .sidebar i {
        font-size: 30px;  /*Ajusto el tamaño del ícono */         
    }

    .sidebar.collapsed i {
        margin-right: 0; /* Evita espacio extra cuando está colapsada */
        text-align: center;
        width: 100%;
        font-size: 30px; /* Ajusto el tamaño del ícono */
    }

    .sidebar.collapsed {
        /*left: 0px;*/
        width: 80px;
        padding: 0px !important;
    }
        
    .sidebar.collapsed #logoArriba {
        display: none;
    }

    .sidebar.collapsed .sidebar-text {
        display: none;
    }


/* Ajustar la barra superior cuando la sidebar se colapsa */
.topbar {
    height: 80px;     
    display: flex;
    justify-content: space-between;
    align-items: self-end;
    padding: 0;
    transition: all 0.3s ease-in-out;
}

#toggleSidebar {
    background-color: white;
    color: #004c98;
    border: none;
    margin-left: 10px;
}

.sidebar.collapsed #toggleSidebar i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

#logoAbajo {
    transition: width 0.3s ease-in-out;
}

#divLogo {
    transition: width 0.3s ease-in-out;
}

#producto {
    transition: width 0.3s ease-in-out;
}

 

/* este es ni bien inicia la pagina. */
.submenu {
    display: none;
}


#divLogoBoton {
    display: flex;
    position: absolute;
    height: 65px;
    align-items: end;
    justify-content: center;
}


html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}



#hrDivisionTitulo {
    /* Esto viene heredado... no lo toco en los css de cada pagina. Solo toco el ----> border: 1px solid #0a4a8e;. */
    opacity: 1;
    margin: 1rem 0;
    border: 0;
    border-top: var(--bs-border-width) solid gray;    
}
 