:root {
    --primary-bg: #2a2a2a;
    --secondary-bg: #3a3a3a;
    --panel-bg: #333333;
    --purple-accent: #8b5cf6;
    --purple-light: #a78bfa;
    --purple-dark: #7c3aed;
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --border-color: #4a4a4a;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    width: 100%;
    gap: 1rem;
    padding: 1rem;
}

.panel {
    background: linear-gradient(145deg, var(--panel-bg) 0%, var(--secondary-bg) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 1.5rem;
    overflow-y: auto;
    height: 100%;
    width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.left-panel {
    display: none;
}

.right-panel {
    border-left: none;
    width: 260px;
}

.canvas-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    background: var(--primary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 4px 16px rgba(0, 0, 0, 0.3);
}

canvas {
    border: 2px solid var(--purple-accent);
    border-radius: 8px;
    max-width: 100%;
    max-height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

h2, h3 {
    margin-bottom: 1rem;
    color: var(--purple-light);
    font-weight: 600;
}

h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--purple-accent);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

p, ul {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

input, button {
    padding: 0.75rem;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--secondary-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--purple-accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

button {
    background: linear-gradient(135deg, var(--purple-accent) 0%, var(--purple-dark) 100%);
    color: white;
    cursor: pointer;
    font-weight: 600;
    margin: 0.5rem 0;
    width: 100%;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

button:active {
    transform: translateY(0);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .panel {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    .canvas-container {
        flex-grow: 1;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0.25rem;
    }
    
    .panel {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    .canvas-container {
        min-height: 300px;
    }
}

/* Custom scrollbar for panels */
.panel::-webkit-scrollbar {
    width: 8px;
}

.panel::-webkit-scrollbar-track {
    background: var(--secondary-bg);
    border-radius: 4px;
}

.panel::-webkit-scrollbar-thumb {
    background: var(--purple-accent);
    border-radius: 4px;
}

.panel::-webkit-scrollbar-thumb:hover {
    background: var(--purple-light);
}
