:root {
  --primary: #4a90e2;
  --danger: #e74c3c;
  --success: #4caf50;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-600: #6c757d;
  --gray-800: #343a40;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.6;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
/* Header */ header {
  background: white;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-icon {
  width: 64px;
  height: 64px;
}
h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.subtitle {
  color: var(--gray-600);
  font-size: 14px;
}
/* Cards */ .card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.description {
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 20px;
}
/* Settings Rows */ .setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}
.setting-row:last-child {
  border-bottom: none;
}
.setting-info {
  flex: 1;
}
.setting-label {
  font-weight: 600;
  margin-bottom: 4px;
}
.setting-desc {
  font-size: 13px;
  color: var(--gray-600);
}
/* Toggle Switch */ .toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  border-radius: 28px;
  transition: 0.3s;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle input:checked + .toggle-slider {
  background-color: var(--success);
}
.toggle input:checked + .toggle-slider:before {
  transform: translateX(24px);
}
/* Statistics */ .stats-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.stat-box {
  background: var(--gray-100);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}
.stat-label {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}
/* Rules Summary */ .rules-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.rule-count {
  background: var(--gray-100);
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}
.count {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.count-label {
  font-size: 12px;
  color: var(--gray-600);
}
/* Buttons */ .button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-800);
}
.btn-secondary:hover {
  background: var(--gray-300);
}
.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover {
  background: #c0392b;
}
/* About */ .about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.about-item {
  background: var(--gray-100);
  padding: 12px;
  border-radius: 6px;
}
.about-label {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 4px;
}
.about-value {
  font-weight: 600;
}
.about-text {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
/* Footer */ footer {
  text-align: center;
  padding: 20px;
  color: var(--gray-600);
  font-size: 13px;
}
footer a {
  color: var(--primary);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
/* Responsive */ @media (max-width: 600px) {
  .rules-summary {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  button {
    width: 100%;
  }
}
