/* CSS para o Componente FAB / Speed Dial */

.fab-container {
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end;
    gap: 15px;
    z-index: 9999 !important;
    pointer-events: none;
}

.fab-container > * {
    pointer-events: auto;
}

/* Overlay de Blur */
.fab-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9998; /* Logo abaixo do fab-container */
}

.fab-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Opções que aparecem acima do gatilho */
.fab-options {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab-container.active .fab-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.fab-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fab-label {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.fab-container.active .fab-label {
    opacity: 1;
    transform: translateX(0);
}

/* Botão Principal / Gatilho */
.button-fab {
    width: 58px;
    height: 58px;
    border-radius: 50% !important;
    background-color: var(--pico-primary) !important;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    transition: all 0.3s ease;
}

.button-fab:hover {
    transform: scale(1.05);
}

/* Rotação do Ícone de + para X */
.fab-container.active .button-fab.trigger {
    transform: rotate(135deg);
    background-color: #ef4444 !important;
}

/* Botões menores (Mini FABs) */
.fab-mini {
    width: 46px;
    height: 46px;
    border-radius: 50% !important;
    background-color: white !important;
    color: var(--pico-primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--pico-border-color) !important;
    cursor: pointer;
    padding: 0 !important;
    transition: all 0.2s ease;
}

.fab-mini:hover {
    transform: scale(1.1);
    background-color: #f8fafc !important;
}

.button-fab i, .fab-mini i {
    width: 26px;
    height: 26px;
}
