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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    background: #16213e;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header h1 {
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    flex: 1;
    overflow: hidden;
}

.three-viewer, .gcode-editor, .simulation-container, .dashboard {
    background: #16213e;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    overflow: hidden;
}

.three-viewer canvas {
    width: 100%;
    height: calc(100% - 30px);
    border-radius: 4px;
}

.gcode-editor textarea {
    width: 100%;
    height: calc(100% - 70px);
    background: #0f0f23;
    border: none;
    color: #00d4ff;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    padding: 0.5rem;
    resize: none;
    border-radius: 4px;
}

.gcode-editor button {
    background: #00d4ff;
    color: #1a1a2e;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 0.5rem;
    width: 100%;
}

.gcode-editor button:hover {
    background: #00b8e6;
}

.gcode-messages {
    margin-top: 0.5rem;
    font-size: 12px;
    max-height: 100px;
    overflow-y: auto;
}

.simulation-container canvas {
    width: 100%;
    height: calc(100% - 20px);
    background: #0f0f23;
    border-radius: 4px;
}

.dashboard {
    display: flex;
    flex-direction: column;
}

#status-display {
    flex: 1;
    overflow-y: auto;
}

.status-connected { color: #00ff00; }
.status-disconnected { color: #ff4444; }

.job-item {
    background: #0f0f23;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    font-size: 12px;
}

footer {
    background: #16213e;
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #2a2a4e;
}
