﻿body {
    margin: 0;
    font-family: "Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* LAYOUT */
.layout {
    display: flex;
    height: 100%;
    padding: 6px;
    overflow: hidden;
    /*background: #f0f0f0;*/
    /*background: #ffffff;*/
    background: #FCFCFC;
}

html, body {
    height: 100%;
    overflow: hidden;
}


/* SIDEBAR */
.sidebar {
    width: 280px;
    background: #D4D4D4;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    border-radius: 18px;
    padding: 18px;
    /*height: calc(100vh - 24px);*/
    height: 99vh;
    /*height: 100%;*/
    transition: width 0.5s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-search input {
    border: none;
    outline: none;
    background: transparent; /* Fondo transparente */
    color: inherit; /* Hereda el color del texto */
}

.sidebar.collapsed {
    width: 88px;
}

/* BRAND */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.brand-logo {
    width: 55px;
    height: auto;
    background: #fff;
    border-radius: 12px;
    padding: .4rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.brand-text {
    font-weight: 650;
    font-size: 1.1rem;
}

/* SEARCH */
.sidebar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 18px;
}

/* SECTIONS */
.section-title {
    font-size: 12px;
    color: #999;
    margin: 14px 0 6px;
    display: block;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    position: relative;
    font-weight: 550;
}

    .sidebar nav a:hover {
        background: #ececf2;
    }

    .sidebar nav a em.badge {
        margin-left: auto;
        font-style: normal;
        font-size: 12px;
        background: #e6e6ff;
        color: #5b5bd6;
        padding: 2px 6px;
        border-radius: 8px;
    }

/* FOOTER */
.sidebar-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}


/* COLLAPSE */
.sidebar span,
.sidebar .sidebar-search input,
.sidebar .section-title,
.sidebar .user-info {
    white-space: nowrap;
    transition: opacity 0.2s ease;

}

.sidebar.collapsed span,
.sidebar.collapsed .sidebar-search input,
.sidebar.collapsed .section-title,
.sidebar.collapsed .user-info {
    opacity: 0;
    width: 0;
    overflow: hidden;

}


.sidebar.collapsed .sidebar-footer {
    justify-content: center;
    align-items: center;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
}

.sidebar.collapsed nav a {
    justify-content: center;
}

    .sidebar.collapsed nav a i {
        margin: 0;
    }

.header-right {
    margin-left: auto;
    margin-right: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
}


.btn-complaint {
    display: flex;
    align-items: center;
    justify-content: center; 
    background: #f4f6f9; 
    border: 1px solid #e5e7eb;
    padding: 12px;
    border-radius: 50%;
    width:40px;
    height:40px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

    .btn-complaint:hover {
        background: #e5e7eb;
    }

    .btn-complaint i {
        font-size: 16px;
        color: #40444C;
    }


/* MAIN */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}



.content {
    flex: 1;
    overflow-y: auto;
    /*padding: px;*/
    border-radius: 12px;
    /*background: #fff;*/

    display: flex;
    flex-direction: column;

}

/* HEADER */
.header {
    height: 78px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: #fff;
    border-radius: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    position:relative;
}



.toggle-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #3b3c36;
}



@media (max-width: 1024px) {

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform .3s ease;
        border-radius: 12px;
    }

        .sidebar.open {
            transform: translateX(0);
        }

        .sidebar.collapsed {
            width: 280px;
        }

    .overlay.show {
        display: block;
    }

    .main {
        margin-left: 0;
    }

    .header {
        border-radius: 12px;
    }

    .hamburger {
        display: block;
    }


}




.page-body {
    flex: 1;
}

.page-footer {
    margin-top: 24px;
    padding-top: 12px;
    font-size: 13px;
    color: #777;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}





.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 999;
    display: none;
}

    .overlay.show {
        display: block;
    }




.linea-gris {
    border: none;
    border-top: 1px solid;
    margin: 20px 0;
}

.icon-bootstrap {
    font-size: 1.2rem; 
    line-height: 1; 
    display: inline-block;
}
.icon-list {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    font-weight: 900; 
}