.header {
    width: 100%;
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #fb7299, #fc9bad);
}

.dark-mode .header {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    flex-wrap: wrap;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-bar:hover::before {
    opacity: 1;
}

.search-bar.loading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fb7299, transparent);
    animation: loading 1.5s infinite;
}

.search-bar input[type="search"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.search-bar input[type="search"]:hover {
    border-color: #fc9bad;
}

.search-bar input[type="search"]:focus {
    outline: none;
    border-color: #fb7299;
    box-shadow: 0 0 0 3px rgba(251, 114, 153, 0.2);
}

.search-bar select {
    flex: 0 1 180px;
    padding: 12px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fb7299' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.search-bar select:hover {
    border-color: #fc9bad;
}

.search-bar select:focus {
    outline: none;
    border-color: #fb7299;
    box-shadow: 0 0 0 3px rgba(251, 114, 153, 0.2);
}

.search-bar select:hover {
    border-color: #fb7299;
}

.dark-mode .search-bar input[type="search"],
.dark-mode .search-bar select {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.dark-mode .search-bar input[type="search"]:focus,
.dark-mode .search-bar select:focus {
    border-color: #fb7299;
    box-shadow: 0 0 0 3px rgba(251, 114, 153, 0.2);
}

@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }
    
    .search-bar input[type="search"] {
        min-width: 100%;
    }
    
    .search-bar select {
        flex: 1 1 100%;
    }
}