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

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: #1a1a2e;
    color: #fff;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #00ff88;
    box-shadow: 0 2px 20px rgba(0, 255, 136, 0.3);
}

.header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5em;
    color: #00ff88;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    margin-bottom: 10px;
}

.header p {
    color: #ccc;
    font-size: 1.2em;
}

.main-container {
    display: flex;
    height: calc(100vh - 120px);
}

.left-panel, .right-panel {
    width: 250px;
    background: rgba(42, 42, 58, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    overflow-y: auto;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.left-panel {
    border-right: none;
}

.right-panel {
    border-left: none;
}

.canvas-container {
    flex: 1;
    position: relative;
    background: #0f0f23;
    border: 2px solid #00ff88;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
}

#canvas {
    display: block;
    cursor: crosshair;
    width: 100%;
    height: 100%;
}

.canvas-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #00ff88;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    pointer-events: none;
}

.panel-section {
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.panel-section h3 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item span:last-child {
    color: #00ff88;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.control-btn, .preset-btn, .tool-btn {
    background: linear-gradient(135deg, #2a2a3a 0%, #3a3a4a 100%);
    color: #fff;
    border: 2px solid #00ff88;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px 0;
    width: 100%;
    font-size: 14px;
}

.control-btn:hover, .preset-btn:hover, .tool-btn:hover {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.tool-btn.active {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
}

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

.slider-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #2a2a3a;
    outline: none;
    -webkit-appearance: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.7);
}

.slider-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ff88;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.7);
}

.tool-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.panel-section p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Scrollbar styling */
.left-panel::-webkit-scrollbar,
.right-panel::-webkit-scrollbar {
    width: 6px;
}

.left-panel::-webkit-scrollbar-track,
.right-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.left-panel::-webkit-scrollbar-thumb,
.right-panel::-webkit-scrollbar-thumb {
    background: #00ff88;
    border-radius: 3px;
}

/* Responsive design */
@media (max-width: 1200px) {
    .left-panel, .right-panel {
        width: 200px;
    }
    
    #canvas {
        width: 600px;
        height: 450px;
    }
}

@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    .canvas-container {
        margin: 5px;
    }
}

/* Glow animations */
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.6); }
    100% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.3); }
}

.panel-section {
    animation: glow 3s ease-in-out infinite;
}

/* Loading and transition effects */
.canvas-container {
    transition: border-color 0.3s ease;
}

.canvas-container:hover {
    border-color: #00cc6a;
}