/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 50%;
    right: -120px;
    /* Hide initially (off-screen) */
    transform: translateY(-50%);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    transition: right 0.5s ease-in-out;
    z-index: 10;
}

.sidebar.show {
    right: 10px;
    /* Slide in to this position */
}

.sidebar-item {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: #194d42;
    /* Background of the icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: width 0.3s, background-color 0.3s, border-radius 0.3s;
}

.sidebar-item i {
    color: #ffffff;
    font-size: 1.5rem;
    transition: margin-left 0.3s, color 0.3s;
}

.sidebar-item:hover {
    background-color: #b6ff00;
    width: 160px;
    border-radius: 30px;
}

.sidebar-item:hover i {
    color: #40634b;
    margin-left: 75px;
}

.sidebar-item::after {
    content: attr(data-label);
    font-size: 1rem;
    font-weight: bold;
    color: #40634b;
    /* Dark green for text */
    position: absolute;
    left: 30px;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.sidebar-item:hover::after {
    opacity: 1;
}

.sidebar-item.active {
    background-color: #96ff00;
    color: #96ff00;
}

.sidebar-item.active i {
    color: #1b4528;
}