/* Mendel-to-Meiosis Concept Map Stylesheet */

* {
    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 */
.title {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    background-color: aliceblue;
    padding: 2px 12px;
    z-index: 10;
}

/* Legend */
.legend {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    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: 12px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 6px;
    border: 2px solid #333;
}

.color-meiosis { background-color: #5DADE2; }
.color-genetics { background-color: #58D68D; }

/* Right Panel */
.right-panel {
    position: absolute;
    top: 50px;
    right: 10px;
    /* changed from 200px to 160px to avoid overlap */
    width: 160px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

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

.status-title {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 14px;
    color: #2C3E50;
}

.status-text {
    font-size: 12px;
    line-height: 1.5;
    color: #333;
}

.controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background-color: #757575;
    color: white;
}

.btn-secondary:hover {
    background-color: #616161;
}

/* Responsive */
@media (max-width: 600px) {
    .title { font-size: 16px; }
    .right-panel { width: 200px; }
    .legend-item { font-size: 10px; }
    .btn { padding: 6px 12px; font-size: 11px; }
}
