/**
 * Checkbox Groups - Premium Design System
 * Clean, organized checkbox groups for settings pages
 * @since 3.0.0
 */

/* ============================================
   CHECKBOX GROUP CONTAINER
   ============================================ */

.prorank-checkbox-section {
  margin-bottom: 32px;
}

.prorank-checkbox-section-header {
  margin-bottom: 16px;
}

.prorank-checkbox-section-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin: 0 0 8px 0 !important;
}

.prorank-checkbox-section-description {
  font-size: 14px !important;
  color: #6b7280 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* ============================================
   CHECKBOX GROUP
   ============================================ */

.prorank-checkbox-group {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  margin-bottom: 16px !important;
  overflow: hidden !important;
}

.prorank-checkbox-group-title {
  background: #f9fafb !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  border-bottom: 1px solid #e5e7eb !important;
  margin: 0 !important;
}

.prorank-checkbox-group-content {
  padding: 16px !important;
}

/* ============================================
   CHECKBOX GRID LAYOUT
   ============================================ */

.prorank-checkbox-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 12px !important;
}

.prorank-checkbox-grid-2col {
  grid-template-columns: repeat(2, 1fr) !important;
}

.prorank-checkbox-grid-3col {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* ============================================
   CHECKBOX ITEM
   ============================================ */

.prorank-checkbox-item {
  display: flex !important;
  align-items: center !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  transition: background 0.2s ease !important;
}

.prorank-checkbox-item:hover {
  background: #f3f4f6 !important;
}

.prorank-checkbox-wrapper {
  display: block !important;
  width: 100% !important;
}

.prorank-checkbox-label {
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  user-select: none !important;
  width: 100% !important;
}

.prorank-checkbox-input {
  margin-right: 10px !important;
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 18px !important;
  cursor: pointer !important;
}

.prorank-checkbox-text {
  flex: 1 !important;
  font-size: 14px !important;
  color: #374151 !important;
  line-height: 1.4 !important;
}

.prorank-checkbox-label-code {
  font-size: 12px !important;
  color: #6b7280 !important;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace !important;
  margin-left: 4px !important;
}

/* ============================================
   SELECT ALL/NONE CONTROLS
   ============================================ */

.prorank-checkbox-controls {
  display: flex !important;
  gap: 16px !important;
  padding: 12px 16px !important;
  background: #f9fafb !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.prorank-checkbox-control-link {
  font-size: 13px !important;
  color: #2563eb !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: color 0.15s ease !important;
}

.prorank-checkbox-control-link:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.prorank-checkbox-empty {
  padding: 24px !important;
  text-align: center !important;
  color: #9ca3af !important;
  font-size: 14px !important;
  font-style: italic !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .prorank-checkbox-grid-3col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .prorank-checkbox-grid,
  .prorank-checkbox-grid-2col,
  .prorank-checkbox-grid-3col {
    grid-template-columns: 1fr !important;
  }

  .prorank-checkbox-controls {
    flex-direction: column !important;
    gap: 8px !important;
  }
}

/* ============================================
   PREMIUM CHECKBOX DESIGN
   ============================================ */

.prorank-checkbox-premium {
  position: relative !important;
}

.prorank-checkbox-premium input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid #d1d5db !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
}

.prorank-checkbox-premium input[type="checkbox"]:hover {
  border-color: #9ca3af !important;
}

.prorank-checkbox-premium input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
  border-color: #f97316 !important;
}

.prorank-checkbox-premium input[type="checkbox"]:checked::after {
  content: '✓' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: white !important;
  font-size: 14px !important;
  font-weight: bold !important;
}