*{
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* para quitar los botones de incrementar y decrementar en inputs number */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

:root{
    --grren-button: #70FF7CA3;

    --red-background-light: #FECACA;
    --red-background-default: #F87171;
    --red-background-strong: #DC2626;

    --red-text-light: #FECACA;
    --red-text-default: #F87171;
    --red-text-strong: #DC2626;

    --red-border-light: #FECACA;
    --red-border-default: #F87171;
    --red-border-strong: #DC2626;

    --text-primary: #2c2c2c;
    --text-secondary: #5a3d3d;
    --bg-light: #f9f0f0;
    --bg-card: #fff;

    --background-color: #f5f6f7;

    /* fonts */
    --monserrat: 'Montserrat', sans-serif;
}

/* clases del swal */
.swal-btn-confirm {
  color: #ffffff;
  background-color: #28a745;
}

.swal-btn-cancel {
  color: #ffffff;
  background-color: #dc3545;
}

.layout{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: start;
}

.sidebar{
    width: 20%;
    height: 100%;
    background-color: #ffffff;
    font-family: "Inter", sans-serif;
    border-right: 2px solid var(--red-border-light);
}

.sidebar_title_container{
    height: 88px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3%;
    padding: 7% 1%;
    box-sizing: border-box;
}

.sidebar_logo{
    width: 12%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar_title{
    margin: 0;
    width: fit-content;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(.5rem, 1.3vw, 2rem);
    font-weight: 800;
}

.sidebar_line{
    width: 100%;
    height: 2px;
    background-color: var(--red-border-light);
}

.sidebar_links_container{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5% 10%;
    box-sizing: border-box;
}

.sidebar_subtitle{
    margin: 0;
    width: fit-content;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(.5rem, .8vw, 1.3rem);
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 1px;
}

.sidebar_link{
    text-decoration: none;
    margin: 0;
    width: fit-content;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    font-size: clamp(1rem, 1.1vw, 1.6rem);
    font-weight: 500;
    color: black;
    gap: 5%;
    padding: 7% 5%;
    box-sizing: border-box;
    border-radius: 10px;
    border-left: 5px solid transparent;
    transition: all .2s ease-in-out;
}

.sidebar_link:hover{
    border-color: var(--red-border-default);
    background-color: var(--red-border-light);
}

.sidebar_link_logo{
    width: 15%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main_container{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sign-out_btn{
    all: unset;
    width: 10%;
    border: 0;
    background: #115DFC;
    border-radius: 7px;
    outline: none;
    color: #ffffff;
    cursor: pointer;
    padding: .5% 1%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5%;
    transition: all .3s ease-in-out;
    font-family: var(--monserrat);
    font-size: clamp(.5rem, .8vw, 1.5rem);
}

.sign-out_btn:hover{
    background-color: #0533cb;
}

.sign-out_icon{
    width: 10%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header_container{
    width: 100%;
    height: 90px;
    flex-shrink: 0;   
    background-color: var(--background-color);
    box-shadow: 0px 106px 42px rgba(0, 0, 0, 0.01),
    0px 59px 36px rgba(0, 0, 0, 0.05), 0px 26px 26px rgba(0, 0, 0, 0.09),
    0px 7px 15px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);
    font-family: "Inter", sans-serif;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 0 2%;
}

.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: center;
}

.breadcrumb li + li::before {
    content: "»";
    margin: 0 10px;
}

.breadcrumb a {
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--red-border-default);
}

.breadcrumb .active {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--red-border-strong);
    font-weight: 600;
}


.main{
    flex: 1;
    overflow-y: auto;
    background-color: var(--background-color);
    box-sizing: border-box;
    padding: 0 2%;
}

.menu-toggle {
    display: none;
}

.menu-close{
    display: none;
}


@media (max-width: 768px) {
    .header_container{
        flex-direction: row-reverse;
        justify-content: space-between;
        height: 70px;
    }
    
    .sign-out_btn {
        width: 50px;
        font-size: 0;
        padding: 1% 0;
    }
    .sign-out_icon{
        width: 50%;
    }

    .sidebar_title_container{
        flex-direction: row-reverse;
        justify-content: space-around;
        height: 70px;
    }

    .layout {
        position: relative;
        overflow-x: hidden;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 75%;
        max-width: 280px;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform .3s ease-in-out;
        box-shadow: 4px 0 20px rgba(0,0,0,.15);
    }

    /* cuando está abierto */
    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    /* overlay oscuro */
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s ease;
        z-index: 900;
    }

    .sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .main_container {
        width: 100%;
    }

    .header_container {
        padding: 3% 4%;
    }

    /* botón hamburguesa */
    .menu-toggle {
        display: block;
        all: unset;
        cursor: pointer;
        font-size: 1.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .menu-close{
        display: block;
        all: unset;
        cursor: pointer;
        font-size: 1.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3%;
        border-radius: 50px;
        background-color: #6f56ff31;
        text-align: center;
    }

}

/* ===== EXTRA SMALL ===== */
@media (max-width: 480px) {
    .sidebar {
        width: 85%;
    }
}
