.search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    padding: 4px;
    min-width: 200px;
    max-width: 360px;
    width: 100%;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: 6px 10px;
    font-size: 0.95rem;
    border: none;
    background: transparent;
    outline: none;
    color: inherit;
    font-family: "DM Sans", sans-serif;
    min-width: 0;
}

.search-bar input[type="text"]::placeholder {
    color: rgba(71, 85, 105, 0.8);
}

.search-bar button {
    padding: 6px 12px;
    font-size: 0.9rem;
    border: none;
    background-color: #2b9aa3;
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-bar button:hover {
    background-color: #1f7b84;
    transform: translateY(-1px);
}

.search-bar button i {
    margin: 0;
}

.transparent-navbar .search-bar {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
}

.transparent-navbar .search-bar input[type="text"] {
    color: #fff;
}

.transparent-navbar .search-bar input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.transparent-navbar .search-bar button {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.navbar.scrolled .search-bar {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.22);
}

.navbar.scrolled .search-bar input[type="text"] {
    color: #fff;
}

.navbar.scrolled .search-bar input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.navbar.scrolled .search-bar button {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
