* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
height: 100vh;
overflow: hidden;
background: #1a1a1a;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
display: flex;
flex-direction: column;
}
.status-bar {
height: 32px;
padding: 8px 16px;
background: rgba(0, 0, 0, 0.9);
color: white;
font-size: 12px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
flex-shrink: 0;
}
.toolbar-buttons {
display: flex;
align-items: center;
gap: 8px;
}
.toolbar-btn {
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
font-size: 16px;
padding: 4px 8px;
transition:
color 0.2s,
transform 0.2s;
}
.toolbar-btn:hover {
color: white;
transform: scale(1.1);
}
.toolbar-btn.is-loading {
opacity: 0.6;
cursor: wait;
transform: none;
}
.export-dropdown {
position: relative;
display: inline-block;
}
.export-menu {
display: none;
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
margin-top: 4px;
background: rgba(30, 30, 30, 0.95);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 6px;
padding: 4px 0;
min-width: 140px;
z-index: 100;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.export-menu.visible {
display: block;
}
.export-option {
display: block;
width: 100%;
padding: 8px 16px;
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.85);
font-size: 13px;
text-align: left;
cursor: pointer;
transition: background 0.15s;
}
.export-option:hover {
background: rgba(255, 255, 255, 0.1);
}
.export-option:disabled {
opacity: 0.5;
cursor: wait;
}
.status-indicator {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background: #4caf50;
margin-right: 8px;
}
.status-indicator.disconnected {
background: #f44336;
}
.viewport {
flex: 1;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
cursor: grab;
}
.diagram-wrapper {
padding: 40px;
min-width: 100%;
}
svg {
display: block;
max-width: calc(100vw - 80px);
max-height: calc(100vh - 112px);
width: auto !important;
height: auto !important;
margin: 0 auto;
}