/* Mermaid MicroSim: 2/3 diagram panel + 1/3 detail panel. */

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    display: flex;
    width: 100%;
    height: 690px;
}

.diagram-panel {
    width: 66.67%;
    height: 100%;
    padding: 10px;
    overflow: visible;
    background-color: aliceblue;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.mermaid {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mermaid svg {
    max-width: 100%;
    max-height: 670px;
}

.info-panel {
    width: 33.33%;
    height: 100%;
    padding: 15px;
    overflow: visible;
    background-color: #f8fafc;
    border-left: 1px solid #cbd5e1;
}

.info-panel h3 {
    margin-bottom: 6px;
    padding-bottom: 8px;
    color: #1e293b;
    border-bottom: 2px solid #4f46e5;
    font-size: 18px;
}

.interaction-hint {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

#panel-wrap {
    position: relative;
    height: 610px;
}

#info-display {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    padding: 10px;
    color: #334155;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgb(15 23 42 / 8%);
    transition: top 120ms ease-out;
}

.info-title {
    margin-bottom: 8px;
    color: #4338ca;
    font-size: 16px;
    font-weight: bold;
}

.info-content {
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}

.info-placeholder {
    color: #64748b;
    font-size: 14px;
    font-style: italic;
    line-height: 1.45;
}

.node {
    cursor: pointer;
}

.node:hover rect,
.node:hover circle,
.node:hover polygon,
.node.selected rect,
.node.selected circle,
.node.selected polygon {
    filter: brightness(1.12);
    stroke-width: 4px !important;
}

.node:focus {
    outline: none;
}

.node:focus rect,
.node:focus circle,
.node:focus polygon {
    filter: brightness(1.12);
    stroke-width: 4px !important;
}
