/* vis-network layout for The ADHD Comorbidity Map */

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

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

.container {
    position: relative;
    width: 100%;
    height: 100vh;
}

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

.title {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 19px;
    font-weight: bold;
    color: black;
    background-color: aliceblue;
    z-index: 10;
}

.legend {
    position: absolute;
    top: 36px;
    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: 3px 0;
    font-size: 11.5px;
}

.legend-line {
    width: 22px;
    height: 4px;
    margin-right: 5px;
    border-radius: 2px;
}

.line-roots { background-color: #4a78b5; }
.line-consequence { background-color: #d98032; }
.line-entangled { background-color: #7d5ba6; }
.line-lookalike { background-color: #9e9e9e; }

.right-panel {
    position: absolute;
    top: 36px;
    right: 10px;
    width: 235px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

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

.status-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 12.5px;
}

.status-text {
    font-size: 11.5px;
    line-height: 1.45;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.96);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn {
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    background-color: #e3e8ef;
    color: #333;
}

.btn-small {
    padding: 5px 8px;
    font-size: 11px;
}

.btn:hover { background-color: #c9d4e2; }
.btn.active { background-color: #2196f3; color: white; }
.btn-dev { background-color: #fdebd2; }
.btn-dev:hover { background-color: #f8dcae; }

@media (max-width: 620px) {
    .right-panel { width: 180px; }
    .legend-item { font-size: 10px; }
}
