.search-component-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.search-component-input {
    padding-left: 35px !important;
    padding-right: 35px !important;
    transition: all 0.3s ease;
}

.search-component-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.search-component-input.searching {
    border-color: #ffc107;
}

.search-component-icon,
.search-component-loader {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    z-index: 3;
}

.search-component-loader {
    color: #007bff;
}

.search-component-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 3;
}

.search-component-clear:hover {
    background: #e9ecef;
    color: #495057;
}

.search-component-clear:active {
    transform: translateY(-50%) scale(0.95);
}

.search-component-focused {
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.15);
    border-radius: 4px;
}

/* Animación del loader */
@keyframes search-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.search-component-input.searching {
    animation: search-pulse 1.5s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .search-component-input {
        font-size: 16px;
        /* Evita zoom en iOS */
    }
}