/* Speed Controls CSS - Fixed position speed buttons in bottom right */

.speed-controls-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    background: rgba(26, 26, 46, 0.95);
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #4ecdc4;
    z-index: 10001;  /* Above modals which start at 1000 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.speed-controls-fixed .speed-btn {
    height: 52px;
    border-radius: 8px;
    border: 2px solid #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
    padding: 8px;
}

.speed-controls-fixed .speed-btn:hover {
    background: rgba(78, 205, 196, 0.4);
    transform: scale(1.05);
}

.speed-controls-fixed .speed-btn.active {
    background: #4ecdc4;
    color: #1a1a2e;
}

.speed-controls-fixed .speed-btn.danger {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.speed-controls-fixed .speed-btn.danger:hover {
    background: rgba(255, 107, 107, 0.4);
}

/* Settings button with separator */
.speed-controls-fixed .settings-separator {
    width: 2px;
    background: #4ecdc4;
    margin: 0 8px;
}

.speed-controls-fixed .settings-btn {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 2px solid #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    cursor: pointer;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.speed-controls-fixed .settings-btn:hover {
    background: rgba(78, 205, 196, 0.4);
    transform: scale(1.05);
}

/* Tooltip for speed buttons */
.speed-controls-fixed .speed-btn .tooltip,
.speed-controls-fixed .settings-btn .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1001;
    border: 1px solid #4ecdc4;
    margin-bottom: 5px;
}

.speed-controls-fixed .speed-btn:hover .tooltip,
.speed-controls-fixed .settings-btn:hover .tooltip,
.speed-controls-fixed .reset-position-btn:hover .tooltip {
    opacity: 1;
}

/* Draggable state */
.speed-controls-fixed {
    cursor: grab;
}

.speed-controls-fixed.dragging {
    cursor: grabbing;
    opacity: 0.9;
    user-select: none;
}

/* Reset position button */
.speed-controls-fixed .reset-position-btn {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    border: 2px solid #888;
    background: rgba(136, 136, 136, 0.2);
    color: #888;
    cursor: pointer;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.speed-controls-fixed .reset-position-btn:hover {
    background: rgba(136, 136, 136, 0.4);
    transform: scale(1.05);
}

.speed-controls-fixed .reset-position-btn .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1001;
    border: 1px solid #888;
    margin-bottom: 5px;
}
