body {
    margin: 0;
    font-family: Arial;
    background: #1e1e1e;
    color: white;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.controls {
    flex: 1;
    min-width: 250px;
    background: #2b2b2b;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.canvas-area {
    flex: 2;
    min-width: 300px;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 10px;
    overflow: auto;
}

canvas {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    background: transparent;
    border: 1px solid #444;
}

/* Inputs */
input,
button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    box-sizing: border-box;
}

button {
    background: #00c853;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #00a844;
}

button:disabled {
    background: #555;
    cursor: not-allowed;
}

#scaleValue {
    font-size: 13px;
    color: #aaa;
}

/* Range */
input[type="range"] {
    accent-color: #00c853;
}

/* Tamanho inputs */
.size-inputs {
    display: flex;
    gap: 10px;
}

.size-inputs input {
    flex: 1;
}

/* Checkbox moderno */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-container input {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container input:checked+.checkbox-custom {
    background: #00c853;
}

.checkbox-custom::after {
    content: "";
    width: 10px;
    height: 10px;
    background: white;
    display: none;
}

.checkbox-container input:checked+.checkbox-custom::after {
    display: block;
}



.rotate-buttons {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.rotate-buttons button {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}












/* Mobile */
@media(max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .size-inputs {
        flex-direction: column;
    }
}