/* ==========================================
  SIMULATION PAGE
   ========================================== */


.results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 10px;
}

.results-left {
    flex: 1;
    margin: 0;
    white-space: pre-wrap;
    color: var(--text-primary);
    font-family: 'JetBrainsMonoNerdFont', monospace;
}

.results-right {
    margin: 0;
    white-space: pre-wrap;
    text-align: left;
    min-width: 60px;
    color: var(--text-primary);
    font-family: 'JetBrainsMonoNerdFont', monospace;
}


.results-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Simulation result text */

.simulation-results-text,
.test-results-text {
    color: var(--text-primary);
    font-family: 'JetBrainsMonoNerdFont', monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.simulation-results-text {
    margin-bottom: 20px;
}

.test-results-text {
    margin-bottom: 16px;
}

/* Result sections */

.results-container h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Simulation chart */

#simulation-chart-container {
    width: 100%;
    margin-top: 16px;
}

#simulation-chart-container .js-plotly-plot {
    width: 100%;
    background-color: var(--chart-bg);
    border-radius: 8px;
}

/* ==========================================
   SIMULATION PAGE LAYOUT
   ========================================== */

.page-container {
    display: flex;
    gap: 20px;
    padding: 15px;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100%;
}

.sidebar {
    width: 300px;
    min-width: 300px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* Simulation setup card */

.sidebar .card {
    width: 100%;
    box-sizing: border-box;
}

/* Run button */

.sidebar .btn {
    width: 100%;
    margin-bottom: 16px;
}

/* Date picker card */

.main-content > .chart-card {
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================
   RESPONSIVE SIMULATION LAYOUT
   ========================================== */

@media (max-width: 900px) {
    .page-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 0;
    }

    .main-content {
        width: 100%;
    }
}