/* Kit Import Map - vis-network MicroSim stylesheet
 * Layout: graph on the left (title and legend overlays), panel on the right.
 * Designed for a 562px iframe with no wasted padding.
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    display: flex;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    border: 1px solid silver;
}

.graph-area {
    position: relative;
    flex: 1;
    min-width: 0;
}

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

.title {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: bold;
    background-color: aliceblue;
    padding: 2px 10px;
    white-space: nowrap;
    z-index: 10;
}

.legend {
    position: absolute;
    top: 42px;
    left: 8px;
    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: 3px 0;
    font-size: 13px;
}

.legend-swatch {
    width: 18px;
    height: 14px;
    border-radius: 3px;
    margin-right: 6px;
    border: 2px solid black;
}

.swatch-top { background-color: lightskyblue; border-color: steelblue; }
.swatch-lib { background-color: palegreen; border-color: seagreen; }

.legend-arrow {
    width: 18px;
    margin-right: 6px;
    font-weight: bold;
    color: dimgray;
    text-align: center;
}

.right-panel {
    width: clamp(250px, 38%, 330px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background-color: white;
    border-left: 1px solid silver;
}

.info-panel, .check-panel {
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.info-panel {
    border: 2px solid steelblue;
    min-height: 104px;
}

.info-title {
    font-weight: bold;
    font-size: 15px;
    color: steelblue;
    margin-bottom: 4px;
}

.info-content {
    font-size: 14px;
    line-height: 1.4;
}

.info-placeholder {
    color: gray;
    font-style: italic;
}

.check-panel {
    flex: 1;
    border: 2px solid silver;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.check-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.check-title {
    font-weight: bold;
    font-size: 15px;
}

.score {
    font-size: 14px;
    font-weight: bold;
}

.question {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.hint {
    font-size: 13px;
    color: dimgray;
    line-height: 1.35;
}

.choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px 6px;
    font-size: 13px;
}

.choices label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.choices label.self {
    color: silver;
    cursor: default;
}

.choices label.right { color: green; font-weight: bold; }
.choices label.wrong { color: crimson; text-decoration: line-through; }

.buttons {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 6px 14px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary {
    background-color: steelblue;
    color: white;
}

.btn-primary:hover { background-color: #2c5d87; }

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

.feedback {
    font-size: 14px;
    line-height: 1.35;
}

.feedback.correct { color: darkgreen; }
.feedback.incorrect { color: firebrick; }
