/* Sidebar Styles */
.sidebar.glassmorphism {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    /* Transparent glass base */
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
}

/* Expand on Hover (Desktop) */
@media (min-width: 769px) {
    .sidebar:hover {
        width: 250px;
        background: rgba(255, 255, 255, 0.15);
    }
}

.sidebar.active {
    width: 250px;
}

/* Hamburger Icon (Top) */
.hamburger-icon {
    width: 60px;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 0;
    flex-shrink: 0;
    transition: background 0.3s;
}

.hamburger-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.bars {
    font-size: 26px;
    color: white;
    line-height: 1;
}

.menu-label {
    font-size: 10px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Centered Arrow Indicator */
.toggle-btn-center {
    position: absolute;
    top: 50%;
    left: 0;
    width: 60px;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.arrow-indicator {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

/* Hide arrow when expanded */
@media (min-width: 769px) {
    .sidebar:hover .toggle-btn-center {
        opacity: 0;
    }
}

.sidebar.active .toggle-btn-center {
    opacity: 0;
}

/* Menu Items */
.menu-items {
    list-style: none;
    padding: 20px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show menu items on hover (desktop) or active (mobile) */
@media (min-width: 769px) {
    .sidebar:hover .menu-items {
        opacity: 1;
        visibility: visible;
    }
}

.sidebar.active .menu-items {
    opacity: 1;
    visibility: visible;
}

.menu-items li {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
}

.menu-items li a {
    color: #17445c;
    /* Stronger blue for better contrast */
    text-decoration: none;
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    /* Slightly bolder */
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.menu-items li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar.glassmorphism {
        width: 60px;
        height: 60px;
        /* Solo mostrar la zona del botón */
        background: transparent;
        /* Ocultar la barra */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-right: none;
        box-shadow: none;
    }

    .sidebar.active {
        width: 250px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(15px) saturate(180%);
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .hamburger-icon {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 0 0 15px 0;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    }

    .toggle-btn-center {
        display: none;
    }
}