/* Admin specific styles for Joynal Dark Mode Switcher */
.wrap form label {
    font-weight: bold;
}
.wrap form textarea.code {
    font-family: monospace;
    background: #f0f0f1;
}

/* ============================================================
   CSS Pill Toggle Switch
   ============================================================ */
.jdms-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal !important;
    user-select: none;
}

/* Hide the actual checkbox */
.jdms-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

/* The pill track */
.jdms-toggle-slider {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    background-color: #c8ccd0;
    border-radius: 999px;
    transition: background-color 0.25s ease;
    flex-shrink: 0;
}

/* The circle knob */
.jdms-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Checked state — slide knob right & turn track blue */
.jdms-toggle-input:checked + .jdms-toggle-slider {
    background-color: #0073aa;
}

.jdms-toggle-input:checked + .jdms-toggle-slider::after {
    transform: translateX(20px);
}

/* Focus ring for accessibility */
.jdms-toggle-input:focus-visible + .jdms-toggle-slider {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Toggle text */
.jdms-toggle-text {
    font-weight: normal;
    color: #3c434a;
    font-size: 13px;
    line-height: 1.4;
}
