.editorContainer {
  width: 100%;
  margin-bottom: 20px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.toolbarGroup {
  display: flex;
  gap: 5px;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.toolbarGroup:last-child {
  border-right: none;
  margin-left: auto;
}

.toolbarButton {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.toolbarButton:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.toolbarButton.active {
  background: rgba(200, 230, 201, 0.3);
  border-color: #c8e6c9;
}

.toolbarButton strong {
  font-weight: 700;
}

.toolbarButton em {
  font-style: italic;
}

.editorWrapper {
  position: relative;
}

.textarea {
  width: 100%;
  min-height: 400px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

.textarea:focus {
  border-color: #c8e6c9;
  background: rgba(255, 255, 255, 0.08);
}

.textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(26, 58, 46, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.suggestion {
  padding: 10px 15px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion:last-child {
  border-bottom: none;
}

.suggestion:hover,
.suggestion.active {
  background: rgba(200, 230, 201, 0.2);
  color: #ffffff;
}

.tutorial {
  background: rgba(26, 58, 46, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  max-height: 500px;
  overflow-y: auto;
}

.tutorial h3 {
  color: #ffffff;
  margin: 0 0 15px 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.tutorialContent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 15px;
}

.tutorialSection {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tutorialSection h4 {
  color: #c8e6c9;
  margin: 0 0 10px 0;
  font-size: 1rem;
  font-weight: 600;
}

.tutorialSection code {
  display: block;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 4px;
  color: #c8e6c9;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-break: break-all;
}

.tutorialSection code:last-child {
  margin-bottom: 0;
}

.closeTutorial {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.closeTutorial:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .toolbar {
    padding: 8px;
  }

  .toolbarButton {
    padding: 5px 8px;
    font-size: 0.85rem;
  }

  .textarea {
    min-height: 300px;
    font-size: 0.9rem;
    padding: 12px;
  }

  .tutorialContent {
    grid-template-columns: 1fr;
  }
}

