/* Article Editor Modal - larger size */
.modal.article-editor-modal {
  max-width: 1200px;
  width: 95%;
  max-height: 95vh;
}

/* Knowledge Base Modal - larger responsive size */
.modal.knowledge-base-modal {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
}

.article-editor-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-height: 500px;
}

.article-editor-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-editor-right {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  background: #fafafa;
  overflow-y: auto;
  max-height: 600px;
}

.article-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.article-preview-content {
  font-size: 15px;
  line-height: 1.7;
  color: #1a1a2e;
}

.article-preview-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a2e;
}

.article-preview-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 20px 0 12px;
}

.article-preview-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 16px 0 10px;
}

.article-preview-content p {
  margin-bottom: 12px;
}

.article-preview-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}

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

.article-preview-content blockquote {
  border-left: 4px solid #0570EB;
  padding-left: 16px;
  margin: 16px 0;
  font-style: italic;
  color: #4b5563;
}

.article-preview-content a {
  color: #0570EB;
  text-decoration: underline;
}

/* Quill editor styling */
.quill-wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.quill-wrapper .ql-toolbar {
  border: none;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.quill-wrapper .ql-container {
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}

.quill-wrapper .ql-editor {
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
}

.quill-wrapper .ql-editor.ql-blank::before {
  font-style: normal;
  color: #9ca3af;
}

/* Source view toggle */
.editor-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.editor-tab {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.editor-tab:hover {
  background: #f9fafb;
}

.editor-tab.active {
  background: #0570EB;
  color: white;
  border-color: #0570EB;
}

.html-source-editor {
  width: 100%;
  min-height: 350px;
  padding: 12px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  resize: vertical;
  background: #1a1a2e;
  color: #e5e7eb;
}

/* Analytics Charts */
.chart-container {
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 20px 0;
}

.chart-bar {
  flex: 1;
  background: #e5e7eb;
  border-radius: 4px 4px 0 0;
  min-height: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.chart-bar:hover {
  opacity: 0.8;
}

.chart-bar-label {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
}

.chart-bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #1a1a2e;
}

.funnel-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.funnel-step {
  display: flex;
  align-items: center;
  gap: 16px;
}

.funnel-bar-container {
  flex: 1;
  height: 40px;
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
}

.funnel-bar {
  height: 100%;
  background: #d1d5db;
  display: flex;
  align-items: center;
  padding-left: 12px;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  min-width: 60px;
}

.funnel-label {
  width: 140px;
  font-size: 13px;
  color: #6b7280;
}

.funnel-value {
  width: 80px;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}
