@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
:root {
    /*Aquí las variables de color generales para dark y light
        https://getbootstrap.com/docs/5.3/customize/css-variables/
    */
    --sidebar-text-color-light: blue;
    --sidebar-text-color-dark: #e9ecef;
    --sidebar-width: 300px;
}
*,
::after,
::before {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    opacity: 1;
    overflow-y: scroll;
    margin: 0;
    padding-left:0;
    transition: background-color 0.5s, color 0.5s;
}
.light-mode body {
    background-color: white;
    color: black;
}

.dark-mode body {
    background-color: black;
    color: white;
}
a {
    cursor: pointer;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

li {
    list-style: none;
}

h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.275rem;
    color: var(--bs-emphasis-color);
}
.form-group {
    display: flex;
    align-items: center;
}

.form-group label {
        margin-right: 10px;
    }
.anaci {
    width: 100px !important;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    
}

input[type=number] {
    -moz-appearance: textfield;
}

.required-asterisk::after {
    content: " *";
    color: red;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Layout for admin dashboard skeleton */

.wrapper {
    align-items: stretch;
    display: flex;
    width: 100%;
}

/*#sidebar {
    max-width: 264px;
    min-width: 264px;*/
    /*background: var(--bs-dark);*/
    /*transition: all 0.35s ease-in-out;
    top:80px;
}*/
#sidebar {
    position: absolute;
    /*padding-top: 56px;  Ajusta esto a la altura de tu navbar */
    top: 56px;
    padding-left:0px;
    width: var(--sidebar-width);
    /*height: 100%;
    height: calc(100vh - 56px);*/
    height: 3000px;
    background-color: #343a40;
    color: white;
    /*padding: 10px;*/
    z-index: 1;
    transition: all 0.5s ease-in-out;
}

#ventanaweb {
    transition: margin-left 0.3s ease;
    margin-left: 0;
    padding-left: 0px;
}

#sidebar.collapsed + .main #ventanaweb {
    margin-left: 0;
    padding-left: 0px;
}
.light-mode #sidebar {
    background: var(--bs-light); 
    color: var(--sidebar-text-color-ligth);
}
.sidebar-item {
    color: var(--sidebar-text-color-dark) !important;
    font-size: 1.15rem;
    font-weight: 600;
}
.sidebar-item-2 {
    padding-left: 30px;
    
}
.light-mode .sidebar-item { /*.sidebar-item-2 */
    color: black !important;
}
.light-mode .sidebar-link {
    color: var(--sidebar-text-color-light) !important;
    font-size: 0.875rem;
    font-weight: 600;
}
.sidebar-link {
    color: #e9ecef !important;
    font-size: 1.15rem;
    font-weight: 600;
}
.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    width: 100%;
    /*background: var(--bs-dark-bg-subtle);*/
}

/* Sidebar Elements Style */

.sidebar-logo {
    padding: 1.15rem;
}

    .sidebar-logo a {
        color: #e9ecef;
        font-size: 1.15rem;
        font-weight: 600;
    }

.sidebar-nav {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
    margin-left: 0;
}

.sidebar-header {
    color: #e9ecef;
    font-size: .75rem;
    padding: 1.5rem 1.5rem .375rem;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #e9ecef;
    position: relative;
    display: block;
    font-size: 0.875rem;
}

.sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

.avatar {
    height: 40px;
    width: 40px;
}

.navbar-expand .navbar-nav {
    margin-left: auto;
}

.content {
    flex: 1;
    max-width: 100vw;
    width: 100vw;
}



.card {
    box-shadow: 0 0 .875rem 0 rgba(34, 46, 60, .05);
    margin-bottom: 24px;
}

.illustration {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-emphasis-color);
}

.illustration-img {
    max-width: 150px;
    width: 100%;
}

/* Sidebar Toggle */

#sidebar.collapsed {
    margin-left: calc(-1 * var(--sidebar-width));
}

/* Estilos para la barra de desplazamiento en modo claro */
.light-mode ::-webkit-scrollbar {
    width: 12px;
}

.light-mode ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.light-mode ::-webkit-scrollbar-thumb {
    background: #888;
}

    .light-mode ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Estilos para la barra de desplazamiento en modo claro */
.light-mode ::-webkit-scrollbar {
    width: 12px;
}

.light-mode ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.light-mode ::-webkit-scrollbar-thumb {
    background: #888;
}

    .light-mode ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Estilos para la barra de desplazamiento en modo oscuro */
.dark-mode ::-webkit-scrollbar {
    width: 12px;
}

.dark-mode ::-webkit-scrollbar-track {
    background: #2b2b2b;
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: #555;
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #333;
}
/* Footer and Nav */



/* Theme Toggler */

.theme-toggle {
    position: fixed;
    top: 50%;
    transform: translateY(-65%);
    text-align: center;
    z-index: 10;
    right: 0;
    left: auto;
    border: none;
    background-color: var(--bs-body-color);
}

html[data-bs-theme="dark"] .theme-toggle .fa-sun,
html[data-bs-theme="light"] .theme-toggle .fa-moon {
    cursor: pointer;
    /*padding: 10px;*/
    display: block;
    font-size: 1.25rem;
    color: #FFF;
}

html[data-bs-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

html[data-bs-theme="light"] .theme-toggle .fa-sun {
    display: none;
}

.light-mode {
    background-color: white;
    color: black;
    --bs-heading-color: black;
}

.dark-mode {
    background-color: black;
    color: white;
    --bs-heading-color: #ffffff;
}

.light-mode-sidebar {
    background-color: #ffffff;
    background: var(--bs-light);
    color: #000000;
}

.dark-mode-sidebar {
    background: var(--bs-dark);
    color: #ffffff;
}


@media (min-width: 992px) {
    #sidebar-wrapper {
        margin-left: 0 !important;
    }
    #sidebar {
        display: block;
    }
    #sidebar-toggle {
        display: block;
    }
}

/*@media (max-width: 991.98px) {
    #sidebar-wrapper {
        margin-left: -12rem;
    }
    
}*/

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
    .sidebar {
        display: block;
    }
        #sidebar-toggle {
        display: none;
    }
    #ventanaweb {
        margin-left: var(--sidebar-width); /* Ajusta este valor según el ancho de tu sidebar */
    }
    .content {
        max-width: auto;
        width: auto;
    }
}

@media (max-width:767.98px) {

    .js-sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }

    #sidebar.collapsed {
        margin-left: 0;
    }

    .navbar,
    footer {
        width: 100vw;
    }
}


