/* ===== SIDEBAR ===== */
#sidebar {
    width: 280px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ddd;
    background: #fff;
    position: fixed;
    left: 0;
    top: 0;
}

/* Logo */
#sidebar .logo-menu {
    text-align: left;
    padding: 12px 12px 10px 25px;
    border-bottom: 1px solid #eee;
}

#sidebar .logo-menu img {
    width: 150px;
    max-width: 180px;
}

/* Perfil */
#sidebar .profile {
    text-align: center;
    padding: 20px 15px;
    display: flex;
    align-items: center;
}

#sidebar .profile .avatar{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    margin-right: 11px;
}

#sidebar .profile .avatar img{
    width: 50px;
    height: 50px;
    border-radius: 100%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
}

#sidebar .profile h6 {
    margin: 0;
    font-weight: bold;
    font-size: 14px;
}

#sidebar .profile small {
    color: #777;
}

.btn-menu-user{
    background-color: #fff;
    color: #000;
    padding: 4px;
}

.dropdown-menu-user{
    font-size: 14px;
    width: 245px;
    border-radius: 7px !important;
}

.dropdown-menu-user a{
    display: flex;
    padding: 3px 10px;
    align-items: end;
}

.dropdown-menu-user a:hover{
    background-color: #ea580c;
    color: #fff;
    border-radius: 8px !important;
}

.dropdown-menu-user a.active{
    border-radius: 8px !important;
}

.dropdown-menu-user a svg{
    width: 16px;
    margin-right: 5px;
}

/* Menú scrollable */
#sidebar .menu-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 0;
}

#sidebar .menu-scroll a {
    display: flex;
    align-items: end;
    padding: 10px 20px;
    color: #364153;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 8px;
    margin: 2px 10px;
}

#sidebar .menu-scroll a svg{
    width: 19px;
    margin-right: 12px;
}

#sidebar .menu-scroll a i {
    margin-right: 10px;
    font-size: 16px;
}

#sidebar .menu-scroll a:hover {
    background: #f5f5f5;
}

#sidebar .menu-scroll a.active {
    background: #dbeafe;
    color: #1447e6;
    font-weight: 500;
    box-shadow: inset -2px 0 0 #1447e6;
}

/* Footer menú */
#sidebar .logout {
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

#sidebar .logout a {
    display: flex;
    align-items: end;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    text-decoration: none;
}

#sidebar .logout a svg {
    width: 19px;
    margin-right: 12px;
}

#sidebar .logout a i {
    margin-right: 8px;
}

#sidebar .logout .btn-logout {
    color: red;
    font-weight: 500;
}

.bottom-nav a {
    font-size: 14px;
    color: #333;
    width: 20%;
    text-decoration: none;
}

.bottom-nav a.active {
    background-color: #eff6ff;
    color: #1c62fc;
}

/* ===== OVERLAY ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* fondo traslúcido */
    z-index: 1049; /* justo debajo del menú */
    display: none; /* oculto por defecto */
}

/* ===== MENÚ MÓVIL ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px; /* escondido */
    width: 280px;
    height: 100%;
    background: #fff;
    border-left: 1px solid #ddd;
    box-shadow: -2px 0 6px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    right: 0; /* visible */
}

.mobile-menu-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 15px;
}

.mobile-menu-body li a{
    display: flex;
    align-items: end;
}

.mobile-menu-body li svg{
    width: 18px;
    margin-right: 5px;
}

.mobile-menu-body li a.active{
    background-color: #dbeafe;
    color: #1447ea !important;
    border-radius: 8px !important;
    border-right: 3px solid #1447e6;
}