/* ===== Body ===== */
body {
  font-family: 'Hind Siliguri', sans-serif;
  background-color: #333;
  color: #fff;
  padding: 20px;
}

/* ===== Heading ===== */
h1 {
  text-align: center;
  margin-top: 10px;
}

/* ===== Editor Wrapper ===== */
.editor-wrapper {
  display: flex;
  width: 100%;
  max-width: 900px;
  height: 400px;
  margin: 20px auto;
  border: 2px solid #fff;
  border-radius: 8px;
  background-color: #343a40;
  overflow: hidden;
}

/* ===== Line Numbers ===== */
#lineNumbers {
  width: 40px;
  background-color: #2c2f33;
  color: #aaa;
  font-family: monospace;
  font-size: 14px;
  padding: 10px 5px;
  line-height: 1.6;
  text-align: right;
  user-select: none;
  overflow: hidden;
  white-space: pre;
}

/* ===== Code Container ===== */
.code-container {
  position: relative;
  width: calc(100% - 40px);
  height: 100%;
  overflow: auto;
}

/* ===== Highlight Layer ===== */
#highlight {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px;
  font-family: 'Hind Siliguri', monospace;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre;
  pointer-events: none;
  color: #fff;
}

/* ===== Textarea ===== */
#code {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  color: transparent;
  caret-color: #fff;
  border: none;
  resize: none;
  outline: none;
  padding: 10px;
  font-family: 'Hind Siliguri', monospace;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre;
  spellcheck: false;
  -webkit-user-modify: read-write-plaintext-only;
}

#code::placeholder {
  color: #aaa;
  opacity: 1;
}

/* ===== Keyword Highlight ===== */
.keyword {
  color: #ff9800;
  font-weight: 600;
}

/* ===== Output Box ===== */
#output {
  background-color: #444;
  width: 100%;
  max-width: 900px;
  min-height: 150px;
  padding: 15px;
  margin: 10px auto 5px auto;
  white-space: pre-wrap;
  overflow-x: auto;
  border: 2px solid #fff;
  border-radius: 8px;
}

/* ===== Example Button Wrapper (NEW) ===== */
.example-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 20px auto;
  text-align: left;
}

/* ===== Buttons ===== */
button {
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  margin: 5px 5px 5px 0;
  transition: all 0.3s ease;
}

.btn-info {
  background-color: green !important;
  border: none !important;
  color: #fff;
}

.btn-info:hover {
  background-color: #1fa34a !important;
}

.btn-warning {
  background-color: #ff9800 !important;
  border: none !important;
  color: #fff;
}

.btn-danger {
  background-color: #f44336 !important;
  border: none !important;
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .editor-wrapper {
    height: 220px;
  }

  #highlight,
  #code {
    font-size: 14px;
  }

  #lineNumbers {
    font-size: 12px;
  }

  button {
    padding: 8px 15px;
    font-size: 14px;
  }

  #output {
    padding: 10px;
  }
}
