* { box-sizing: border-box; }
body { margin: 0; display: flex; height: 100vh; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #1e1e1e; color: #ccc; overflow: hidden; }
#sidebar { width: 340px; background: #252526; padding: 16px; border-right: 1px solid #333; display: flex; flex-direction: column; gap: 10px; }
#canvas-container { flex-grow: 1; position: relative; }
canvas { width: 100%; height: 100%; display: block; background: #111; }

button { padding: 10px; background: #0e639c; color: white; border: none; cursor: pointer; border-radius: 4px; font-weight: bold; }
button:hover { background: #1177bb; }
button.export { background: #23d160; color: #000; }
button.export:hover { background: #20bc56; }

.console { background: #000; color: #00ff00; padding: 10px; font-family: monospace; font-size: 11px; flex-grow: 1; overflow-y: auto; white-space: pre-wrap; border: 1px solid #333; border-radius: 4px; }

/* Modal Styling for Service Inspector */
#modal-backdrop { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); z-index: 10; justify-content: center; align-items: center; }
#modal { background: #2d2d2d; width: 380px; padding: 20px; border-radius: 6px; border: 1px solid #454545; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
#modal h3 { margin-top: 0; color: #fff; border-bottom: 1px solid #444; padding-bottom: 8px; }
.service-option { display: flex; align-items: center; justify-content: space-between; margin: 10px 0; background: #222; padding: 8px 12px; border-radius: 4px; }
.service-option label { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions button { flex: 1; }

/* Status Badge Styling */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}
.status-badge.online {
    background-color: #e6f4ea;
    color: #137333;
}
.status-badge.offline {
    background-color: #fce8e6;
    color: #c5221f;
}
