/* =====================================================
   SIDEBAR ESTILOS - MENÚ ACORDEÓN
   ===================================================== */

.sidebar {
    width: 260px;
    background: linear-gradient(135deg, #0353a4, #00b4d8);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.15);
}

.sidebar-brand i {
    font-size: 24px;
    color: #90e0ef;
}

.sidebar-nav {
    padding: 10px 0;
}

/* Nav Items (Dashboard) */
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.15);
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-item:hover::before {
    width: 100%;
}

.nav-item:hover {
    color: white;
    border-left-color: #90e0ef;
    background: rgba(144, 224, 239, 0.1);
    padding-left: 25px;
}

.nav-item.active {
    background: rgba(144, 224, 239, 0.25);
    color: white;
    border-left-color: #90e0ef;
    font-weight: 600;
}

.nav-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Nav Sections (Accordion) */
.nav-section {
    margin-bottom: 2px;
}

.nav-section-title {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-radius: 0;
    user-select: none;
    position: relative;
}

.nav-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(144, 224, 239, 0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-section-title:hover::before {
    width: 100%;
}

.nav-section-title:hover {
    background: rgba(0, 0, 0, 0.25);
    color: #90e0ef;
}

.nav-section-title i:first-child {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.nav-section-title .toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.nav-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.nav-section.active .nav-section-content {
    max-height: 1000px;
}

.nav-section-content .nav-item {
    padding-left: 52px;
    font-size: 13px;
    border-left: none;
    position: relative;
}

.nav-section-content .nav-item::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(144, 224, 239, 0.6);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-section-content .nav-item:hover::before {
    background: #90e0ef;
    width: 6px;
    height: 6px;
    box-shadow: 0 0 8px rgba(144, 224, 239, 0.8);
}

.nav-section-content .nav-item:hover {
    background: rgba(144, 224, 239, 0.12);
    padding-left: 54px;
    color: #caf0f8;
}

.nav-section-content .nav-item.active {
    background: rgba(144, 224, 239, 0.2);
    color: white;
    font-weight: 500;
}