/* Header Styles */
.header {
    grid-column: 1 / -1;
    background-color: #1a1a1a;
    padding: 0 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
    position: relative;
    gap: 10px;
    height: 50px;
}

.logo {
    font-size: 1.8em;
    font-weight: 900;
    margin-right: 20px;
    letter-spacing: 2px;
    
    /* Animated gradient background */
    background: linear-gradient(
        90deg,
        #1e3c72,
        #2a5298,
        #7e22ce,
        #a855f7,
        #22c55e,
        #10b981,
        #06b6d4,
        #0284c7,
        #1e3c72
    );
    background-size: 300% 100%;
    animation: gradient-shift 30s ease infinite;
    
    /* Text masking effect */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    
    /* Add subtle glow */
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.header-stats {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.header-stat {
    font-size: 0.9em;
    color: #aaa;
}

.header-stat span {
    color: #fff;
    font-weight: 600;
}

/* Telemetry Group */
.telemetry-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-size: 0.85em;
}

.telemetry-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
}

.telemetry-label {
    font-size: 0.75em;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.telemetry-divider {
    color: #333;
    font-size: 0.8em;
}

/* Microphone Indicator */
.mic-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    transition: all 0.3s ease;
}

.mic-indicator.connected {
    background: #00ff88;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Action Controls */
.header-action-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 15px;
    border-left: 1px solid #333;
}

.header-action-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #666;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.header-action-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #333;
    color: #667eea;
}

.header-action-btn:active {
    transform: scale(0.95);
}

/* MIDI Controls */
.header-midi-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    border-left: 1px solid #333;
}

.header-midi-controls .midi-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
    transition: all 0.2s;
}

.header-midi-controls .midi-indicator.active {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.header-midi-controls .midi-device-dropdown {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    min-width: 150px;
}

.header-midi-controls .midi-device-dropdown:hover {
    border-color: #667eea;
    color: #fff;
}

.header-midi-controls .midi-learn-btn {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.header-midi-controls .midi-learn-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.header-midi-controls .midi-learn-btn.active,
.header-midi-controls .midi-learn-btn.learning {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: #667eea;
}

.header-midi-controls .learn-icon {
    font-size: 0.8em;
}

/* Settings Button */
/* Menu Dropdown */
.menu-dropdown-container {
    position: relative;
    margin-left: 10px;
}

.menu-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 4px;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.menu-btn.active {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 5px;
    min-width: 150px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.menu-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
    font-size: 14px;
    text-align: left;
}

.menu-option:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
}

.menu-option span:first-child {
    font-size: 16px;
}