/* Floating Actions Stack - Fixed Bottom Right */
.floating-stack {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    /* Important: Stacks from bottom to top */
    align-items: center;
    gap: 8px;
    /* Reduced from 15px */
}

/* Toggle Button (The Base) */
.toggle-btn {
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    color: #000;
    font-size: 1.5rem;
    border: none;
    outline: none;
    z-index: 10001;
}

.toggle-btn i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toggle-btn.toggled i {
    transform: rotate(180deg);
}

/* Action Menu (The items above) */
.floating-menu {
    display: flex;
    flex-direction: column-reverse;
    /* Items stack upwards */
    gap: 8px;
    /* Reduced from 15px */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.floating-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Individual Item Styling */
.action-item {
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000 !important;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-size: 1.4rem;
    position: relative;
}

/* New Label System (Replacing Tooltips) */
.action-item .label {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
    pointer-events: none;
}

/* Show Labels on Hover OR menu Active */
.action-item:hover .label,
.floating-menu.active .action-item .label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* English Version (LTR) adjustments removed - Labels should always be on the left of the buttons since buttons are on the right */

.action-item:hover {
    transform: scale(1.1);
}

/* Animation Delays */
.floating-menu.active .action-item:nth-child(1) {
    transition-delay: 0.1s;
}

.floating-menu.active .action-item:nth-child(2) {
    transition-delay: 0.2s;
}

.floating-menu.active .action-item:nth-child(3) {
    transition-delay: 0.3s;
}