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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
    color: #ffffff;
    min-height: 100vh;
}

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

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

header h1 {
    font-size: 2.5rem;
    color: #00ff88;
    text-shadow: 0 0 20px #00ff88;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #88ccff;
    margin-bottom: 5px;
}

.tagline {
    color: #ffaa44;
    font-style: italic;
}

.main-content {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.canvas-container {
    position: relative;
    flex: 1;
}

#canvas {
    border: 2px solid #00ff88;
    border-radius: 10px;
    background: #0a0a1a;
    cursor: crosshair;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    display: block;
    width: 100%;
    max-width: 800px;
}

.canvas-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
}

.signal-meter {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #00ff88;
    min-width: 200px;
}

.meter-label {
    font-size: 0.9rem;
    color: #88ccff;
    margin-bottom: 8px;
}

.meter-bar {
    width: 100%;
    height: 20px;
    background: #1a1a2e;
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.meter-fill {
    height: 100%;
    background: #00ff88;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 10px;
}

.meter-text {
    text-align: center;
    font-weight: bold;
    color: #ffffff;
}

.controls-panel {
    width: 350px;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid #00ff88;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

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

.control-section h3 {
    color: #00ff88;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

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

.control-group label {
    display: block;
    color: #88ccff;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.control-group input[type="range"] {
    width: 70%;
    margin-right: 10px;
}

.control-group span {
    color: #ffaa44;
    font-weight: bold;
    min-width: 40px;
    display: inline-block;
}

select {
    width: 100%;
    padding: 8px;
    background: #1a1a2e;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 5px;
    font-family: inherit;
}

.btn {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger {
    background: #ff4444;
    color: white;
}

.btn-danger:hover {
    background: #ff6666;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
}

.btn-chaos {
    background: linear-gradient(45deg, #ff4444, #ffaa00, #00ff88, #4488ff);
    color: white;
    animation: rainbowShift 2s ease-in-out infinite;
}

.btn-preset {
    background: #4488ff;
    color: white;
}

.btn-preset:hover {
    background: #6699ff;
    box-shadow: 0 0 15px rgba(68, 136, 255, 0.5);
}

.btn-easter {
    background: #ffaa44;
    color: #1a1a2e;
}

.btn-easter:hover {
    background: #ffcc66;
    box-shadow: 0 0 15px rgba(255, 170, 68, 0.5);
}

.btn-easter.active {
    background: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

@keyframes rainbowShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

.sources-list {
    max-height: 300px;
    overflow-y: auto;
}

.no-sources {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 5px;
}

.source-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.source-icon {
    font-size: 1.2rem;
}

.source-details {
    color: #88ccff;
    font-size: 0.9rem;
}

.source-controls {
    display: flex;
    gap: 5px;
}

.toggle-btn, .delete-btn {
    background: #444;
    border: none;
    padding: 5px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
}

.toggle-btn.active {
    background: #00ff88;
}

.delete-btn:hover {
    background: #ff4444;
}

.info-panel {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid #00ff88;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.interference-strength {
    flex: 1;
    margin-right: 30px;
}

.strength-label {
    color: #88ccff;
    margin-bottom: 10px;
    font-weight: bold;
}

.interference-bar {
    width: 100%;
    height: 25px;
    background: #1a1a2e;
    border: 1px solid #444;
    border-radius: 12px;
    overflow: hidden;
}

.interference-fill {
    height: 100%;
    background: #00ff88;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 12px;
}

.fun-facts {
    flex: 2;
}

.fact-label {
    color: #ffaa44;
    font-weight: bold;
    margin-bottom: 5px;
}

.fun-fact {
    color: #ffffff;
    font-style: italic;
    line-height: 1.4;
}

footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #444;
}

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

footer a:hover {
    text-shadow: 0 0 10px #00ff88;
}

/* Responsive design */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }
    
    .controls-panel {
        width: 100%;
    }
    
    .info-panel {
        flex-direction: column;
        gap: 20px;
    }
    
    .interference-strength {
        margin-right: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
    
    #canvas {
        width: 100%;
        height: auto;
    }
    
    .canvas-overlay {
        position: static;
        margin-top: 10px;
    }
    
    .signal-meter {
        width: 100%;
    }
}

/* Custom scrollbar for sources list */
.sources-list::-webkit-scrollbar {
    width: 8px;
}

.sources-list::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 4px;
}

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

.sources-list::-webkit-scrollbar-thumb:hover {
    background: #666;
}