* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.container {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 900px;
    width: 100%;
}
header h1 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 1px;
}
.canvas-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
}
canvas {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}
.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: center;
}
.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
input[type="file"] {
    display: none;
}
.button {
    background: #3a86ff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    display: inline-block;
    transition: background 0.3s ease;
}
.button:hover {
    background: #2a75e6;
}
label {
    font-size: 14px;
    color: #aaa;
}
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #3a86ff;
    cursor: pointer;
    margin-top: -6px;
}
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #444;
    border-radius: 2px;
}
