﻿/* Contenedor del header */
.header-inner {
    position: relative;
}

.sidebar-toggle-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 50px;
    background: transparent;
    cursor: pointer;
    z-index: 1040;
}

@media (min-width: 1300px) {
    .sidebar-toggle-left {
        display: none;
    }
}

/* Sidebar pegado a la izquierda */
.sidebar-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 100vh;
    background-color: #444444;
    overflow-x: hidden;
    transition: width 0.4s cubic-bezier(0.77, 0, 0.175, 1), transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease-in-out;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 20px;
    box-shadow: 6px 0 18px rgba(0, 0, 0, 0.25);
    transform: translateX(0);
    opacity: 1;
    /*border-radius:15px;*/
}

    /* 🔹 EFECTO DE APERTURA Y CIERRE  */
    .sidebar-left.oculto {
        transform: translateX(-100%);
        opacity: 0;
    }

    /* Expansión al hacer hover o cuando está activa */
    .sidebar-left:hover,
    .sidebar-left.active {
        width: 280px;
    }

/* Estilos del texto e íconos */
.texto-side {
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 6px;
    padding: 12px 10px;
    width: 100%;
    box-sizing: border-box;
}

    .texto-side:hover {
        background-color: #5a5a5a;
        color: #f0f0f0;
        box-shadow: 0 8px 8px rgba(0, 0, 0, 0.2);
    }

/* Lista de navegación */
.sidebar-left ul {
    list-style: none;
    padding: 0;
    margin: 150px 0 0 0;
    width: 100%;
}

    .sidebar-left ul li {
        padding-top: 18px;
        padding-left: 20px;
    }

        .sidebar-left ul li a,
        .sidebar-left ul li button {
            color: white;
            text-decoration: none;
            display: block;
            white-space: nowrap;
            font-size: 0.95rem;
        }

/* Etiquetas del sidebar */
.sidebar-left .labelSide {
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 12px;
}

.sidebar-left:hover .labelSide,
.sidebar-left.active .labelSide {
    opacity: 1;
}

/* 🔹 Móviles */
@media (max-width: 1300px) {
    .sidebar-left {
        transform: translateX(-100%);
        opacity: 0;
    }

        .sidebar-left.active {
            transform: translateX(0);
            opacity: 1;
        }
}

/* Sidebar derecho */
#sidebarRight {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100%;
    background-color: #f8f9fa;
    box-shadow: -2px 0 6px rgba(0,0,0,0.1);
    transition: right 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    z-index: 1050;
}

    #sidebarRight.active {
        right: 0;
        opacity: 1;
    }
