/* Base Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, color 0.3s;
}

header {
  text-align: center;
}

#dark-mode-toggle {
  margin-top: 10px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #007bff;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

#dark-mode-toggle:hover {
  background: #0056b3;
}

.editor-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.editor {
  flex: 1;
  background: #eee;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}

.editor h2 {
  margin: 0;
  padding: 10px;
  background: #ddd;
  border-bottom: 1px solid #ccc;
}

textarea {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 0 0 8px 8px;
  padding: 10px;
  box-sizing: border-box;
  resize: none;
  transition: background 0.3s, color 0.3s;
}

button {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #28a745;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.3s;
}

button:hover {
  background: #218838;
}

iframe {
  width: 100%;
  height: 300px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* Dark Mode Styles */
body.dark-mode {
  background: #181818;
  color: #e0e0e0;
}

.container.dark-mode {
  background: #282c34;
  color: #e0e0e0;
}

.editor.dark-mode {
  background: #333;
}

.editor h2 {
  background: #444;
  color: #e0e0e0;
}

textarea {
  background: #2b2b2b;
  color: #e0e0e0;
}

button {
  background: #61dafb;
}

button:hover {
  background: #21a1f1;
}

iframe {
  border: 1px solid #444;
}
