* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: monospace;
  background: #1e1e1e;
  color: #d4d4d4;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

h1 {
  font-size: 24px;
  color: #ffffff;
}

.subtitle {
  color: #888;
  font-size: 14px;
}

/* Editor */
.editor-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

textarea {
  width: 100%;
  height: 200px;
  background: #2d2d2d;
  color: #d4d4d4;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  padding: 16px;
  font-family: monospace;
  font-size: 15px;
  resize: vertical;
  outline: none;
  line-height: 1.6;
}

textarea:focus {
  border-color: #555;
}

/* Status indicator */
.status {
  font-size: 12px;
  padding: 4px 0;
  color: #888;
  transition: color 0.2s;
}

.status.validating {
  color: #d4a017;
}
.status.done {
  color: #888;
}

/* Result box */
.result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s;
}

.result.hidden {
  display: none;
}

.result.valid {
  background: #1a3a1a;
  border: 1px solid #2d6a2d;
  color: #6fcf6f;
}

.result.invalid {
  background: #3a1a1a;
  border: 1px solid #6a2d2d;
  color: #cf6f6f;
}

#result-icon {
  font-size: 18px;
}

#result-line {
  margin-left: auto;
  font-size: 12px;
  color: #888;
}

/* Grammar */
.grammar {
  background: #2d2d2d;
  border-radius: 6px;
  padding: 16px;
}

.grammar h2 {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.grammar pre {
  font-size: 14px;
  line-height: 1.8;
  color: #a0a0a0;
}
