/* MetaDora – saját stílusok (Bootstrap 5 fölött) */
:root { --md-orange: #f7941d; --md-orange-dark: #e67c00; }

body { background: #f4f6f8; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* Reszponzív konténer: Full HD+ monitoron kihasználja a helyet */
.md-container { width: 100%; margin: 0 auto; padding-left: 16px; padding-right: 16px; max-width: 1320px; }
@media (min-width: 1600px) { .md-container { max-width: 1520px; } }
@media (min-width: 1900px) { .md-container { max-width: 1780px; } }
@media (min-width: 2500px) { .md-container { max-width: 2100px; } }

.md-navbar .nav-link.active { color: var(--md-orange) !important; }
.md-navbar .btn-link.nav-link { text-decoration: none; }

.btn-orange, .md-btn-orange { background-color: var(--md-orange); color: #fff; border-color: var(--md-orange); }
.btn-orange:hover, .md-btn-orange:hover { background-color: var(--md-orange-dark); border-color: var(--md-orange-dark); color: #fff; }
.badge.btn-orange, .md-badge-orange { background-color: var(--md-orange); color: #fff; }

.md-statusbar { font-size: 13px; }
.refresh-track { height: 3px; background: #e9ecef; }
.refresh-progress { height: 3px; background: var(--md-orange); transition: width 1s linear; }

.md-mini-label { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: #999; }
.md-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #888;
                    border-bottom: 1px solid #eee; padding-bottom: 3px; }
.text-none { text-transform: none; }

.mt5-stat-card .card-body { padding: 14px 16px; }
.mt5-stat-card .stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; margin-bottom: 3px; }
.mt5-stat-card .stat-value { font-size: 1.1rem; font-weight: 700; }
.price-card { border-left: 3px solid var(--md-orange) !important; }
.price-card .sym { font-weight: 700; font-size: .9rem; }
.price-card .bid { color: #dc3545; font-weight: 600; }
.price-card .ask { color: #198754; font-weight: 600; }
.price-card .spread { font-size: 11px; color: #aaa; }
.profit-pos { color: #198754; font-weight: 600; }
.profit-neg { color: #dc3545; font-weight: 600; }

.table th { font-size: 12px; }
.table td { font-size: 13px; vertical-align: middle; }
.audit-table td { font-size: 12px; padding: 4px 8px; vertical-align: top; }
.audit-errors li { color: #dc3545; font-size: 11px; margin: 0; }
.audit-warn li { color: var(--md-orange); font-size: 11px; margin: 0; }
.pos-clickable-row { cursor: pointer; }

.rate-bar { height: 6px; border-radius: 3px; background: #dee2e6; overflow: hidden; }
.rate-bar-fill { height: 100%; border-radius: 3px; background: #198754; transition: width .3s; }
.rate-bar-fill.warn { background: var(--md-orange); }
.rate-bar-fill.danger { background: #dc3545; }

.mt5-tab-hidden { display: none !important; }
#mt5Tabs .nav-link { color: #555; cursor: pointer; }
#mt5Tabs .nav-link.active { color: #000; font-weight: 600; border-bottom: 2px solid var(--md-orange); }

.md-health { border-left-width: 4px !important; }
.md-health-success { border-left-color: #198754 !important; }
.md-health-warning { border-left-color: #ffc107 !important; }
.md-health-danger { border-left-color: #dc3545 !important; }
.md-health-secondary { border-left-color: #6c757d !important; }
.md-hint { background: #fff8ec; }
.md-pricebar { height: 36px; background: #f5f5f5; border-radius: 4px; margin: 8px 0; }

.md-ea-card .card-header { font-size: 14px; }
