/* Template Editor Styles */
.template-editor-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: white;
  padding: 1rem;
}

.template-editor-fullscreen .editor-container {
  height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

.template-editor-fullscreen .editor-textarea {
  flex: 1;
  resize: none;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 1rem;
}

.template-editor-fullscreen .editor-toolbar {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-bottom: none;
  border-radius: 0.375rem 0.375rem 0 0;
  padding: 0.5rem;
}

.template-editor-fullscreen .preview-container {
  height: calc(100vh - 2rem);
  overflow-y: auto;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 1rem;
  background: white;
}

/* Regular editor styles */
.editor-textarea {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  tab-size: 2;
}

.editor-toolbar button {
  transition: all 0.2s ease;
}

.editor-toolbar button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Syntax highlighting simulation */
.editor-textarea {
  background: #fafafa;
  color: #333;
}

/* Preview styles */
.template-preview {
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background: white;
  min-height: 200px;
  padding: 1rem;
}

.template-preview h1, .template-preview h2, .template-preview h3 {
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.template-preview p {
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.template-preview code {
  background: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .template-editor-fullscreen .editor-container {
    height: calc(100vh - 1rem);
  }
  
  .template-editor-fullscreen .preview-container {
    height: calc(100vh - 1rem);
  }
  
  .editor-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .editor-toolbar button {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}
