/* Email Editor Styles */
.email-editor-active {
  min-height: 300px;
  padding: 1rem;
  border: 2px solid #3B82F6;
  border-radius: 0.375rem;
  outline: none;
  transition: border-color 0.2s;
}

.email-editor-active:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.email-editor-active p {
  margin-bottom: 1rem;
}

.email-editor-active h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.email-editor-active h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.email-editor-active h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.email-editor-active ul,
.email-editor-active ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.email-editor-active ul {
  list-style-type: disc;
}

.email-editor-active ol {
  list-style-type: decimal;
}

.email-editor-active li {
  margin-bottom: 0.25rem;
}

.email-editor-active a {
  color: #3B82F6;
  text-decoration: underline;
}

.email-editor-active strong,
.email-editor-active b {
  font-weight: bold;
}

.email-editor-active em,
.email-editor-active i {
  font-style: italic;
}

.email-editor-active u {
  text-decoration: underline;
}

/* Preview Styles */
.email-preview {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 0.375rem;
  padding: 1.5rem;
  margin-top: 1rem;
}

.email-preview p {
  margin-bottom: 1rem;
}

.email-preview h1,
.email-preview h2,
.email-preview h3 {
  margin-bottom: 0.75rem;
}

/* Email Preview iFrame */
.email-iframe-container {
  width: 100%;
  background: white;
  border-radius: 0.375rem;
  overflow: hidden;
}

.email-preview-iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: none;
  background: white;
}

/* Lexical Editor Styles */
[data-lexical-editor-target="editor"] {
  outline: none;
  font-size: 1rem;
  line-height: 1.5;
}

[data-lexical-editor-target="editor"]:focus {
  outline: none;
}

/* Lexical text formatting */
.lexical-text-bold {
  font-weight: bold;
}

.lexical-text-italic {
  font-style: italic;
}

.lexical-text-underline {
  text-decoration: underline;
}

.lexical-text-strikethrough {
  text-decoration: line-through;
}

.lexical-text-code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: monospace;
}

/* Lexical paragraphs */
.lexical-paragraph {
  margin: 0 0 1rem 0;
  min-height: 1.5rem;
}

.lexical-paragraph:last-child {
  margin-bottom: 0;
}

/* Lexical lists */
.lexical-list-ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0 0 1rem 0;
}

.lexical-list-ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin: 0 0 1rem 0;
}

.lexical-list-item {
  margin: 0.25rem 0;
}

/* Lexical links */
.lexical-link {
  color: #3B82F6;
  text-decoration: underline;
  cursor: pointer;
}

.lexical-link:hover {
  color: #2563EB;
}

/* Editor container focus state */
[data-lexical-editor-target="editor"]:focus-within {
  border-color: #3B82F6;
}

