/* Chapter 1 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 {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: bold;
    color: black;
    background-color: aliceblue;
    z-index: 10;
}

.legend {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 8px 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: 10px;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 5px;
    border: 2px solid #333;
}

.color-core { background-color: #2196F3; }
.color-bloom { background-color: #9C27B0; }
.color-levels {
    background: linear-gradient(135deg, #E3F2FD, #E8F5E9, #FFF9C4, #FFE0B2, #FCE4EC, #E1BEE7);
}
.color-objective { background-color: #4CAF50; }
.color-decomposition { background-color: #FF9800; }

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

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

.status-title {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 12px;
}

.status-text {
    font-size: 11px;
    line-height: 1.4;
}

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

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

.btn-primary {
    background-color: #2196f3;
    color: white;
}

.btn-primary:hover {
    background-color: #1976d2;
}

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

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

.node-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);
    border-left: 4px solid #2196f3;
}

.info-title {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 4px;
    color: #1565C0;
}

.info-category {
    font-size: 10px;
    color: #666;
    margin-bottom: 6px;
    font-style: italic;
}

.info-desc {
    font-size: 11px;
    line-height: 1.4;
    color: #333;
}

@media (max-width: 600px) {
    .title {
        font-size: 14px;
    }

    .legend {
        padding: 6px 8px;
    }

    .legend-item {
        font-size: 9px;
    }

    .right-panel {
        width: 180px;
    }

    .btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}
