/* Mother — tab bar + tab content styling. Mirrors trader-tabs visual language. */

.mother-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 12px 0 12px;
    border-bottom: 1px solid #2a2a3c;
    background: rgba(15, 15, 25, 0.4);
    overflow-x: auto;
}

.mother-tab {
    background: transparent;
    color: #aaa;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 8px 14px;
    font-size: 0.88em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.mother-tab:hover {
    color: #eee;
    background: rgba(96, 165, 250, 0.08);
}

.mother-tab.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
    border-color: #60a5fa44;
    border-bottom-color: transparent;
}

.mother-tab-content {
    padding: 16px;
    min-height: 400px;
}

.mother-tab-loading {
    padding: 32px;
    text-align: center;
    color: #888;
    font-size: 0.92em;
}

/* --- Gantt --- */

.mother-gantt-wrap { padding: 0 4px; }

.mother-gantt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mother-gantt-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mother-gantt-row {
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid #2a2a3c;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.mother-gantt-row:hover {
    border-color: #60a5fa55;
}

.mother-gantt-row-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.mother-gantt-status {
    font-size: 0.72em;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.mother-gantt-bar {
    position: relative;
    width: 220px;
    height: 18px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    overflow: hidden;
}

.mother-gantt-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #34d399);
    transition: width 0.3s;
}

.mother-gantt-bar-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

.mother-gantt-detail {
    border-top: 1px solid #2a2a3c;
    padding: 6px 14px 10px 14px;
}

.mother-gantt-ms {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px;
    font-size: 0.85em;
}

.mother-gantt-ms-icon {
    min-width: 18px;
    text-align: center;
}

/* --- Governance --- */

.mother-gov-wrap { padding: 0 4px; }

.mother-gov-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mother-gov-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.mother-gov-card {
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid #2a2a3c;
    border-radius: 6px;
    padding: 10px 14px;
}

.mother-gov-section h3 {
    margin: 6px 0 10px 0;
    font-size: 0.95em;
}

.mother-gov-audits-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mother-gov-audit {
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid #2a2a3c;
    border-radius: 6px;
    padding: 10px 12px;
}

.mother-gov-pill {
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    white-space: nowrap;
}

/* --- Regime --- */

.mother-regime-wrap { padding: 0 4px; }

.mother-regime-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mother-regime-current {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
}

.mother-regime-label {
    font-size: 1.1em;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 8px;
    letter-spacing: 0.4px;
}

.mother-fresh-yes {
    color: #10b981;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
}

.mother-fresh-no {
    color: #f87171;
    font-weight: 700;
    background: rgba(248, 113, 113, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
}

.mother-regime-dials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px;
}

.mother-dial {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid #2a2a3c;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 0.85em;
    min-width: 0;
    overflow: hidden;
}

.mother-dial-key {
    color: #888;
    font-family: monospace;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mother-dial-val {
    color: #eee;
    font-weight: 700;
    word-break: break-word;
    white-space: normal;
    font-size: 0.92em;
    line-height: 1.3;
}

.mother-regime-history {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mother-regime-history-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
    font-size: 0.85em;
}

.mother-regime-history-label {
    font-size: 0.72em;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

/* --- Training --- */

.mother-training-wrap { padding: 0 4px; }

.mother-training-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mother-training-pick {
    margin: 14px 0;
}

.mother-training-pick h3,
.mother-training-section h3 {
    margin: 6px 0 8px 0;
    font-size: 0.95em;
}

.mother-training-pick-card {
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid #60a5fa44;
    border-radius: 6px;
    padding: 10px 14px;
}

.mother-training-section { margin-top: 18px; }

.mother-training-topics-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mother-training-topic {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 8px;
    font-size: 0.85em;
}

.mother-training-bar {
    width: 160px;
    height: 8px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    overflow: hidden;
}

.mother-training-bar-fill {
    height: 100%;
    transition: width 0.3s;
}

/* Regime tab — input tiles + per-audience dial blocks */
.mother-regime-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 6px;
    margin: 6px 0 8px 0;
}
.mother-regime-input-tile {
    background: rgba(30,30,46,.6);
    border: 1px solid #2a2a3c;
    border-radius: 5px;
    padding: 6px 10px;
}
.mother-regime-input-key {
    font-family: monospace;
    font-size: 0.72em;
    color: #888;
}
.mother-regime-input-val {
    font-weight: 700;
    font-size: 0.95em;
    color: #eee;
    margin-top: 2px;
}

.mother-regime-audience {
    background: rgba(30,30,46,.4);
    border: 1px solid #2a2a3c;
    border-radius: 6px;
    padding: 8px 12px 10px 12px;
    margin-bottom: 8px;
}
.mother-regime-audience-head {
    font-weight: 700;
    font-size: 0.85em;
    color: #60a5fa;
    text-transform: capitalize;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #2a2a3c;
}
