/* Ensure dropdown styles work even if Tailwind classes fail */
.currency-dropdown-wrapper {
    position: relative;
}

.currency-dropdown-button {
    width: 100%;
    background-color: #374151;
    border: 1px solid #4B5563;
    color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

.currency-dropdown-button:hover {
    border-color: #6B7280;
}

.currency-dropdown-button:focus {
    outline: none;
    ring: 2px;
    ring-color: #3B82F6;
    border-color: transparent;
}

.currency-dropdown-panel {
    position: absolute;
    z-index: 50;
    width: 100%;
    margin-top: 0.25rem;
    background-color: #374151;
    border: 1px solid #4B5563;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.currency-dropdown-panel.hidden {
    display: none;
}

.currency-search-input {
    width: 100%;
    background-color: #1F2937;
    border: 1px solid #6B7280;
    color: white;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
}

.currency-search-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #3B82F6;
    border-color: transparent;
}

.currency-list {
    max-height: 300px;
    overflow-y: auto;
}

.currency-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.currency-item:hover {
    background-color: #4B5563;
}

.currency-item.highlighted {
    background-color: #4B5563;
}

.flag-icon {
    width: 36px;
    height: 24px;
    margin-right: 0;
    border-radius: 2px;
    object-fit: contain;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.currency-flag {
    width: 36px;
    height: 24px;
    border-radius: 2px;
    object-fit: contain;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Green styling for conversion result */
.result-price {
    color: #10B981;
    font-weight: bold;
}

/* Click to copy result functionality */
#result-display.copied {
    background-color: rgb(34 197 94 / 0.2) !important;
    border-color: rgb(34 197 94 / 0.5) !important;
    animation: copy-feedback 2s ease-in-out;
}

@keyframes copy-feedback {
    0% { background-color: rgb(34 197 94 / 0.2); }
    20% { background-color: rgb(34 197 94 / 0.3); }
    40% { background-color: rgb(34 197 94 / 0.2); }
    100% { background-color: rgb(31 41 55); }
}

/* Reduce gap between flag images and currency codes in Popular Currency Pairs only */
#popular-pairs .flag-icon {
    margin-right: 6px !important; /* Tighter spacing for perfect UX */
} 