/* Settings Page */
.settings-page {
  min-height: 100vh;
  background: #f5f5f0;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
}

/* Header */
.settings-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.back-btn {
  padding: 0.75rem 1.25rem;
  background: #f5f5f0;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.back-btn:hover {
  background: #eee;
}

.settings-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

/* Content */
.settings-content {
  flex: 1;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Sections */
.settings-section {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.section-desc {
  font-size: 0.95rem;
  color: #888;
  margin: 0 0 1.25rem;
}

/* Checkbox & Radio Groups */
.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #f9f9f7;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.checkbox-item:hover,
.radio-item:hover {
  background: #f0f0eb;
}

.checkbox-item:has(input:checked),
.radio-item:has(input:checked) {
  background: #f0e500;
}

.checkbox-item input,
.radio-item input {
  display: none;
}

.checkbox-box,
.radio-box {
  width: 24px;
  height: 24px;
  border: 2px solid #ccc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.radio-box {
  border-radius: 50%;
}

.checkbox-item input:checked + .checkbox-box,
.radio-item input:checked + .radio-box {
  border-color: #1a1a1a;
  background: #1a1a1a;
}

.checkbox-item input:checked + .checkbox-box::after {
  content: '✓';
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.radio-item input:checked + .radio-box::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
}

.checkbox-label,
.radio-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Category Actions */
.category-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mini-btn {
  padding: 0.5rem 1rem;
  background: #f5f5f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mini-btn:hover {
  background: #eee;
}

/* Footer */
.settings-footer {
  padding: 1.5rem 2rem;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
}

.save-btn {
  padding: 1rem 3rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.save-btn:hover {
  opacity: 0.9;
}

.save-btn:active {
  transform: scale(0.98);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .settings-header {
    padding: 1rem 1.5rem;
  }
  
  .settings-title {
    font-size: 1.4rem;
  }
  
  .settings-content {
    padding: 1rem;
  }
  
  .settings-section {
    padding: 1.25rem;
  }
  
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  
  .checkbox-item,
  .radio-item {
    padding: 0.875rem 1rem;
  }
}
