/* ========================================
   MODERN NAV MENU - SIDEBAR ??
   ======================================== */

.nav-menu {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 12px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ========== SCROLLBAR ========== */
.nav-menu::-webkit-scrollbar {
    width: 6px;
}

.nav-menu::-webkit-scrollbar-track {
    background: transparent;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ========== NAV ITEMS ========== */
.nav-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    position: relative;
}

.nav-item i {
    font-size: 20px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    color: #4f46e5;
    font-weight: 600;
}

.nav-item.active i {
    color: #4f46e5;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #4f46e5;
    border-radius: 0 4px 4px 0;
}

/* ========== NAV GROUPS ========== */
.nav-group {
    margin: 8px 0;
}

.nav-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 8px 16px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-group-title i {
    font-size: 16px;
}

.sub-item {
    margin-left: 16px;
    font-size: 13px;
}

.sub-item i {
    font-size: 16px;
}

/* ========== NAV BOTTOM ========== */
.nav-bottom {
    margin-top: auto;
    padding-top: 16px;
}

.nav-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

.logout-button {
    color: #ef4444;
}

.logout-button:hover {
    background: #fee2e2;
}

/* ========== COLLAPSED STATE ========== */
.app-sidebar.collapsed .nav-text {
    display: none;
}

.app-sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px;
}

.app-sidebar.collapsed .nav-group-title {
    justify-content: center;
    padding: 12px;
}

.app-sidebar.collapsed .nav-group-title .nav-text {
    display: none;
}

.app-sidebar.collapsed .sub-item {
    margin-left: 0;
}

.app-sidebar.collapsed .nav-divider {
    margin: 8px auto;
    width: 40px;
}

.app-sidebar.collapsed .nav-item.active::before {
    display: none;
}

/* ========== BADGE ========== */
.nav-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 12px;
    background: #4f46e5;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.app-sidebar.collapsed .nav-badge {
    display: none;
}

/* ========== ANIMATIONS ========== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-item {
    animation: slideIn 0.2s ease-out;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    .nav-menu {
        padding: 16px 8px;
    }
    
    .nav-item {
        padding: 12px;
    }
    
    .nav-group-title {
        padding: 12px;
    }
}
