// Plugin Manager Switch & Status

.mod-switch {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 14px;
  vertical-align: middle;
  margin: 0 2px 0 0;

  input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .mod-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #6fdc8c; // verde claro quando desmarcado
    transition: .2s;
    border-radius: 14px;

    &:before {
      position: absolute;
      content: "";
      height: 9px;
      width: 9px;
      left: 2.5px;
      bottom: 2.5px;
      background-color: #fff;
      transition: .2s;
      border-radius: 50%;
      box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    }
  }

  input:checked + .mod-slider {
    background-color: #f19999; // vermelho claro
  }
  input:not(:checked) + .mod-slider {
    background-color: #6fdc8c; // verde claro
  }
  input:checked + .mod-slider:before {
    transform: translateX(12px);
  }
  input:disabled + .mod-slider {
    background-color: #eee;
    cursor: not-allowed;
  }
}

.mod-status-text {
  font-size: 10px;
  display: block;
  margin-top: 1px;
  line-height: 1;
  font-style: italic;
  letter-spacing: 0.2px;
  font-weight: 600;

  &.mod-incluido {
    color: #6fdc8c; // verde claro
  }
  &.mod-excluido {
    color: #f19999; // vermelho claro
  }
}

.mod-no-control {
  color: #bbb;
  font-style: italic;
  font-size: 12px;
}

.wp-list-table .column-mod_auto_update {
  width: 70px;
  text-align: center;
  vertical-align: middle;
}

@media (max-width: 782px) {
  .mod-switch {
    width: 18px;
    height: 10px;
    .mod-slider:before {
      height: 6px;
      width: 6px;
      left: 1.5px;
      bottom: 1.5px;
    }
  }
  .mod-switch input:checked + .mod-slider:before {
    transform: translateX(6px);
  }
  .wp-list-table .column-mod_auto_update {
    width: 40px;
  }
} 