body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 20px;
  background: #f4f4f4;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
}

textarea, input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.button-group {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

button {
  padding: 10px 15px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #007bff;
  color: white;
  transition: background 0.2s;
}

button:hover {
  background: #0056b3;
}

.output-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

#metaOutput {
  font-size: 16px;
  line-height: 1.5;
  margin: 10px 0;
  padding: 10px;
  background: #fafafa;
  border-radius: 5px;
  border: 1px solid #ddd;
  min-height: 50px;
}

.hidden {
  display: none;
}

#copyMsg {
  font-size: 14px;
  color: green;
}

.keyword-status {
  margin-top: 10px;
  font-weight: bold;
  color: red;
}

.keyword-status.found {
  color: green;
}

.highlight {
  background-color: yellow;
  font-weight: bold;
}

/* Dark Mode */
body.dark {
  background: #121212;
  color: #eee;
}

body.dark .container {
  background: #1e1e1e;
}

body.dark textarea,
body.dark input[type="text"],
body.dark #metaOutput {
  background: #2c2c2c;
  color: #eee;
  border-color: #444;
}

body.dark button {
  background: #444;
  color: #fff;
}

body.dark button:hover {
  background: #666;
}
body.dark {
  background-color: #121212;
  color: #f0f0f0;
}

body.dark textarea,
body.dark input,
body.dark button {
  background-color: #1e1e1e;
  color: #f0f0f0;
  border-color: #444;
}

body.dark .container {
  background-color: #1a1a1a;
}

body.dark .output-tools,
body.dark #metaOutputContainer {
  background-color: #1e1e1e;
}
