/* Linear Path vs. Rhizombic Exploration
 * ======================================
 * Two side-by-side vis-network panels (linear + rhizomatic) over a shared
 * concept set, with a bottom control/caption bar. Panels stack vertically
 * below 700px. All overlays are siblings of the network divs, never children.
 */

/* ===========================================
   RESET & BASE
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: aliceblue;
}

/* ===========================================
   MAIN CONTAINER
   =========================================== */
.container {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 40px 8px 8px 8px;
}

/* ===========================================
   TITLE (Top Center)
   =========================================== */
.title {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: bold;
    color: black;
    background-color: aliceblue;
    padding: 2px 12px;
    white-space: nowrap;
    z-index: 10;
}

/* ===========================================
   PANELS (Side-by-side on wide viewports)
   =========================================== */
.panels {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    /* leaves room for the control bar (approx 70px) */
    height: calc(100% - 76px);
}

.panel {
    position: relative;
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.panel-header {
    flex: 0 0 auto;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    padding: 6px 4px;
    color: white;
}

.panel-header-linear {
    background-color: #2b6cb0; /* blue */
}

.panel-header-rhizo {
    background-color: #b7791f; /* gold/amber */
}

.network {
    flex: 1 1 auto;
    width: 100%;
    background-color: #fbfdff;
}

/* ===========================================
   BOTTOM CONTROL + CAPTION BAR
   =========================================== */
.control-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

.caption {
    flex: 1 1 240px;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    min-width: 200px;
}

.caption.highlight {
    color: #8a5a00;
    font-weight: bold;
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background-color: #b7791f;
    color: white;
}

.btn-primary:hover {
    background-color: #975f11;
}

.btn-primary:disabled {
    background-color: #d9bd88;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #757575;
    color: white;
}

.btn-secondary:hover {
    background-color: #616161;
}

/* ===========================================
   RESPONSIVE: stack panels vertically < 700px
   =========================================== */
@media (max-width: 700px) {
    .panels {
        flex-direction: column;
        height: calc(100% - 92px);
    }

    .title {
        font-size: 15px;
    }

    .btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .caption {
        font-size: 12px;
    }
}
