/* Basic field wrapper to keep spacing consistent with WordPress forms */
.cmsh-field { padding: 4px 0; }

/* Toggle switch */
.cmsh-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 26px;
  vertical-align: middle;
}
.cmsh-switch input { display: none; }
.cmsh-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #c3c4c7; /* WP gray */
  transition: .25s;
  border-radius: 999px;
}
.cmsh-slider:before {
  content: "";
  position: absolute;
  height: 22px; width: 22px;
  left: 2px; top: 2px;
  background-color: #fff;
  transition: .25s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.cmsh-switch input:checked + .cmsh-slider { background-color: #2271b1; }
.cmsh-switch input:checked + .cmsh-slider:before { transform: translateX(26px); }

/* High contrast focus */
.cmsh-switch input:focus + .cmsh-slider { box-shadow: 0 0 0 3px rgba(34,113,177,.35); }

/* Delete comments section */
.cmsh-delete-comments-section {
  margin-top: 30px;
  padding: 20px;
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  border-radius: 4px;
}

.cmsh-delete-comments-section h2 {
  margin-top: 0;
}

.button-danger {
  background: #dc3232 !important;
  border-color: #dc3232 !important;
  color: #fff !important;
}

.button-danger:hover,
.button-danger:focus {
  background: #c92626 !important;
  border-color: #c92626 !important;
}

/* Stats boxes styles */
.cmsh-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cmsh-stat-box {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.cmsh-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cmsh-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 8px;
}

.cmsh-stat-label {
    display: block;
    color: #50575e;
    font-size: 14px;
    font-weight: 500;
}
