* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 400px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
}

.container {
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  text-align: center;
  border-bottom: 3px solid #764ba2;
}

header h1 {
  font-size: 24px;
  margin-bottom: 5px;
  font-weight: 600;
}

header .subtitle {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 500;
}

.settings-section,
.info-section {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.settings-section h2,
.info-section h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
}

.setting-item {
  margin-bottom: 20px;
}

.setting-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: #333;
}

.setting-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #667eea;
}

.setting-item select {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  background: #f9f9f9;
  cursor: pointer;
  transition: border-color 0.2s;
}

.setting-item select:hover {
  border-color: #667eea;
}

.setting-item select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.help-text {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  line-height: 1.4;
}

.help-text code {
  background: #f1f1f6;
  border: 1px solid #e1e1e8;
  border-radius: 4px;
  padding: 1px 5px;
  font-family: Menlo, Consolas, monospace;
  font-size: 11px;
  color: #333;
}

.install-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff !important;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
  letter-spacing: 0.01em;
}

.install-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

.install-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.info-section p {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 12px;
}

.learn-more a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.learn-more a:hover {
  color: #764ba2;
  text-decoration: underline;
}

footer {
  padding: 15px 20px;
  background: #f9f9f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.secondary-btn {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.secondary-btn:hover {
  background: #e0e0e0;
  border-color: #bbb;
}

.secondary-btn:active {
  transform: scale(0.98);
}

.version {
  font-size: 11px;
  color: #999;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
