

.filter-header {
    background: white;
    padding: 12px 24px;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
    position: relative;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.header-main.search-active {
    opacity: 0.3;
    pointer-events: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.task-counter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: #f8fafc;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.action-btn:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-1px);
}

.action-btn.active {
    background: #3b82f6;
    color: white;
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    display: none;
    align-items: center;
    z-index: 10;
}

.search-overlay.active {
    display: flex;
}

.search-input-container {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 8px 16px 8px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #3b82f6;
}

.search-icon-input {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.close-search {
    margin-left: 12px;
    background: #ef4444;
    color: white;
}

.close-search:hover {
    background: #dc2626;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-width: 300px;
    z-index: 20;
    display: none;
    margin-top: 8px;
}

.filter-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.sort-dropdown {
    position: absolute;
    top: 100%;
    right: 52px; /* Position à gauche du filtre */
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 200px;
    z-index: 20;
    display: none;
    margin-top: 8px;
}

.sort-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.sort-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #374151;
    transition: background-color 0.1s ease;
}

.sort-option:hover {
    background: #f3f4f6;
}

.sort-option.active {
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 500;
}

.sort-option .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    text-align: left;
}

.combo-search {
    position: relative;
}

.combo-input-container {
    position: relative;
    display: flex;
    align-items: center;
}
.combo-input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.combo-input:focus {
    border-color: #3b82f6;
}
.combo-clear {
    position: absolute;
    right: 24px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    color: #9ca3af;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.combo-clear:hover {
    color: #ef4444;
    background: #fee2e2;
}

.combo-clear.visible {
    display: flex;
}
.combo-dropdown-toggle {
    position: absolute;
    right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.combo-dropdown-toggle.rotated {
    transform: rotate(180deg);
}

.combo-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 30;
    display: none;
}

.combo-dropdown.active {
    display: block;
}

.combo-option {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background-color 0.1s ease;
}

.combo-option:hover {
    background: #f3f4f6;
}

.combo-option.selected {
    background: #e0e7ff;
    color: #3730a3;
}

.filter-section select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: white;
    cursor: pointer;
}

.filter-section select:focus {
    border-color: #3b82f6;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.filter-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.primary {
    background: #3b82f6;
    color: white;
}

.filter-btn.primary:hover {
    background: #2563eb;
}

.filter-btn.secondary {
    background: #f3f4f6;
    color: #374151;
}

.filter-btn.secondary:hover {
    background: #e5e7eb;
}

.active-filters {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    display: none;
}

.active-filters.has-filters {
    display: flex;
}
.filter-tag.resetTag {
    background-color: #ececec;
    color: #444;
    cursor: pointer;
}
.filter-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-tag .remove {
    cursor: pointer;
    font-weight: bold;
}

.filter-tag .remove:hover {
    color: #dc2626;
}

/* Icons */
.icon {
    width: 20px;
    height: 20px;
}
#activeFilters {
    gap: 8px;
}

.custom-date-range {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.date-range-container {
    display: flex;
    gap: 12px;
    align-items: end;
}

.date-input-group {
    flex: 1;
}

.date-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}

.date-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.date-input:focus {
    border-color: #3b82f6;
}