/* Dependency Analysis Console - vis-network MicroSim
 * ==================================================
 * Console-style tool: one shared 9-node dataset, four dependency-analysis
 * queries. Overlays (title, legend, right panel) are SIBLINGS of #network.
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* ===========================================
   CONTAINER & CANVAS
   =========================================== */
.container {
    position: relative;
    width: 100%;
    height: 100vh;
}

#network {
    width: 100%;
    height: 100%;
    background-color: aliceblue;
}

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

/* ===========================================
   LEGEND
   =========================================== */
.legend {
    position: absolute;
    top: 42px;
    left: 10px;
    padding: 6px 8px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 2px 0;
    font-size: 11px;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 6px;
    border: 2px solid #1b3b5f;
    flex-shrink: 0;
}

.color-base { background-color: #a9d0f5; }
.color-learned { background-color: #cfd8dc; border-color: #607d8b; }
.color-gold { background-color: #ffd54f; border-color: #b8860b; }
.color-green { background-color: #66bb6a; border-color: #2e7d32; }
.color-red { background-color: #ef5350; border-color: #c62828; }
.color-purple { background-color: #ab47bc; border-color: #6a1b9a; }

/* ===========================================
   RIGHT PANEL
   =========================================== */
.right-panel {
    position: absolute;
    top: 42px;
    right: 10px;
    width: 290px;
    max-height: calc(100% - 52px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.panel-block {
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.panel-title {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 6px;
    color: #1976d2;
}

.radio-row {
    display: block;
    font-size: 12px;
    margin: 5px 0;
    cursor: pointer;
    line-height: 1.3;
}

.radio-row input { margin-right: 6px; }

.param-label {
    display: block;
    font-size: 11px;
    color: #555;
    margin: 6px 0 2px;
}

select {
    width: 100%;
    padding: 5px 6px;
    font-size: 12px;
    border: 1px solid #b0bec5;
    border-radius: 5px;
    background: white;
}

/* ===========================================
   RESULTS PANEL
   =========================================== */
.results-panel {
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 2px solid #2196f3;
}

.results-title {
    font-weight: bold;
    font-size: 13px;
    color: #1976d2;
    margin-bottom: 6px;
}

.results-text {
    font-size: 12px;
    line-height: 1.55;
    color: #222;
}

/* ===========================================
   LEARNED CHECKLIST
   =========================================== */
.learned-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.learned-item {
    font-size: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    line-height: 1.3;
}

.learned-item input { margin-right: 6px; }

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 640px) {
    .title { font-size: 14px; padding: 4px 8px; }
    .legend { padding: 4px 6px; }
    .legend-item { font-size: 10px; }
    .legend-color { width: 11px; height: 11px; }
    .right-panel { width: 210px; }
    .radio-row, .results-text, .learned-item { font-size: 11px; }
}
