/* ===================================================================== */
/* Botão Flutuante (FAB - Floating Action Button) para Filtros           */
/* ===================================================================== */

/* Container do FAB */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1040; /* Abaixo do Offcanvas (1045) mas acima do conteúdo */
}

/* Estilo do botão FAB */
.fab-button {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

/* Hover effect */
.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Animação de entrada */
.fab-container {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation para chamar atenção */
.fab-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(13, 110, 253, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    }
}

/* Mobile responsivo - ajustar posição em telas menores */
@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-button {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
}

/* Esconder o botão quando o Offcanvas estiver aberto */
.offcanvas.show ~ .fab-container {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ===================================================================== */
/* Mini Filtros Rápidos nos Cards                                        */
/* ===================================================================== */

/* Container dos filtros rápidos */
.quick-filters-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Botão de filtro rápido no card */
.btn-quick-filter {
    padding: 4px 8px !important;
    font-size: 12px !important;
    border-radius: 15px !important;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.btn-quick-filter:hover {
    opacity: 1;
}

/* Dropdown de período rápido */
.quick-period-dropdown {
    position: absolute;
    top: 35px;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px;
    min-width: 150px;
    display: none;
    z-index: 20;
}

.quick-period-dropdown.show {
    display: block;
}

.quick-period-option {
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.2s ease;
}

.quick-period-option:hover {
    background: #f0f0f0;
}

/* Badge indicador de filtro ativo */
.filter-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}