/* Currency Popup Modal Styles */
.currency-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.currency-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: none;
    background: white;
    border-radius: 0 0 12px 12px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: popupSlideDown 0.3s ease-out;
    display: none;
    z-index: 9999;
}

@keyframes popupSlideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.currency-popup-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.currency-popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.currency-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.currency-popup-close:hover {
    background-color: #f8f9fa;
    color: #333;
}

.currency-search-container {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.currency-search {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.currency-search:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.currency-list-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

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

.currency-item.selected {
    background-color: #e3f2fd;
    color: #1976d2;
}

.currency-flag {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.currency-info {
    flex: 1;
}

.currency-code {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.currency-name {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.currency-symbol {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

/* Scrollbar Styling */
.currency-list-container::-webkit-scrollbar {
    width: 6px;
}

.currency-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.currency-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.currency-list-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .currency-popup {
        width: 100%;
        max-height: 85vh;
        top: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
        border-radius: 0 0 12px 12px;
    }
    
    .currency-popup-header {
        padding: 15px;
    }
    
    .currency-search-container {
        padding: 15px;
    }
    
    .currency-item {
        padding: 10px 15px;
    }
    
    .currency-popup-title {
        font-size: 16px;
    }
}