/* Simple Text Editor Styles */
.simple-text-editor {
  border: 1px solid var(--border-plight, #FCE3CF);
  border-radius: 8px;
  background: var(--color-white, #ffffff);
  overflow: hidden;
}

.simple-text-display {
  position: relative;
}

.simple-text-display:hover .edit-btn {
  opacity: 1;
}

.text-content {
  padding: 12px 16px;
  line-height: 1.6;
  font-size: var(--font-regular, 16px);
  color: var(--text-color, #564B43);
  border: 1px solid transparent;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.text-content:hover {
  border-color: var(--border-plight, #FCE3CF);
  background-color: rgba(252, 227, 207, 0.1);
}

.edit-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-primary, #EF7310);
  color: white;
  border: none;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  font-size: 12px;
}

.edit-btn:hover {
  background: rgba(239, 115, 16, 0.8);
  transform: scale(1.05);
}

.toolbar {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--light-gray, #F1F5F9);
  border-bottom: 1px solid var(--border-color, #E6E6E6);
  gap: 4px;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color, #564B43);
  transition: all 0.2s ease;
}

.toolbar-btn:hover {
  background: var(--color-white, #ffffff);
  color: var(--color-primary, #EF7310);
}

.toolbar-btn:active {
  background: var(--border-plight, #FCE3CF);
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color, #E6E6E6);
  margin: 0 4px;
}

.editor-content {
  padding: 16px;
  outline: none;
  font-size: var(--font-regular, 16px);
  line-height: 1.6;
  color: var(--text-color, #564B43);
  font-family: var(--manrope-font, "Manrope"), sans-serif;
}

.editor-content:empty:before {
  content: attr(data-placeholder);
  color: #999;
  opacity: 0.7;
}

.editor-content:focus {
  outline: none;
}

.editor-content p {
  margin: 0 0 12px 0;
}

.editor-content p:last-child {
  margin-bottom: 0;
}

.editor-content ul, .editor-content ol {
  margin: 0 0 12px 0;
  padding-left: 24px;
}

.editor-content li {
  margin-bottom: 4px;
}

.editor-content strong {
  font-weight: 700;
}

.editor-content em {
  font-style: italic;
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--light-gray, #F1F5F9);
  border-top: 1px solid var(--border-color, #E6E6E6);
}

.save-btn {
  background: var(--typo-primary, #0E9493);
  color: var(--color-white, #ffffff);
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: var(--font-small, 14px);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.save-btn:hover {
  background: rgba(14, 148, 147, 0.8);
}

.cancel-btn {
  background: transparent;
  color: var(--text-color, #564B43);
  border: 1px solid var(--border-color, #E6E6E6);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: var(--font-small, 14px);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn:hover {
  background: var(--color-white, #ffffff);
  border-color: var(--color-primary, #EF7310);
  color: var(--color-primary, #EF7310);
}

.editor-hint {
  color: #999;
  font-size: 12px;
  margin-left: auto;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .toolbar {
    padding: 6px 8px;
    gap: 2px;
  }
  
  .toolbar-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  
  .editor-content {
    padding: 12px;
    font-size: var(--font-small, 14px);
  }
  
  .editor-actions {
    padding: 8px 12px;
    flex-wrap: wrap;
  }
  
  .editor-hint {
    width: 100%;
    margin-top: 4px;
    margin-left: 0;
    text-align: center;
  }
}