.op-mode-toggle {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    border-radius: 99px;
    /* Glassmorphism: semi-transparent background */
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Glassmorphism: backdrop blur */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    padding: 4px;
    box-sizing: border-box;
}

.op-mode-toggle[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
}

.op-mode-toggle:not([aria-disabled="true"]):hover {
    border-color: rgba(var(--color-primary-rgb), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.op-mode-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: var(--shadow-lg);
    /* Remove the icon from the thumb as it's now in the label */
    /* This fixes the overlap issue */
}

.op-mode-label {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 1;
    transition: color 0.3s var(--transition-smooth);
}

/* Move Active State */
.op-mode-toggle.move-active .op-mode-thumb {
    transform: translateX(100%);
    background: var(--color-gradient);
}

.op-mode-toggle.move-active .op-mode-move {
    color: white;
}

.op-mode-toggle.move-active .op-mode-copy {
    color: var(--color-text-muted);
}

/* Copy Active State */
.op-mode-toggle.copy-active .op-mode-thumb {
    transform: translateX(0%);
    /* New, more fitting gradient for 'Copy' */
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
}

.op-mode-toggle.copy-active .op-mode-copy {
    color: white;
}

.op-mode-toggle.copy-active .op-mode-move {
    color: var(--color-text-muted);
}