/* Rich Text Editor Styles */
.rte-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 0.5rem 0.5rem 0 0;
  flex-wrap: wrap;
}

.rte-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 0.375rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.rte-btn:hover {
  background: #334155;
  border-color: #64748b;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rte-btn:active {
  transform: translateY(0);
}

.rte-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.rte-editable {
  border-radius: 0 0 0.5rem 0.5rem;
  border-top: none !important;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  resize: vertical;
}

/* Formatted text preview */
.formatted-text-preview {
  padding: 1rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  min-height: 100px;
  color: #fff;
  line-height: 1.6;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.formatted-text-preview:empty::before {
  content: 'Preview da mensagem formatada aparecerá aqui...';
  color: #64748b;
  font-style: italic;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .rte-toolbar {
    padding: 0.5rem;
    gap: 0.375rem;
  }
  
  .rte-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
}