body {
    background: #1a1a1a;
    color: rgb(145, 145, 145);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#controls {
    padding: 6px;
    background: #222;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #333333;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group label {
    font-size: 0.7rem; 
    font-weight: regular;  
    letter-spacing: 0.05em;
}

input, select {
    background: #000000;
    color: #9e9e9e;
    border: 1px solid #444444;
    padding: 5px;
    font-weight: bold;
    border-radius: 1px;
}

input[type="number"] { width: 77px; }

button {
    background: #000000;
    color: rgb(150, 150, 150);
    border: 1px solid #666;
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 1px;
    transition: background 0.2s;
}

button:hover { background: #555; }

#canvas-container {
    width: 100%;
    flex-grow: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

#canvas-container.full-view canvas {
    max-width: 98vw;
    max-height: 85vh;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

canvas {
    image-rendering: crisp-edges;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}