body {
    background-color: #ffe4ec;
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px;
    color: #d81b60;
}

.main-container {
    background: #fff0f5;
    padding: 30px;
    border-radius: 30px;
    border: 3px solid #f8bbd0;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    margin: 0 auto;
    padding-bottom: 50px;
}

.upload-section {
    border: 2px dashed #fbcce7;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    background: white;
}

canvas {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    border: 4px solid #f8bbd0;
    background-color: #fff;
}

.controls-panel {
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 20px;
    margin-top: 20px;
}

.control-group {
    margin-bottom: 18px;
    text-align: left;
}

label { font-size: 14px; font-weight: bold; margin-bottom: 8px; display: block; }

input[type="range"] {
    width: 100%;
    appearance: none;
    height: 10px;
    border-radius: 10px;
    background: #fbcce7;
    outline: none;
    touch-action: none; /* Trava o scroll da página ao mexer nos sliders */
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #ff85a2;
    border-radius: 50%;
    cursor: pointer;
}

.hue-slider {
    background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red) !important;
}

button {
    background: linear-gradient(to bottom, #ffb3c6, #ff85a2);
    border: none;
    color: white;
    padding: 15px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(255, 133, 162, 0.3);
}

button:hover { transform: scale(1.03); }

html, body {
    overflow-y: auto; 
    height: auto;
    position: relative;
    touch-action: auto;
}

.presave-link {
    color: #d81b60;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
}

.mini-footer p {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 10px;
}