* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode body {
  background: #111827;
}

.app {
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease;
}

.dark-mode .app {
  background: #111827;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.app-footer {
  margin-top: 16px;
  font-size: 1.1rem;
  color: #9ca3af;
  transition: color 0.3s ease;
}

.dark-mode .app-footer {
  color: #6b7280;
}

.example {
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1.1rem;
  color: #6b7280;
  transition: color 0.3s ease;
}

.dark-mode .example {
  color: #9ca3af;
}

/* Dark mode toggle button */
.dark-mode-toggle {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  width: 40px;
  height: 40px;
}

.dark-mode-toggle:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.dark-mode .dark-mode-toggle {
  background: #1f2937;
  border-color: #374151;
}

.dark-mode .dark-mode-toggle:hover {
  background: #374151;
  border-color: #4b5563;
}

.dark-mode-toggle svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
  transition: color 0.2s;
}

.dark-mode .dark-mode-toggle svg {
  color: #d1d5db;
}

.dark-mode-toggle .moon-icon {
  display: none;
}

.dark-mode-toggle .dark-mode-icon {
  display: block;
}

.dark-mode .dark-mode-toggle .dark-mode-icon {
  display: none;
}

.dark-mode .dark-mode-toggle .moon-icon {
  display: block;
}

