.fx-widget {
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 320px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fx-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4aa, #4ade80, #60a5fa, #a78bfa);
    border-radius: 12px 12px 0 0;
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}


.currency-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.currency-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.currency-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.currency-pair {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pair-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.pair-desc {
    font-size: 11px;
    color: #888;
}

.currency-data {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.current-rate {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.rate-change {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rate-up {
    color: #4ade80;
}

.rate-down {
    color: #f87171;
}

.rate-neutral {
    color: #888;
}

/* 変動率専用の固定色（始値基準） */
.percent-up {
    color: #4ade80 !important;
}

.percent-down {
    color: #f87171 !important;
}

.percent-neutral {
    color: #888 !important;
}

.change-arrow {
    font-size: 10px;
}

.spread-info {
    font-size: 11px;
    color: #666;
}

.widget-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.status-info {
    font-size: 11px;
    color: #808080;
    margin-top: 10px;
    text-align: center;
}


/* アニメーション効果 */
.currency-item.updating {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.3);
}

.currency-item.updating::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .fx-widget {
        max-width: 100%;
        padding: 15px;
    }
    
    .widget-title {
        font-size: 16px;
    }
    
    .current-rate {
        font-size: 14px;
    }
}