:host {
    display: block;
    width: 100%;
}

.search-box-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 0;
}

.icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    user-select: none;
    transition: color 0.3s;
    z-index: 5;
}

.magnifier {
    left: 18px;
    font-size: 1rem;
    pointer-events: none;
    display: inline-block !important;
}

input {
    width: 100%;
    height: 50px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 25px;
    padding: 0 3.5rem;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    background-color: #fff;
    outline: none;
    color: #111;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

input:focus {
    border-color: rgba(76, 93, 244, 0.3);
    box-shadow: 0 6px 15px rgba(76, 93, 244, 0.12);
    background-color: #fcfdff;
}

input:focus~.magnifier {
    color: #4C5DF4;
}

#clear-btn {
    position: absolute;
    right: 12px;
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    padding: 0;
    z-index: 10;
}

#clear-btn:hover {
    background-color: #fff1f0;
    color: #ff0000;
    transform: scale(1.1);
}

#clear-btn:hover i {
    color: #ff0000;
}

#clear-btn i {
    font-size: 0.9rem;
    transition: color 0.2s;
}

input::placeholder {
    color: #aaa;
    transition: color 0.3s;
}

input:focus::placeholder {
    color: #ccc;
}