/* Sidebar Styles */

.sidebar {
    width: 260px;
    background: var(--accent);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border);
    padding: 20px 0;
    z-index: 100;

    position: fixed;
    right: 0;
    top: 60px;

    height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
}


/* Sidebar Content */

.sidebar-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* Sidebar Title */

.sidebar-content h3 {
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 10px;

    text-align: center;
    font-size: 20px;

    border-bottom: 2px solid var(--text);
}


/* Sidebar Links */

.sidebar-link {
    width: 100%;
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    padding: 12px 16px;

    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );

    color: white;
    text-decoration: none;

    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 8px;

    transition: all 0.3s ease;
}


/* Sidebar Link Icons */

.sidebar-link img {
    width: 18px;
    height: 18px;

    display: block;
    object-fit: contain;
    flex-shrink: 0;

    filter: brightness(0) invert(1);
}


/* Font Awesome Icons */

.sidebar-link i {
    width: 18px;
    text-align: center;
    color: white;
}


/* Sidebar Link Hover */

.sidebar-link:hover {
    background: var(--primary);
    transform: translateX(-10px);
}

.index-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 10px;

    cursor: pointer;
}

.index-menu-toggle img {
    width: 22px;
    height: 22px;

    filter: brightness(0) invert(1);
}

/* Mobile */

@media (max-width: 768px) {

    .index-menu-toggle {
        display: flex;

        position: fixed;
        top: 68px;
        right: 12px;

        z-index: 101;
    }

    .sidebar {
        width: 280px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

}

    .sidebar-overlay {
        position: fixed;
        top: 0;
        right: 0;

        width: 100%;
        height: 100%;

        background: rgba(0, 0, 0, 0.5);

        z-index: 99;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }
