/* General Styles */
body {
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #1e1e1e;
  color: #d4d4d4;
}

header {
  background-color: #252526;
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #333;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  color: #569cd6;
}

header p {
  margin: 0.5rem 0 0;
}

main {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Input Section */
#input-section {
  margin-bottom: 2rem;
}

textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

textarea:focus {
  border-color: #007acc;
  outline: none;
}

textarea::placeholder {
  color: #6a6a6a;
}

button {
  display: inline-block;
  background-color: #007acc;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color 0.3s, transform 0.2s ease-in-out;
}

button:hover {
  background-color: #005f9e;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* Results Section */
#results-section {
  margin-top: 2rem;
}

#analysis-results {
  background-color: #252526;
  padding: 1rem;
  border-radius: 5px;
  border: 1px solid #333;
  color: #9cdcfe;
  font-family: 'Courier New', Courier, monospace;
  overflow-x: auto;
  transition: background-color 0.3s;
}

#analysis-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#analysis-results li {
  margin-bottom: 0.5rem;
  color: #ce9178;
}

#analysis-results strong {
  color: #dcdcaa;
}

.error {
  color: #f44747;
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #181818;
  color: #6a6a6a;
  border-top: 1px solid #333;
  margin-top: 2rem;
}

/* Accessibility Enhancements */
button:focus {
  outline: 2px solid #007acc;
  outline-offset: 2px;
}

input[type='range'][focus-visible] {
  outline: 2px solid #007acc;
  outline-offset: 2px;
}

/* Highlight Syntax (Example) */
.code-keyword {
  color: #569cd6;
  font-weight: bold;
}

.code-string {
  color: #ce9178;
}

.code-comment {
  color: #6a9955;
  font-style: italic;
}

.code-number {
  color: #b5cea8;
}

.code-function {
  color: #dcdcaa;
}