.filters-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.filter-icon {
    width: 16px;
    height: 16px;
}

.clear-all-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: #ef4444;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.clear-all-btn:hover {
    background-color: #fef2f2;
}

.clear-all-btn.hidden {
    display: none;
}

.filters-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    position: relative;
}

.filter-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    min-width: 100px;
    justify-content: space-between;
}

.filter-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.filter-btn .count {
    background: #64748b;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s;
}

.filter-btn.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Date picker styles */
.date-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.date-dropdown.show {
    display: block;
}

.year-item {
    position: relative;
}

.year-btn, .month-btn, .day-btn {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.year-btn:hover, .month-btn:hover, .day-btn:hover {
    background-color: #f3f4f6;
}

.year-btn:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.year-btn:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.month-dropdown, .day-dropdown {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    display: none;
}

.month-dropdown.show, .day-dropdown.show {
    display: block;
}

.right-arrow {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

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

.filter-tag {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-tag .remove-btn {
    background: none;
    border: none;
    color: #1d4ed8;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}

.filter-tag .remove-btn:hover {
    color: #1e40af;
}

/* Regular filter dropdowns */
.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    white-space: nowrap;
}

.filter-dropdown.show {
    display: block;
}

.filter-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-option:hover {
    background-color: #f3f4f6;
}

.filter-option.selected {
    background-color: #eff6ff;
    color: #2563eb;
}

.filter-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

.filter-option.selected .filter-checkbox {
    background-color: #2563eb;
    border-color: #2563eb;
}
