/* ==========================
   SWITCH TABLATURA
========================== */

.guitar-tab-control {

    display: inline-flex;
    align-items: center;
    gap: 14px;

    margin-top: 16px;

    background: #eef2f7;

    padding: 14px 18px;

    border-radius: 18px;

    border: 1px solid
        rgba(31,103,193,.12);

    box-shadow:
        0 4px 14px
        rgba(0,0,0,.08);

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.guitar-tab-control:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 6px 18px
        rgba(0,0,0,.12);
}


/* SWITCH */

.switch {

    position: relative;

    display: inline-block;

    width: 68px;
    height: 38px;

    flex-shrink: 0;
}

.switch input {

    opacity: 0;
    width: 0;
    height: 0;
}


/* Fondo del switch */

.slider {

    position: absolute;

    inset: 0;

    cursor: pointer;

    background:
        #b8bec8;

    transition:
        .28s ease;

    border-radius: 999px;
}


/* Bolita */

.slider::before {

    content: "";

    position: absolute;

    height: 28px;
    width: 28px;

    left: 5px;
    top: 5px;

    background:
        white;

    border-radius: 50%;

    transition:
        .28s ease;

    box-shadow:
        0 2px 8px
        rgba(0,0,0,.25);
}


/* Estado activado */

.switch input:checked
+ .slider {

    background:
        linear-gradient(
            135deg,
            #1f67c1,
            #1956a5
        );
}

.switch input:checked
+ .slider::before {

    transform:
        translateX(30px);
}


/* Texto */

.switch-label {

    font-size: 18px;
    font-weight: 500;

    color: #17386d;

    user-select: none;
}