.controls {
  margin-bottom: 20px;
}

.controls textarea {
  width: 100%;
  height: 200px;
  padding: 10px;
  font-size: 14px;
  font-family: monospace;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.controls button {
  padding: 10px 20px;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.controls button:hover {
  background-color: #1565c0;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 1rem;
  background-color: #f7f7f7;
}

textarea {
  width: 300px;
  height: 120px;
  font-family: monospace;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  padding: 10px 20px;
  background-color: #3f51b5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #303f9f;
}

mat-tab-group {
  margin: 1rem;
}

.tab-content {
  padding: 1rem;
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 10px;
  min-height: 400px;
}



.active-tab {
  border-bottom: 2px solid #007bff;
  color: #007bff;
}

.tab-button {
  padding: 8px 16px;
  margin-right: 8px;
  background: #f1f1f1;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: black; /* 👈 Text color black */
  font-weight: bold;
}

.tab-button.active {
  border-bottom: 2px solid #000;
  background: #e0e0e0;
  color: black; /* 👈 Ensure active tab also stays black */
}


.editor-container {
  position: relative; /* 🔑 Important to contain absolute button */
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
  padding: 20px;
  background-color: #ffffff;
}

