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

body {
    font-family: Arial, Helvetica, 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: 20px;
    font-weight: bold;
    color: black;
    background-color: aliceblue;
    z-index: 10;
}

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

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

.color-software { background-color: #bbdefb; }
.color-standalone { background-color: #a5d6a7; }

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

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

.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: 6px;
    font-size: 14px;
}

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

.btn {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.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; }

@media (max-width: 640px) {
    .title { font-size: 16px; }
    .legend-item { font-size: 11px; }
    .right-panel { width: 190px; }
    .btn { padding: 6px 9px; font-size: 11px; }
    .status-text { font-size: 12px; }
}
