/* Biotechnology Toolkit Workflow - Mermaid MicroSim Stylesheet
   Layout: 2/3 diagram panel + 1/3 info panel
*/

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

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

#diagram-title {
    text-align: center;
    font-size: 1.4rem;
    margin: 4px 0 2px;
    color: #1a1a1a;
}

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

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

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

.mermaid svg {
    max-width: 100%;
    max-height: calc(100vh - 20px);
}

.info-panel {
    width: 33.33%;
    height: 100%;
    background-color: #f8f9fa;
    border-left: 1px solid #dee2e6;
    padding: 15px;
    overflow-y: auto;
}

.info-panel h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498DB;
}

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

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

.info-placeholder {
    color: #888;
    font-style: italic;
    font-size: 14px;
}

.legend {
    margin-bottom: 12px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 8px 10px;
    background: #fff;
}

.legend-title {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 13px;
    color: #333;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 3px 0;
    font-size: 12px;
    color: #555;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 6px;
    flex-shrink: 0;
}

.node {
    cursor: pointer;
}

.node:hover rect,
.node:hover circle,
.node:hover polygon {
    filter: brightness(1.1);
}
