.ql-tooltip {
  z-index: 10000 !important;
}
.ql-container {
  font-family: inherit;
  font-size: 1rem;
}
.ql-editor {
  min-height: 100px;
}

/* Ensure rendered content doesn't have the editor's min-height and padding when not in editor */
.layer-desc.ql-editor,
.blog-detail-content.ql-editor {
  min-height: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Quill Alignment Classes */
.ql-align-center {
  text-align: center;
}
.ql-align-right {
  text-align: right;
}
.ql-align-justify {
  text-align: justify;
}

/* Quill Size Classes */
.ql-size-small {
  font-size: 0.75em;
}
.ql-size-large {
  font-size: 1.5em;
}
.ql-size-huge {
  font-size: 2.5em;
}

/* Quill Font Classes - assuming standard fonts */
.ql-font-serif {
  font-family: Georgia, Times New Roman, serif;
}
.ql-font-monospace {
  font-family: Monaco, Courier New, monospace;
}

/* Quill Video Wrapper */
.ql-video {
  display: block;
  max-width: 100%;
}
.ql-editor .ql-video,
.ql-editor iframe.ql-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
  margin: 1rem 0;
}

/* Fix for mobile responsiveness of images from Quill */
.ql-editor img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}
.ql-editor .ql-align-center img {
  margin-left: auto;
  margin-right: auto;
}
.ql-editor .ql-align-right img {
  margin-left: auto;
}

/* Code block styling */
.ql-editor pre.ql-syntax {
  background-color: #23241f;
  color: #f8f8f2;
  overflow: visible;
  padding: 1rem;
  border-radius: 8px;
  font-family: Monaco, Courier New, monospace;
}

/* Fix for nested lists */
.ql-editor li > ul,
.ql-editor li > ol {
  margin-bottom: 0;
  margin-top: 0.5rem;
}

/* Spacing for elements in ql-editor */
.ql-editor p,
.ql-editor ul,
.ql-editor ol,
.ql-editor blockquote {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Mobile specific adjustments for rendered content */
@media (max-width: 768px) {
  .ql-editor {
    font-size: 0.95rem;
  }
  .ql-size-large {
    font-size: 1.25em;
  }
  .ql-size-huge {
    font-size: 1.75em;
  }
}

.ql-editor blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  font-style: italic;
  color: var(--muted);
}

