/* FilterableTable Component Styles */
.filterable-table-container {
    width: 100%;
}

.filters-container {
    background-color: white;
    /* border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); */
}

.filters-panel {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.filters-panel.hidden {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
}

.filter-group {
    margin-bottom: 0.25rem;
}

.filter-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.filter-group input,
.filter-group select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Améliorations pour les checkboxes de colonnes */
.filter-group input[type="checkbox"] {
    display: inline-block;
    width: auto;
    margin-right: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    color: #3b82f6;
}

.filter-group input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* État de chargement pour les filtres */
.filterable-table-container[data-loading] {
    opacity: 0.75;
    pointer-events: none;
    position: relative;
}

.filterable-table-container[data-loading]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path d="M25 2A23 23 0 1 1 2 25" fill="none" stroke="%23059669" stroke-width="4" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" dur="1s" repeatCount="indefinite" values="0 25 25;360 25 25"/></path></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .filters-panel .grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Animation pour le bouton de filtres */
.filters-toggle-button {
    transition: all 0.2s ease-in-out;
}

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

/* Indicateur de filtres actifs */
.filters-active-indicator {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #3b82f6;
    border-radius: 50%;
    margin-left: 0.25rem;
}