:root {
    --bg-glass: rgba(255, 255, 255, 0.15);
    --bg-glass-light: rgba(255, 255, 255, 0.25);
    --border-glass: rgba(255, 255, 255, 0.2);
    --text-color: white;
}


.search-container {
    display: flex;
    gap: 10px;

    width: 100%;
    justify-content: center;
}

.search-wrapper {
    position: relative;
    /* width: 100%; */
    width: 300px;
}

.search-bar {
    width: 100%;
    /* width: 300px; */
    padding: 12px 40px 12px 16px;
    /* padding: 12px 16px; */
    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;

    color: white;
    font-size: 18px;
    outline: none;

    box-sizing: border-box;
    /* transition: text 0.5s ease, all 0.5s ease; */

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    /* box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15); */
        /* inset 0 1px 0 rgba(255, 255, 255, 0.15); */
}

.search-bar::placeholder {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.5s ease;
}

.search-bar:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

html.light .search-bar:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

html.light .search-bar {
    background: rgba(255, 255, 255, 0.25);
    /* color: #222; */
    border-color: rgba(255, 255, 255, 0.2);
    color: black;
}

html.light .search-bar::placeholder {
    color: rgba(0, 0, 0, 0.8);
}



.clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);

    background: transparent;
    border: none;
    cursor: pointer;

    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);

    display: none;
}

.clear-btn:hover {
    color: white;
}

html.light .clear-btn {
    filter: invert(1);
}

html.dark .clear-btn {
    filter: invert(0);
}




.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;

    /* padding: 12px 16px; */

    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;

    cursor: pointer;
    transition: color 0.5s ease, transform 0.2s ease;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    /* box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15); */
        /* inset 0 1px 0 rgba(255, 255, 255, 0.15); */
}

.search-button img {
    width: 18px;
    height: 18px;
    transition: filter 0.5s ease;
}

html.light .search-button {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

html.light .search-button:hover {
    background: rgba(255, 255, 255, 0.45);
}

html.dark .search-button img {
    filter: invert(1);
}



.search-bar::-webkit-search-cancel-button {
    -webkit-appearance: none;
}