/* ORION Sidebar Styles v3.0 */

.orion-sidebar {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid #334155;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #818cf8;
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    gap: 0.75rem;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #e2e8f0;
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border-left-color: #818cf8;
}

.nav-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.nav-item span {
    flex: 1;
}

.nav-item.has-submenu .submenu-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.nav-group.expanded .submenu-arrow {
    transform: rotate(180deg);
}

.nav-divider {
    height: 1px;
    background: #334155;
    margin: 0.75rem 1.25rem;
}

/* Submenu */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.nav-group.expanded .submenu {
    max-height: 500px;
}

.submenu-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.25rem 0.6rem 3rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.submenu-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #e2e8f0;
}

.submenu-item.active {
    color: #818cf8;
    background: rgba(99, 102, 241, 0.1);
}

.submenu-item i {
    font-size: 0.9rem;
    width: 20px;
}

.submenu-divider {
    height: 1px;
    background: #1e293b;
    margin: 0.5rem 2rem;
}

/* Footer */
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #334155;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.user-info i {
    font-size: 1.25rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Main content adjustment */
.main-content {
    margin-left: 260px;
    padding: 1.5rem;
    min-height: 100vh;
    background: #0f172a;
}

/* Responsive */
@media (max-width: 768px) {
    .orion-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .orion-sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Badge */
.nav-item .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
}
