/* Currency Converter Custom Styles */

.currency-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.currency-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 40px -12px rgba(99, 102, 241, 0.25);
}

.search-dropdown {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chart-btn-active {
    background-color: rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    color: #ffffff !important;
}

.quick-amount-btn {
    transition: all 0.2s ease;
}

.quick-amount-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.swap-btn {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.swap-btn:hover {
    transform: rotate(180deg);
}

/* Custom autocomplete dropdown wrapper */
.currency-select-container {
    position: relative;
}

.currency-select-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 250px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.dark .currency-select-menu {
    background-color: #0f0f11;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.currency-select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark .currency-select-item {
    color: #a1a1aa;
}

.currency-select-item:hover {
    background-color: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
}

.dark .currency-select-item:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: #ffffff;
}

.currency-select-item.selected {
    background-color: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.dark .currency-select-item.selected {
    background-color: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.text-glow {
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.grid-glow {
    position: relative;
}

.grid-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.05), transparent 70%);
    pointer-events: none;
    border-radius: inherit;
}
