/* styles/components/document-toggle.css */
.toggle-switch {
    position: relative;
    display: flex;
    width: 100%;
    height: 45px;
    justify-content: center;
    align-items: center;
}

.toggle-switch input { 
    display: none; 
}

.toggle-slider {
    position: relative;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background-color: #395d6d;
    border-radius: 34px;
    transition: .4s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

.toggle-text {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
    z-index: 2;
    transition: color .4s;
    color: white;
}

.toggle-text-left {
    color: #395d6d;
}

.toggle-text-right {
    color: white;
}

.toggle-indicator {
    position: absolute;
    content: "";
    width: calc(50% - 5px);
    left: 5px;
    top: 5px;
    bottom: 5px;
    background-color: white;
    border-radius: 34px;
    transition: transform .4s;
    z-index: 1;
}

/* Estado checked - PJ selecionado */
input:checked ~ .toggle-slider .toggle-text-left {
    color: white;
}

input:checked ~ .toggle-slider .toggle-text-right {
    color: #395d6d;
}

input:checked ~ .toggle-slider .toggle-indicator {
    transform: translateX(calc(100%));
}