/**
 * Floating Section Toolbar Styles
 * Phase 2.3 - Visual Builder
 */

.section-floating-toolbar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-floating-toolbar.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.toolbar-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    direction: rtl;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.toolbar-btn:active {
    transform: scale(0.95);
}

.toolbar-btn.danger {
    color: #ef4444;
}

.toolbar-btn.danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.toolbar-btn svg {
    flex-shrink: 0;
}

/* Hide span on mobile */
@media (max-width: 768px) {
    .toolbar-btn span {
        display: none;
    }

    .toolbar-btn {
        padding: 8px;
    }
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    margin: 0 4px;
}

/* Animation */
@keyframes toolbarSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.section-floating-toolbar:not(.hidden) {
    animation: toolbarSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 640px) {
    .section-floating-toolbar {
        bottom: 10px;
        right: 10px;
        left: 10px;
    }

    .toolbar-content {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* RTL Support */
[dir="rtl"] .section-floating-toolbar {
    right: auto;
    left: 20px;
}

[dir="rtl"] .toolbar-content {
    direction: rtl;
}
