.mt4-account-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.mt4-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.account-title h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.4em;
}

.broker-name {
    color: #666;
    font-size: 0.9em;
}

.account-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.positive {
    background: #4CAF50;
}

.status-indicator.negative {
    background: #f44336;
}

.update-time {
    font-size: 0.8em;
    color: #999;
}

.mt4-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #007cba;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-card.floating.profit {
    border-left-color: #4CAF50;
    background: #f1f8e9;
}

.stat-card.floating.loss {
    border-left-color: #f44336;
    background: #ffebee;
}

.stat-icon {
    font-size: 1.5em;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.mt4-chart-container {
    margin: 25px 0;
    padding: 20px;
    background: #fafafa;
    border-radius: 6px;
}

.mt4-chart-container h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.mt4-monthly-stats {
    margin-top: 25px;
}

.mt4-monthly-stats h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.monthly-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    height: 120px;
}

.month-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.bar-container {
    height: 80px;
    width: 30px;
    background: #f0f0f0;
    border-radius: 4px 4px 0 0;
    position: relative;
    overflow: hidden;
}

.profit-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transition: height 0.3s ease;
}

.profit-bar.positive {
    background: #4CAF50;
}

.profit-bar.negative {
    background: #f44336;
}

.month-label {
    font-size: 0.8em;
    margin-top: 8px;
    color: #666;
}

.month-profit {
    font-size: 0.7em;
    margin-top: 4px;
    font-weight: bold;
}

.month-profit.positive {
    color: #4CAF50;
}

.month-profit.negative {
    color: #f44336;
}

.mt4-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #f44336;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .mt4-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mt4-account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .monthly-bars {
        gap: 5px;
    }
    
    .bar-container {
        width: 20px;
    }
	
	.data-source {
    font-size: 0.8em;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
	}

	.mt4-no-data {
		text-align: center;
		padding: 20px;
		color: #666;
		font-style: italic;
		background: #f9f9f9;
		border-radius: 6px;
	}

	/* بهبود نمایش کارت‌های آمار */
	.stat-card .stat-icon {
		font-size: 1.8em;
	}

	.stat-card .stat-value {
		font-size: 1.3em;
		font-weight: bold;
	}

	/* رنگ‌بندی برای داده واقعی و دمو */
	.status-indicator.positive {
		background: #4CAF50;
	}

	.status-indicator.negative {
		background: #f44336;
	}
}