* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1e293b 100%);
    color: #ffffff;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 15px;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.header h1 {
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2em;
    color: #e2e8f0;
    letter-spacing: 1px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-bottom: 30px;
}

.canvas-section {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

#canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.controls-panel {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    overflow-y: auto;
    max-height: 650px;
}

.control-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.control-section:last-child {
    border-bottom: none;
}

.control-section h2 {
    font-size: 1.1em;
    color: #10b981;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: bold;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    color: #e2e8f0;
    font-size: 0.95em;
}

.control-group input[type="color"] {
    width: 100%;
    height: 50px;
    border: 2px solid rgba(59, 130, 246, 0.5);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

.control-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(59, 130, 246, 0.3);
    outline: none;
    cursor: pointer;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.control-group select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid rgba(59, 130, 246, 0.5);
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    font-size: 1em;
    cursor: pointer;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

button {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
    border: 2px solid rgba(59, 130, 246, 0.5);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.footer {
    text-align: center;
    padding: 20px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 15px;
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #10b981;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

.subtitle {
    font-size: 0.9em;
    color: #94a3b8;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .controls-panel {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    canvas {
        max-width: 100%;
        height: auto;
    }
}