/**
 * Ableton Link Controls CSS
 */

.link-control-panel {
    margin-top: 15px;
    padding: 15px;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.link-title {
    font-family: 'SF Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.link-toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.link-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.link-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .3s;
    border-radius: 20px;
}

.link-toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.link-toggle-switch input:checked + .link-toggle-slider {
    background-color: #ff6600;
}

.link-toggle-switch input:checked + .link-toggle-slider:before {
    transform: translateX(20px);
}

.link-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.link-bpm {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'SF Mono', monospace;
    font-size: 12px;
    color: #ddd;
}

.link-bpm input {
    width: 60px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: 'SF Mono', monospace;
    font-size: 12px;
}

.link-bpm input:focus {
    outline: none;
    border-color: #ff6600;
}

.link-status {
    font-family: 'SF Mono', monospace;
    font-size: 11px;
    color: #999;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

/* Beat Indicator */
.beat-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #555;
    z-index: 100;
    transition: all 0.05s ease;
}

.beat-indicator.beat-flash {
    background: #00ff00;
    border-color: #00ff00;
    box-shadow: 0 0 20px #00ff00;
    transform: scale(1.3);
}

/* MIDI Status Indicator */
.midi-status-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 4px;
    font-family: 'SF Mono', monospace;
    font-size: 11px;
    color: #999;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
}

.midi-status-indicator.connected {
    border-color: #00ff00;
}

.midi-status-indicator.connected::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.midi-status-indicator.disconnected::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
}

/* Keyboard shortcut hint */
.midi-shortcut-hint {
    position: fixed;
    bottom: 60px;
    right: 20px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 3px;
    font-family: 'SF Mono', monospace;
    font-size: 10px;
    color: #ff6600;
    z-index: 99;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.midi-shortcut-hint:hover {
    opacity: 1;
}


