:root {
    --panel-bg: #c902a2;
    --input-bg: #34495e;
    --text-main: #ecf0f1;
    --accent: #27ae60;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ad03fc;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.app-container {
    background: var(--panel-bg);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 40px;
    align-items: flex-start;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    max-width: 1200px;
    width: 95%;
}

.app-title {
    width: 100%;
    text-align: left;
    margin: -10px 0 -1.5rem 0;
    font-size: 1.5rem;
}

.stage {
    flex: 1 1 500px;
    min-width: 300px;
    background: #111;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    aspect-ratio: 1;
    border: 1px solid #444;
}

canvas {
    max-width: 100%;
    height: auto;
    background-color: #ffffff;
    background-image: 
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%), 
        linear-gradient(-45deg, #e0e0e0 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #e0e0e0 75%), 
        linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.sidebar {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 1px;
}

select, textarea, input {
    background: #f0f0f0;
    border: 1px solid #cccccc;
    color: #333333;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.radio-group {
    display: flex;
    gap: 15px;
    padding: 10px;
}

.radio-group label {
    color: #ffffff;
    text-transform: none;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.btn-download, .btn-email, .btn-share {
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
    color: white;
}

.btn-download:active, .btn-email:active, .btn-share:active {
    transform: scale(0.98);
}

.btn-email { background: #2874a6; }
.btn-email:hover { background: #2e86c1; }

.btn-download { background: #1e8449; }
.btn-download:hover { background: #239b56; }

.btn-share { background: #27ae60; }
.btn-share:hover { background: #2ecc71; }

hr {
    border: 0;
    border-top: 1px solid #455a64;
    margin: 10px 0;
}

@media (max-width: 600px) {
    .app-container { padding: 20px; }
}