/* 币种切换器样式 */
.currency-switcher {
    position: relative;
    display: inline-block;
}

.currency-switcher #currency-dropdown-btn {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: none;
    background: transparent;
}

.currency-switcher #currency-dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.currency-switcher #currency-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    min-width: 10rem;
    z-index: 1000;
}

.currency-switcher .currency-option {
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    color: #374151;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.currency-switcher .currency-option:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.currency-switcher .currency-option:last-child {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.currency-switcher .currency-option:hover {
    background-color: #f3f4f6;
}

.currency-switcher .currency-option.bg-gray-50 {
    background-color: #f9fafb;
}

.currency-switcher .currency-option.text-primary {
    color: #0066cc;
}

/* 下拉菜单隐藏状态 */
.currency-switcher #currency-dropdown.hidden {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .currency-switcher #currency-dropdown {
        right: 0;
        left: auto;
    }
}

/* 动画效果 */
.currency-switcher #currency-dropdown {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.2s ease-in-out;
}

.currency-switcher #currency-dropdown.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* 确保图标的旋转效果 */
.currency-switcher #currency-dropdown-btn .fa-chevron-down {
    transition: transform 0.2s ease-in-out;
}

.currency-switcher.active #currency-dropdown-btn .fa-chevron-down {
    transform: rotate(180deg);
}
