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

body {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #00FFAA;
    min-height: 100vh;
    overflow-x: auto;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 0 20px #00FFAA, 0 0 40px #00FFAA;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #00FFAA, 0 0 40px #00FFAA; }
    to { text-shadow: 0 0 30px #00FFAA, 0 0 60px #00FFAA, 0 0 80px #00FFAA; }
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.display-container {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #333;
    box-shadow: 
        0 0 30px rgba(0, 255, 170, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

#canvas {
    width: 100%;
    height: auto;
    background: #000;
    border: 3px solid #444;
    border-radius: 8px;
    box-shadow: inset 0 0 20px rgba(0, 255, 170, 0.1);
}

.power-indicator {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.power-led {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    border: 1px solid #555;
    transition: all 0.3s ease;
}

.power-led.active {
    background: #00FF41;
    box-shadow: 0 0 10px #00FF41, 0 0 20px #00FF41;
}

.controls {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 170, 0.3);
    border-radius: 15px;
    padding: 20px;
    height: fit-content;
}

.control-section {
    margin-bottom: 25px;
}

.control-section h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #00FFAA;
    text-transform: uppercase;
    letter-spacing: 1px;
}

select, textarea, input[type="range"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    border-radius: 5px;
    color: #00FFAA;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

select, textarea {
    padding: 8px 12px;
}

textarea {
    height: 100px;
    resize: vertical;
    line-height: 1.4;
}

select:focus, textarea:focus {
    outline: none;
    border-color: #00FFAA;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.3);
}

input[type="range"] {
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00FFAA;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 255, 170, 0.5);
}

label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00FFAA;
}

button {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 1px solid #444;
    border-radius: 5px;
    color: #00FFAA;
    padding: 10px 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

button:hover {
    border-color: #00FFAA;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.3);
    transform: translateY(-1px);
}

.power-button {
    background: linear-gradient(145deg, #4a1a1a, #2a0a0a);
    border-color: #ff4444;
    color: #ff6666;
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
}

.power-button:hover {
    border-color: #ff6666;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid rgba(0, 255, 170, 0.3);
    font-size: 0.9rem;
    opacity: 0.7;
}

footer a {
    color: #00FFAA;
    text-decoration: none;
}

footer a:hover {
    text-shadow: 0 0 5px #00FFAA;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .controls {
        order: -1;
    }
    
    .title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .display-container {
        padding: 15px;
    }
    
    #canvas {
        border-width: 2px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00FFAA;
}