.dropdown-container {
    position: relative;
    width: 100%;
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.dropdown-header:hover {
    border-color: #3498db;
}

.dropdown-header.active {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.placeholder {
    color: #95a5a6;
}

.selected-value {
    color: #2c3e50;
    font-weight: 500;
}

.dropdown-icon {
    color: #7f8c8d;
    transition: transform 0.3s ease;
}

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

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e1e8ed;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow: hidden;
    display: none;
    z-index: 1000;
}

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

.search-box {
    padding: 12px 16px;
    border-bottom: 1px solid #e1e8ed;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #3498db;
}

.options-container {
    max-height: 180px;
    overflow-y: auto;
}

.option-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f5f7fa;
    transition: background 0.2s;
}

.option-item:hover {
    background: #f8f9fa;
}

.option-item.selected {
    background: #e1f5fe;
    color: #0288d1;
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #e1e8ed;
    background: #f8f9fa;
}

.pagination-info {
    font-size: 14px;
    color: #7f8c8d;
}

.pagination-controls {
    display: flex;
    gap: 8px;
}

.pagination-btn {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination-btn:disabled {
    color: #bdc3c7;
    cursor: not-allowed;
}

.clear-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.clear-btn:hover {
    background: rgba(231, 76, 60, 0.1);
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #95a5a6;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.selected-tag {
    background: #e1f5fe;
    color: #0288d1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.remove-tag {
    background: none;
    border: none;
    cursor: pointer;
    color: #0288d1;
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    .pagination {
        flex-direction: column;
        gap: 10px;
    }
}