
/* ═══════════════════════════════════════════════════════════════════════
   9. RemoteMotionPad (لوح التحريك عن بعد)
   ═══════════════════════════════════════════════════════════════════════ */

.blend-pads-list {
    max-height: 700px;
    overflow-y: auto;
    padding: 5px 0;
}

.remote-pad-empty {
    text-align: center;
    color: var(--text-dim);
    font-size: 11px;
    padding: 15px 10px;
    line-height: 1.6;
}

.remote-pad-item {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin: 5px 10px;
    padding: 8px 10px;
    position: relative;
    transition: border-color 0.15s;
}
.remote-pad-item:hover {
    border-color: #22c55e44;
}

/* ─── Header ─── */
.remote-pad-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 4px;
}

.remote-pad-name {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 4px;
    border-radius: 3px;
}
.remote-pad-name:hover {
    background: var(--bg-hover);
}

.remote-pad-controls {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}
.remote-pad-controls button {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    color: var(--text-dim);
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, border-color 0.15s;
}
.remote-pad-controls button:hover {
    background: var(--bg-hover);
    color: var(--text-bright);
    border-color: var(--border-light);
}

/* ─── Pad Canvas (2D Control) ─── */
.remote-pad-canvas-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 8px 0;
}

.remote-pad-canvas {
    position: relative;
    background: radial-gradient(circle at center, #1a2e1a 0%, #16213e 60%, #1a1a2e 100%);
    border: 2px solid #2d4a2d;
    cursor: crosshair;
    overflow: hidden;
    box-shadow: inset 0 0 16px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.14);
    transition: border-color 0.2s, box-shadow 0.2s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.remote-pad-canvas:hover {
    border-color: #22c55e;
}
.remote-pad-canvas.active {
    border-color: #4ade80;
    box-shadow: inset 0 0 16px rgba(0,0,0,0.18), 0 0 16px rgba(34, 197, 94, 0.3);
}

/* Cross-hair guides */
.remote-pad-cross-h {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(34, 197, 94, 0.15);
    pointer-events: none;
}
.remote-pad-cross-v {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(34, 197, 94, 0.15);
    pointer-events: none;
}

/* Direction arrows overlay */
.remote-pad-arrows {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Handle (draggable circle) */
.remote-pad-handle {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #86efac, #22c55e);
    border: 2px solid #fff;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4), 0 2px 4px rgba(0,0,0,0.18);
    transform: translate(-50%, -50%);
    cursor: grab;
    transition: box-shadow 0.15s;
    z-index: 5;
    pointer-events: none;
}
.remote-pad-handle.dragging {
    cursor: grabbing;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.9), 0 0 40px rgba(34, 197, 94, 0.4);
    background: radial-gradient(circle at 35% 35%, #bbf7d0, #4ade80);
}

/* Motion type label */
.remote-pad-motion-label {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(34, 197, 94, 0.08);
    text-align: center;
}

/* Coordinate display */
.remote-pad-coord {
    text-align: center;
    font-size: 10px;
    color: #888;
    font-family: monospace;
    margin: 2px 0 6px;
    letter-spacing: 0.5px;
}

/* ─── Motion Type Section ─── */
.remote-pad-motion-section {
    border-top: 1px solid var(--border);
    padding-top: 6px;
    margin-top: 4px;
    margin-bottom: 6px;
}

.remote-pad-section-header {
    font-size: 10px;
    color: #4ade80;
    margin-bottom: 4px;
    font-weight: 600;
}

.remote-pad-motion-select {
    width: 100%;
    font-size: 10px;
    padding: 4px 6px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-main);
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 4px;
}

.remote-pad-strength-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: var(--text-dim);
}
.remote-pad-strength-row label {
    white-space: nowrap;
    flex-shrink: 0;
}
.remote-pad-strength-range {
    flex: 1;
    height: 14px;
    accent-color: #22c55e;
    cursor: pointer;
}
.remote-pad-strength-val {
    font-size: 9px;
    color: #4ade80;
    min-width: 30px;
    text-align: center;
    font-family: monospace;
}

/* ─── Assignment Section ─── */
.remote-pad-assign-section {
    border-top: 1px solid var(--border);
    padding-top: 6px;
    margin-top: 4px;
}

.remote-pad-assign-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 10px;
    color: var(--text-dim);
}

.remote-pad-add-shape-btn {
    font-size: 9px;
    padding: 2px 8px;
    border: 1px solid #22c55e;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}
.remote-pad-add-shape-btn:hover {
    background: rgba(34, 197, 94, 0.25);
}

.remote-pad-assign-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.remote-pad-no-assign {
    text-align: center;
    font-size: 10px;
    color: #555;
    padding: 6px;
    line-height: 1.5;
}

.remote-pad-assign-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 4px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.03);
    font-size: 10px;
}
.remote-pad-assign-item:hover {
    background: rgba(34, 197, 94, 0.08);
}

.remote-pad-assign-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.remote-pad-assign-name {
    flex: 1;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
    min-width: 0;
}

.remote-pad-axis-select {
    width: 38px;
    font-size: 9px;
    padding: 1px 2px;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-main);
    border-radius: 3px;
    cursor: pointer;
}

.remote-pad-invert-btn {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    color: var(--text-dim);
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}
.remote-pad-invert-btn.active {
    background: rgba(34, 197, 94, 0.3);
    border-color: #22c55e;
    color: #86efac;
}

.remote-pad-weight-range {
    width: 40px;
    height: 12px;
    accent-color: #22c55e;
    cursor: pointer;
}

.remote-pad-remove-btn {
    width: 16px;
    height: 16px;
    border: none;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.5;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.remote-pad-remove-btn:hover {
    opacity: 1;
}

/* ─── Info Section ─── */
.remote-pad-info {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(34, 197, 94, 0.1);
}
