/* =============================================================================
   features/symbol-selector.css - Symbol Selector Styles
   ============================================================================= */

.symbol-selector {
    position: relative;
    width: 100%;
}

.symbol-search-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
    cursor: text;
}

.symbol-search-input:focus {
    outline: none;
    border-color: #585858;
    box-shadow: 0 0 0 3px rgba(140, 216, 90, 0.1);
}

.symbol-search-input.valid {
    border-color: #48bb78;
}

.symbol-search-input.invalid {
    border-color: #f56565;
}

/* Dropdown Styles */
.symbol-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f7fafc;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item.focused {
    background: #f7fafc;
}

.dropdown-item.no-results {
    color: #718096;
    cursor: default;
    text-align: center;
    font-style: italic;
}

.dropdown-item.no-results:hover {
    background: white;
}

/* Coin Display */
.coin-symbol {
    font-weight: 600;
    color: #2d3748;
    margin-right: 10px;
}

.coin-name {
    color: #718096;
    font-size: 13px;
}

/* Loading State */
.symbol-selector.loading .symbol-search-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23718096' d='M10 3.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM2 10a8 8 0 1116 0 8 8 0 01-16 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    animation: spin 1s linear infinite;
}