.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2196F3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
    position: relative;
    z-index: 10;
}

.fab-main:hover {
    transform: scale(1.1);
    background: #1976D2;
}

.fab-main .icon {
    width: 24px;
    height: 24px;
    fill: white;
    transition: opacity 0.3s ease;
}

.fab-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.fab-menu.open {
    visibility: visible;
    opacity: 1;
    max-height: 300px;
}

.fab-menu.open .fab-item{
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.5);
    position: relative;
}

.fab-menu.open .fab-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fab-menu.open .fab-item:nth-child(1) {
    transition-delay: 0.1s;
}

.fab-menu.open .fab-item:nth-child(2) {
    transition-delay: 0.15s;
}

.fab-menu.open .fab-item:nth-child(3) {
    transition-delay: 0.2s;
}

.fab-item:hover {
    transform: scale(1.15);
}

.fab-item .icon {
    width: 50px;
    height: 50px;
}

.fab-item:nth-child(1) { background: white; }
.fab-item:nth-child(3) { background: white; }

.fab-item:nth-child(1):hover { background: white; }
.fab-item:nth-child(3):hover { background: white; }

.tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #333;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.tooltip::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 10px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}


.fab-item:hover .tooltip,
.fab-main:hover .tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.fab-main .tooltip {
    right: 70px;
}