body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f0f2f5;
    color: #1a1a1a;
    min-height: 100vh;
}

.container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    padding: 24px;
    min-height: calc(100vh - 48px);
}

.controls-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 24px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 500;
    color: #333;
}

input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.checkbox-label {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.canvas-wrapper {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.output-canvas {
    background: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.output-canvas.effect-3d {
    transform: perspective(1000px) rotateX(45deg) rotateZ(-45deg);
    box-shadow: 
        -5px 5px 15px rgba(0, 0, 0, 0.1),
        -15px 15px 25px rgba(0, 0, 0, 0.08),
        -25px 25px 35px rgba(0, 0, 0, 0.06);
}

.download-button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 8px;
}

.download-button:hover {
    background: #0056b3;
}

.download-button:active {
    transform: translateY(1px);
}

.download-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

h1 {
    margin: 0 0 24px 0;
    font-size: 24px;
    color: #1a1a1a;
    font-weight: 600;
}

h2 {
    font-size: 16px;
    color: #666;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.control-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 4px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.control-group:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

.file-upload {
    margin-bottom: 24px;
}

.file-label {
    display: block;
    padding: 12px;
    background: #007bff;
    color: white;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.file-label:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-label:active {
    transform: translateY(0);
}

input[type="file"] {
    display: none;
}
