body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f9f9f9;
}

.editor-container {
  position: relative; /* Important for positioning of toolbar and content */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.toolbar {
  display: flex;
  position: absolute; /* Fix toolbar position */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 10px;
  background: #f4f4f4;
  border-bottom: 1px solid #ddd;
  box-sizing: border-box;
}

.toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 5px;
  border: none;
  background: #fff;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.toolbar button:hover {
  background-color: #007BFF;
  color: #fff;
}

.toolbar button i {
  font-size: 18px;
}

.editor-content {
  padding: 10px;
  height: calc(100% - 50px); /* Adjust for toolbar height */
  overflow-y: auto; /* Allow content to scroll */
  background: #fff;
  border: none;
  outline: none;
  margin-top: 60px; /* Space for fixed toolbar */
}

textarea {
  position: absolute;
  top: 50px; /* Space for toolbar */
  left: 0;
  width: 100%;
  height: calc(100% - 50px); /* Subtract toolbar height */
  border: none;
  font-family: monospace;
  resize: none;
  background: #000;
  color: #fff;
  overflow: auto;
   margin-top: 20px; /* Space for fixed toolbar */
   
}

textarea:focus {
  outline: none;
}

img.resizable {
  display: inline-block;
  max-width: 100%;
  height: auto;
  cursor: nwse-resize;
  border: 1px dashed #007BFF;
}

.submit-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.submit-btn:hover {
  background: #0056b3;
}
