/* Side Menu Wrapper */
.side-menu-wrapper {
    position: fixed;
    top: 15%;
    right: 0;
    z-index: 9999;
    font-family: 'Heebo', sans-serif;
}

/* Menu List */
.side-menu-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Menu Items */
.side-menu-wrapper a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* RTL: Start is Right */
    width: 60px;
    /* Closed width */
    height: 50px;
    background: #ffffff;
    color: #333;
    text-decoration: none;
    border-radius: 50px 0 0 50px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    white-space: nowrap;
    padding-right: 18px;
    /* Center icon in closed state */
    position: relative;
}

/* Icon Styling */
.side-menu-wrapper a i,
.side-menu-wrapper a svg {
    min-width: 24px;
    width: 24px;
    height: 24px;
    margin-left: 15px;
    /* Space between icon and text */
    transition: color 0.3s ease;
}

/* Text Styling */
.side-menu-wrapper a span {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

/* Hover State (Desktop) */
@media (min-width: 769px) {
    .side-menu-wrapper a:hover {
        width: 220px;
        /* Expanded width */
        background: #f8f9fa;
    }

    .side-menu-wrapper a:hover span {
        opacity: 1;
        transform: translateX(0);
    }

    .side-menu-wrapper a:hover i,
    .side-menu-wrapper a:hover svg {
        color: #2563eb;
        /* Primary Blue */
    }
}

/* Active State */
.side-menu-wrapper a.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.side-menu-wrapper a.active i,
.side-menu-wrapper a.active svg {
    color: white !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .side-menu-wrapper {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .side-menu-wrapper ul {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 0;
        overflow-x: auto;
        /* Allow scrolling if too many items */
        padding: 0 10px;
    }

    .side-menu-wrapper a {
        width: auto;
        height: auto;
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border-radius: 8px;
        padding: 5px 10px;
        gap: 4px;
    }

    .side-menu-wrapper a i,
    .side-menu-wrapper a svg {
        margin: 0;
        width: 20px;
        height: 20px;
    }

    .side-menu-wrapper a span {
        opacity: 1;
        transform: none;
        font-size: 0.7rem;
        display: block;
        /* Show text on mobile */
    }

    /* Active State Mobile */
    .side-menu-wrapper a.active {
        background: transparent;
        color: #2563eb;
    }

    .side-menu-wrapper a.active i,
    .side-menu-wrapper a.active svg {
        color: #2563eb !important;
    }
}