/* /portal/_components/DesktopSidebar/DesktopSidebar.css */

.portal-sidebar {
    display: none;
}

/* --- DESKTOP STYLES (min-width: 992px) --- */
@media (min-width: 992px) {
    .portal-sidebar {
        display: flex;
        flex-direction: column;
        width: 280px;
        height: 100vh; /* Fixed height relative to viewport */
        position: fixed; /* Stays fixed */
        top: 0;
        background: var(--card-background);
        border-inline-end: 1px solid var(--border-light);
        padding: 20px 10px;
        box-sizing: border-box;
        transition: transform 0.3s ease;
        z-index: 200;
    }

    [dir="ltr"] .portal-sidebar { left: 0; }
    [dir="rtl"] .portal-sidebar { right: 0; }

    .sidebar-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .sidebar-logo-img {
        width: 200px;
        height: 200px;
        margin-bottom: 10px;
        color: var(--primary-accent);
    }

    .sidebar-nav {
        list-style: none;
        padding: 0;
        margin: 0;
        flex-grow: 1;
    }

    .sidebar-nav .nav-link {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 14px 20px;
        border-radius: 28px;
        margin-bottom: 8px;
        text-decoration: none;
        color: var(--text-primary);
        transition: all 0.2s ease;
    }

    .sidebar-nav .nav-link i {
        font-size: 22px;
        width: 28px;
        text-align: center;
        margin-inline-end: 20px;
    }

    .sidebar-nav .nav-link span {
        font-size: 18px;
        font-weight: 500;
        margin-top: 0;
    }

    .sidebar-nav .nav-link:hover {
        background: var(--portal-background);
    }

    .sidebar-nav .nav-link.active {
        background: none;
        color: var(--primary-accent);
        font-weight: 700;
    }

    .sidebar-nav .logout-link {
        margin-top: auto;
        color: var(--text-secondary);
    }
    .sidebar-nav .logout-link:hover {
        background: var(--portal-background);
        color: #e74c3c;
    }
}