.icon-toolbar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    gap: 10px;
    z-index: 9999;
}
.icon-toolbar {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-toolbar.hide {
    opacity: 0;
    pointer-events: none;
    transform: translate(40px, -50%);
}
.icon-toolbar.animate-in .icon-btn {
    opacity: 0;
    transform: translateX(30px);
    animation: slideFadeIn 0.5s ease forwards;
}

.icon-toolbar.animate-in .icon-btn:nth-child(1) { animation-delay: 0.1s; }
.icon-toolbar.animate-in .icon-btn:nth-child(2) { animation-delay: 0.25s; }
.icon-toolbar.animate-in .icon-btn:nth-child(3) { animation-delay: 0.4s; }
.icon-toolbar.animate-in .icon-btn:nth-child(4) { animation-delay: 0.65s; }

@keyframes slideFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.icon-toolbar.hide {
    opacity: 0;
    pointer-events: none;
    transform: translate(40px, -50%);
}


@keyframes slideFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.icon-btn {
    position: relative;
    width: 60px;
    height: 60px;

    background: #0a2a66;
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    text-decoration: none;

    transition: background 0.3s ease;
}

.icon-btn:hover {
    background: #e61e2a;
}

.icon-toolbar.vertical {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.icon-btn:hover {
    background: #e61e2a;
}
.icon-btn span {
    position: absolute;
    right: 54px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);

    background: #0a2a66;
    color: #fff;
    padding: 6px 10px;

    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.icon-btn span::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);

    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #0a2a66;
}

.icon-btn:hover span {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.icon-btn:hover span {
    opacity: 1;
    transform: translateX(0);
}
.icon-btn span::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);

    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #0a2a66;
}
@media (max-width: 768px) {
    .icon-toolbar {
        top: auto;
        bottom: 10px;
        right: 50%;
        transform: translateX(50%);
    }

    .icon-btn span {
        bottom: 54px;
        right: 50%;
        transform: translateX(50%) translateY(10px);
    }

    .icon-btn:hover span {
        transform: translateX(50%) translateY(0);
    }
}

.floating-toolbar.hide {
    opacity: 0;
    pointer-events: none;
    transform: translate(40px, -50%);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(40px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

.toolbar-item {
    background: #0a2a66;
    color: #fff;
    padding: 12px 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px 0 0 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.toolbar-item:hover {
    background: #e61e2a;
    padding-right: 22px;
}

.toolbar-item span {
    font-size: 18px;
}
@media (max-width: 768px) {
    .floating-toolbar {
        bottom: 0;
        top: auto;
        right: 0;
        left: 0;
        flex-direction: row;
        justify-content: space-around;
        background: #0a2a66;
        padding: 6px 0;
    }

    .toolbar-item {
        border-radius: 0;
        flex-direction: column;
        padding: 8px;
        font-size: 12px;
    }
}
