/*
 * CKEditor 5 (v41.1.0) content styles.
 * Generated on Thu, 29 Feb 2024 11:36:46 GMT.
 * Enhanced for SamparkPro - Better typography and readability
 * For more information, check out https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/content-styles.html
 */

:root {
  --ck-color-image-caption-background: hsl(0, 0%, 97%);
  --ck-color-image-caption-text: hsl(0, 0%, 20%);
  --ck-color-mention-background: hsla(341, 100%, 30%, 0.1);
  --ck-color-mention-text: hsl(341, 100%, 30%);
  --ck-color-selector-caption-background: hsl(0, 0%, 97%);
  --ck-color-selector-caption-text: hsl(0, 0%, 20%);
  --ck-highlight-marker-blue: hsl(201, 97%, 72%);
  --ck-highlight-marker-green: hsl(120, 93%, 68%);
  --ck-highlight-marker-pink: hsl(345, 96%, 73%);
  --ck-highlight-marker-yellow: hsl(60, 97%, 73%);
  --ck-highlight-pen-green: hsl(112, 100%, 27%);
  --ck-highlight-pen-red: hsl(0, 85%, 49%);
  --ck-image-style-spacing: 1.5em;
  --ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);
  --ck-todo-list-checkmark-size: 16px;
}

/* Dark mode variables */
[data-ct-theme="dark"] {
  --ck-color-image-caption-background: hsl(0, 0%, 15%);
  --ck-color-image-caption-text: hsl(0, 0%, 85%);
  --ck-color-selector-caption-background: hsl(0, 0%, 15%);
  --ck-color-selector-caption-text: hsl(0, 0%, 85%);
}

/* ========================================
   Enhanced Typography & Content Styles
   ======================================== */

.ck-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--bs-body-color, #212529);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Headings */
.ck-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--ct-heading-color, #1a1a1a);
}

.ck-content h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--ct-heading-color, #1a1a1a);
}

.ck-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.75rem;
  margin-bottom: 0.875rem;
  color: var(--ct-heading-color, #1a1a1a);
}

.ck-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--ct-heading-color, #1a1a1a);
}

.ck-content h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.25rem;
  margin-bottom: 0.625rem;
  color: var(--ct-heading-color, #1a1a1a);
}

.ck-content h6 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--ct-heading-color, #1a1a1a);
}

/* First heading no top margin */
.ck-content h1:first-child,
.ck-content h2:first-child,
.ck-content h3:first-child,
.ck-content h4:first-child,
.ck-content h5:first-child,
.ck-content h6:first-child {
  margin-top: 0;
}

/* Paragraphs */
.ck-content p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1rem;
}

.ck-content p:last-child {
  margin-bottom: 0;
}

/* Links */
.ck-content a {
  color: var(--bs-primary, #0d6efd);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.ck-content a:hover {
  color: var(--bs-primary-dark, #0a58ca);
  text-decoration-thickness: 2px;
}

/* Strong and emphasis */
.ck-content strong,
.ck-content b {
  font-weight: 700;
  color: var(--ct-heading-color, #1a1a1a);
}

.ck-content em,
.ck-content i {
  font-style: italic;
}

/* Lists */
.ck-content ul,
.ck-content ol {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

.ck-content ul ul,
.ck-content ul ol,
.ck-content ol ul,
.ck-content ol ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.ck-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.ck-content li:last-child {
  margin-bottom: 0;
}

.ck-content li>p {
  margin-bottom: 0.5rem;
}

/* Horizontal Rule */
.ck-content hr {
  margin: 2rem 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bs-border-color, #dee2e6) 20%, var(--bs-border-color, #dee2e6) 80%, transparent);
  border: 0;
}

/* Images - Enhanced */
.ck-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ck-content img:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* @ckeditor/ckeditor5-table/theme/tablecolumnresize.css */
.ck-content .table .ck-table-resized {
  table-layout: fixed;
}

/* @ckeditor/ckeditor5-table/theme/tablecolumnresize.css */
.ck-content .table table {
  overflow: hidden;
}

/* @ckeditor/ckeditor5-table/theme/tablecolumnresize.css */
.ck-content .table td,
.ck-content .table th {
  overflow-wrap: break-word;
  position: relative;
}

/* @ckeditor/ckeditor5-table/theme/table.css */
.ck-content .table {
  margin: 0.9em auto;
  display: table;
}

/* @ckeditor/ckeditor5-table/theme/table.css */
.ck-content .table table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  height: 100%;
  border: 1px double hsl(0, 0%, 70%);
}

/* @ckeditor/ckeditor5-table/theme/table.css */
.ck-content .table table td,
.ck-content .table table th {
  min-width: 2em;
  padding: .4em;
  border: 1px solid hsl(0, 0%, 75%);
}

/* @ckeditor/ckeditor5-table/theme/table.css */
.ck-content .table table th {
  font-weight: bold;
  background: hsla(0, 0%, 0%, 5%);
}

/* @ckeditor/ckeditor5-table/theme/table.css */
.ck-content[dir="rtl"] .table th {
  text-align: right;
}

/* @ckeditor/ckeditor5-table/theme/table.css */
.ck-content[dir="ltr"] .table th {
  text-align: left;
}

/* @ckeditor/ckeditor5-table/theme/tablecaption.css */
.ck-content .table>figcaption {
  display: table-caption;
  caption-side: top;
  word-break: break-word;
  text-align: center;
  color: var(--ck-color-selector-caption-text);
  background-color: var(--ck-color-selector-caption-background);
  padding: .6em;
  font-size: .75em;
  outline-offset: -1px;
}

/* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */
.ck-content .page-break {
  position: relative;
  clear: both;
  padding: 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */
.ck-content .page-break::after {
  content: '';
  position: absolute;
  border-bottom: 2px dashed hsl(0, 0%, 77%);
  width: 100%;
}

/* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */
.ck-content .page-break__label {
  position: relative;
  z-index: 1;
  padding: .3em .6em;
  display: block;
  text-transform: uppercase;
  border: 1px solid hsl(0, 0%, 77%);
  border-radius: 2px;
  font-family: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;
  font-size: 0.75em;
  font-weight: bold;
  color: hsl(0, 0%, 20%);
  background: hsl(0, 0%, 100%);
  box-shadow: 2px 2px 1px hsla(0, 0%, 0%, 0.15);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-content .todo-list {
  list-style: none;
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-content .todo-list li {
  position: relative;
  margin-bottom: 5px;
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-content .todo-list li .todo-list {
  margin-top: 5px;
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-content .todo-list .todo-list__label>input {
  -webkit-appearance: none;
  display: inline-block;
  position: relative;
  width: var(--ck-todo-list-checkmark-size);
  height: var(--ck-todo-list-checkmark-size);
  vertical-align: middle;
  border: 0;
  left: -25px;
  margin-right: -15px;
  right: 0;
  margin-left: 0;
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-content[dir=rtl] .todo-list .todo-list__label>input {
  left: 0;
  margin-right: 0;
  right: -25px;
  margin-left: -15px;
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-content .todo-list .todo-list__label>input::before {
  display: block;
  position: absolute;
  box-sizing: border-box;
  content: '';
  width: 100%;
  height: 100%;
  border: 1px solid hsl(0, 0%, 20%);
  border-radius: 2px;
  transition: 250ms ease-in-out box-shadow;
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-content .todo-list .todo-list__label>input::after {
  display: block;
  position: absolute;
  box-sizing: content-box;
  pointer-events: none;
  content: '';
  left: calc(var(--ck-todo-list-checkmark-size) / 3);
  top: calc(var(--ck-todo-list-checkmark-size) / 5.3);
  width: calc(var(--ck-todo-list-checkmark-size) / 5.3);
  height: calc(var(--ck-todo-list-checkmark-size) / 2.6);
  border-style: solid;
  border-color: transparent;
  border-width: 0 calc(var(--ck-todo-list-checkmark-size) / 8) calc(var(--ck-todo-list-checkmark-size) / 8) 0;
  transform: rotate(45deg);
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-content .todo-list .todo-list__label>input[checked]::before {
  background: hsl(126, 64%, 41%);
  border-color: hsl(126, 64%, 41%);
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-content .todo-list .todo-list__label>input[checked]::after {
  border-color: hsl(0, 0%, 100%);
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-content .todo-list .todo-list__label .todo-list__label__description {
  vertical-align: middle;
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox] {
  position: absolute;
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-editor__editable.ck-content .todo-list .todo-list__label>input,
.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input {
  cursor: pointer;
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover::before,
.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover::before {
  box-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input {
  -webkit-appearance: none;
  display: inline-block;
  position: relative;
  width: var(--ck-todo-list-checkmark-size);
  height: var(--ck-todo-list-checkmark-size);
  vertical-align: middle;
  border: 0;
  left: -25px;
  margin-right: -15px;
  right: 0;
  margin-left: 0;
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input {
  left: 0;
  margin-right: 0;
  right: -25px;
  margin-left: -15px;
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input::before {
  display: block;
  position: absolute;
  box-sizing: border-box;
  content: '';
  width: 100%;
  height: 100%;
  border: 1px solid hsl(0, 0%, 20%);
  border-radius: 2px;
  transition: 250ms ease-in-out box-shadow;
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input::after {
  display: block;
  position: absolute;
  box-sizing: content-box;
  pointer-events: none;
  content: '';
  left: calc(var(--ck-todo-list-checkmark-size) / 3);
  top: calc(var(--ck-todo-list-checkmark-size) / 5.3);
  width: calc(var(--ck-todo-list-checkmark-size) / 5.3);
  height: calc(var(--ck-todo-list-checkmark-size) / 2.6);
  border-style: solid;
  border-color: transparent;
  border-width: 0 calc(var(--ck-todo-list-checkmark-size) / 8) calc(var(--ck-todo-list-checkmark-size) / 8) 0;
  transform: rotate(45deg);
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]::before {
  background: hsl(126, 64%, 41%);
  border-color: hsl(126, 64%, 41%);
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]::after {
  border-color: hsl(0, 0%, 100%);
}

/* @ckeditor/ckeditor5-list/theme/todolist.css */
.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox] {
  position: absolute;
}

/* @ckeditor/ckeditor5-media-embed/theme/mediaembed.css */
.ck-content .media {
  clear: both;
  margin: 0.9em 0;
  display: block;
  min-width: 15em;
}

/* @ckeditor/ckeditor5-image/theme/imageresize.css */
.ck-content img.image_resized {
  height: auto;
}

/* @ckeditor/ckeditor5-image/theme/imageresize.css */
.ck-content .image.image_resized {
  max-width: 100%;
  display: block;
  box-sizing: border-box;
}

/* @ckeditor/ckeditor5-image/theme/imageresize.css */
.ck-content .image.image_resized img {
  width: 100%;
}

/* @ckeditor/ckeditor5-image/theme/imageresize.css */
.ck-content .image.image_resized>figcaption {
  display: block;
}

/* @ckeditor/ckeditor5-image/theme/image.css */
.ck-content .image {
  display: table;
  clear: both;
  text-align: center;
  margin: 0.9em auto;
  min-width: 50px;
}

/* @ckeditor/ckeditor5-image/theme/image.css */
.ck-content .image img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  min-width: 100%;
  height: auto;
}

/* @ckeditor/ckeditor5-image/theme/image.css */
.ck-content .image-inline {
  /*
   * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).;
   * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.
   * This strange behavior does not happen with inline-flex.
   */
  display: inline-flex;
  max-width: 100%;
  align-items: flex-start;
}

/* @ckeditor/ckeditor5-image/theme/image.css */
.ck-content .image-inline picture {
  display: flex;
}

/* @ckeditor/ckeditor5-image/theme/image.css */
.ck-content .image-inline picture,
.ck-content .image-inline img {
  flex-grow: 1;
  flex-shrink: 1;
  max-width: 100%;
}

/* @ckeditor/ckeditor5-image/theme/imagecaption.css */
.ck-content .image>figcaption {
  display: table-caption;
  caption-side: bottom;
  word-break: break-word;
  color: var(--ck-color-image-caption-text);
  background-color: var(--ck-color-image-caption-background);
  padding: .6em;
  font-size: .75em;
  outline-offset: -1px;
}

/* @ckeditor/ckeditor5-list/theme/list.css */
.ck-content ol {
  list-style-type: decimal;
}

/* @ckeditor/ckeditor5-list/theme/list.css */
.ck-content ol ol {
  list-style-type: lower-latin;
}

/* @ckeditor/ckeditor5-list/theme/list.css */
.ck-content ol ol ol {
  list-style-type: lower-roman;
}

/* @ckeditor/ckeditor5-list/theme/list.css */
.ck-content ol ol ol ol {
  list-style-type: upper-latin;
}

/* @ckeditor/ckeditor5-list/theme/list.css */
.ck-content ol ol ol ol ol {
  list-style-type: upper-roman;
}

/* @ckeditor/ckeditor5-list/theme/list.css */
.ck-content ul {
  list-style-type: disc;
}

/* @ckeditor/ckeditor5-list/theme/list.css */
.ck-content ul ul {
  list-style-type: circle;
}

/* @ckeditor/ckeditor5-list/theme/list.css */
.ck-content ul ul ul {
  list-style-type: square;
}

/* @ckeditor/ckeditor5-list/theme/list.css */
.ck-content ul ul ul ul {
  list-style-type: square;
}

/* @ckeditor/ckeditor5-image/theme/imagestyle.css */
.ck-content .image-style-block-align-left,
.ck-content .image-style-block-align-right {
  max-width: calc(100% - var(--ck-image-style-spacing));
}

/* @ckeditor/ckeditor5-image/theme/imagestyle.css */
.ck-content .image-style-align-left,
.ck-content .image-style-align-right {
  clear: none;
}

/* @ckeditor/ckeditor5-image/theme/imagestyle.css */
.ck-content .image-style-side {
  float: right;
  margin-left: var(--ck-image-style-spacing);
  max-width: 50%;
}

/* @ckeditor/ckeditor5-image/theme/imagestyle.css */
.ck-content .image-style-align-left {
  float: left;
  margin-right: var(--ck-image-style-spacing);
}

/* @ckeditor/ckeditor5-image/theme/imagestyle.css */
.ck-content .image-style-align-center {
  margin-left: auto;
  margin-right: auto;
}

/* @ckeditor/ckeditor5-image/theme/imagestyle.css */
.ck-content .image-style-align-right {
  float: right;
  margin-left: var(--ck-image-style-spacing);
}

/* @ckeditor/ckeditor5-image/theme/imagestyle.css */
.ck-content .image-style-block-align-right {
  margin-right: 0;
  margin-left: auto;
}

/* @ckeditor/ckeditor5-image/theme/imagestyle.css */
.ck-content .image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}

/* @ckeditor/ckeditor5-image/theme/imagestyle.css */
.ck-content p+.image-style-align-left,
.ck-content p+.image-style-align-right,
.ck-content p+.image-style-side {
  margin-top: 0;
}

/* @ckeditor/ckeditor5-image/theme/imagestyle.css */
.ck-content .image-inline.image-style-align-left,
.ck-content .image-inline.image-style-align-right {
  margin-top: var(--ck-inline-image-style-spacing);
  margin-bottom: var(--ck-inline-image-style-spacing);
}

/* @ckeditor/ckeditor5-image/theme/imagestyle.css */
.ck-content .image-inline.image-style-align-left {
  margin-right: var(--ck-inline-image-style-spacing);
}

/* @ckeditor/ckeditor5-image/theme/imagestyle.css */
.ck-content .image-inline.image-style-align-right {
  margin-left: var(--ck-inline-image-style-spacing);
}

/* @ckeditor/ckeditor5-highlight/theme/highlight.css */
.ck-content .marker-yellow {
  background-color: var(--ck-highlight-marker-yellow);
}

/* @ckeditor/ckeditor5-highlight/theme/highlight.css */
.ck-content .marker-green {
  background-color: var(--ck-highlight-marker-green);
}

/* @ckeditor/ckeditor5-highlight/theme/highlight.css */
.ck-content .marker-pink {
  background-color: var(--ck-highlight-marker-pink);
}

/* @ckeditor/ckeditor5-highlight/theme/highlight.css */
.ck-content .marker-blue {
  background-color: var(--ck-highlight-marker-blue);
}

/* @ckeditor/ckeditor5-highlight/theme/highlight.css */
.ck-content .pen-red {
  color: var(--ck-highlight-pen-red);
  background-color: transparent;
}

/* @ckeditor/ckeditor5-highlight/theme/highlight.css */
.ck-content .pen-green {
  color: var(--ck-highlight-pen-green);
  background-color: transparent;
}

/* @ckeditor/ckeditor5-block-quote/theme/blockquote.css */
.ck-content blockquote {
  overflow: hidden;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  border-left: solid 4px var(--bs-primary, #0d6efd);
  background: var(--bs-light, #f8f9fa);
  border-radius: 0 8px 8px 0;
  color: var(--bs-body-color, #212529);
  position: relative;
}

.ck-content blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--bs-primary, #0d6efd);
  opacity: 0.2;
  line-height: 1;
}

.ck-content blockquote p {
  margin-bottom: 0;
}

.ck-content blockquote p:not(:last-child) {
  margin-bottom: 1rem;
}

/* @ckeditor/ckeditor5-block-quote/theme/blockquote.css */
.ck-content[dir="rtl"] blockquote {
  border-left: 0;
  border-right: solid 4px var(--bs-primary, #0d6efd);
  border-radius: 8px 0 0 8px;
}

.ck-content[dir="rtl"] blockquote::before {
  left: auto;
  right: 10px;
}

/* @ckeditor/ckeditor5-basic-styles/theme/code.css */
.ck-content code {
  background-color: hsla(0, 0%, 78%, 0.3);
  padding: .15em;
}

/* @ckeditor/ckeditor5-basic-styles/theme/code.css */
.ck-content code {
  background-color: var(--bs-light, #f8f9fa);
  color: var(--bs-danger, #dc3545);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  border: 1px solid var(--bs-border-color, #dee2e6);
}

/* @ckeditor/ckeditor5-font/theme/fontsize.css */
.ck-content .text-tiny {
  font-size: .7em;
}

/* @ckeditor/ckeditor5-font/theme/fontsize.css */
.ck-content .text-small {
  font-size: .85em;
}

/* @ckeditor/ckeditor5-font/theme/fontsize.css */
.ck-content .text-big {
  font-size: 1.4em;
}

/* @ckeditor/ckeditor5-font/theme/fontsize.css */
.ck-content .text-huge {
  font-size: 1.8em;
}

/* @ckeditor/ckeditor5-mention/theme/mention.css */
.ck-content .mention {
  background: var(--ck-color-mention-background);
  color: var(--ck-color-mention-text);
}

/* @ckeditor/ckeditor5-horizontal-line/theme/horizontalline.css */
.ck-content hr {
  margin: 2rem 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bs-border-color, #dee2e6) 20%, var(--bs-border-color, #dee2e6) 80%, transparent);
  border: 0;
}

/* @ckeditor/ckeditor5-code-block/theme/codeblock.css */
.ck-content pre {
  padding: 1.25rem;
  margin: 1.5rem 0;
  color: var(--bs-body-color, #212529);
  background: var(--bs-light, #f8f9fa);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 8px;
  text-align: left;
  direction: ltr;
  tab-size: 4;
  white-space: pre-wrap;
  font-style: normal;
  min-width: 200px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ck-content pre::-webkit-scrollbar {
  height: 8px;
}

.ck-content pre::-webkit-scrollbar-track {
  background: var(--bs-light, #f8f9fa);
  border-radius: 4px;
}

.ck-content pre::-webkit-scrollbar-thumb {
  background: var(--bs-border-color, #dee2e6);
  border-radius: 4px;
}

.ck-content pre::-webkit-scrollbar-thumb:hover {
  background: var(--bs-secondary, #6c757d);
}

/* @ckeditor/ckeditor5-code-block/theme/codeblock.css */
.ck-content pre code {
  background: unset;
  padding: 0;
  border-radius: 0;
  border: none;
  color: inherit;
  font-size: inherit;
}

@media print {

  /* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */
  .ck-content .page-break {
    padding: 0;
  }

  /* @ckeditor/ckeditor5-page-break/theme/pagebreak.css */
  .ck-content .page-break::after {
    display: none;
  }
}

/* ========================================
   Dark Mode Support
   ======================================== */

[data-ct-theme="dark"] .ck-content {
  color: var(--bs-body-color, #dee2e6);
}

[data-ct-theme="dark"] .ck-content h1,
[data-ct-theme="dark"] .ck-content h2,
[data-ct-theme="dark"] .ck-content h3,
[data-ct-theme="dark"] .ck-content h4,
[data-ct-theme="dark"] .ck-content h5,
[data-ct-theme="dark"] .ck-content h6 {
  color: var(--ct-heading-color, #f8f9fa);
}

[data-ct-theme="dark"] .ck-content strong,
[data-ct-theme="dark"] .ck-content b {
  color: var(--ct-heading-color, #f8f9fa);
}

[data-ct-theme="dark"] .ck-content a {
  color: var(--bs-primary, #6ea8fe);
  text-decoration-color: rgba(110, 168, 254, 0.5);
}

[data-ct-theme="dark"] .ck-content a:hover {
  color: var(--bs-primary-light, #9ec5fe);
  text-decoration-color: var(--bs-primary-light, #9ec5fe);
}

/* Improved blockquote styling for dark mode */
[data-ct-theme="dark"] .ck-content blockquote {
  background: linear-gradient(135deg, rgba(110, 168, 254, 0.12), rgba(110, 168, 254, 0.08));
  border-left-color: var(--bs-primary, #6ea8fe);
  color: var(--bs-body-color, #e9ecef);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-ct-theme="dark"] .ck-content blockquote::before {
  color: var(--bs-primary, #6ea8fe);
  opacity: 0.4;
}

[data-ct-theme="dark"] .ck-content[dir="rtl"] blockquote {
  border-right-color: var(--bs-primary, #6ea8fe);
  background: linear-gradient(135deg, rgba(110, 168, 254, 0.08), rgba(110, 168, 254, 0.12));
}

/* Improved code styling for dark mode */
[data-ct-theme="dark"] .ck-content code {
  background: rgba(234, 134, 143, 0.15);
  color: var(--bs-danger, #f1aeb5);
  border-color: rgba(234, 134, 143, 0.3);
}

/* Improved pre code block styling for dark mode */
[data-ct-theme="dark"] .ck-content pre {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--bs-body-color, #e9ecef);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-ct-theme="dark"] .ck-content pre::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

[data-ct-theme="dark"] .ck-content pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
}

[data-ct-theme="dark"] .ck-content pre::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Improved hr styling for dark mode */
[data-ct-theme="dark"] .ck-content hr {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25) 20%, rgba(255, 255, 255, 0.25) 80%, transparent);
}

/* Improved image styling for dark mode */
[data-ct-theme="dark"] .ck-content img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  opacity: 0.95;
}

[data-ct-theme="dark"] .ck-content img:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  opacity: 1;
}

/* Improved table styling for dark mode */
[data-ct-theme="dark"] .ck-content .table table {
  border-color: rgba(255, 255, 255, 0.25);
}

[data-ct-theme="dark"] .ck-content .table table td,
[data-ct-theme="dark"] .ck-content .table table th {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--bs-body-color, #dee2e6);
}

[data-ct-theme="dark"] .ck-content .table table th {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ct-heading-color, #f8f9fa);
  font-weight: 600;
}

/* Improved list styling for dark mode */
[data-ct-theme="dark"] .ck-content ul,
[data-ct-theme="dark"] .ck-content ol {
  color: var(--bs-body-color, #dee2e6);
}

/* Todo list dark mode */
[data-ct-theme="dark"] .ck-content .todo-list .todo-list__label>input::before {
  border-color: rgba(255, 255, 255, 0.4);
}

[data-ct-theme="dark"] .ck-content .todo-list .todo-list__label>input:hover::before {
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  .ck-content {
    font-size: 1rem;
  }

  .ck-content h1 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .ck-content h2 {
    font-size: 1.75rem;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
  }

  .ck-content h3 {
    font-size: 1.35rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .ck-content h4 {
    font-size: 1.15rem;
    margin-top: 1.25rem;
    margin-bottom: 0.625rem;
  }

  .ck-content h5 {
    font-size: 1.05rem;
  }

  .ck-content h6 {
    font-size: 0.95rem;
  }

  .ck-content blockquote {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    margin: 1.5rem 0;
  }

  .ck-content blockquote::before {
    font-size: 3rem;
    top: -5px;
    left: 5px;
  }

  .ck-content pre {
    padding: 1rem;
    font-size: 0.875rem;
    margin: 1rem 0;
  }

  .ck-content ul,
  .ck-content ol {
    padding-left: 1.5rem;
  }
}

@media (max-width: 576px) {
  .ck-content {
    font-size: 0.95rem;
  }

  .ck-content h1 {
    font-size: 1.75rem;
  }

  .ck-content h2 {
    font-size: 1.5rem;
  }

  .ck-content h3 {
    font-size: 1.25rem;
  }

  .ck-content h4 {
    font-size: 1.1rem;
  }

  .ck-content blockquote {
    padding: 0.875rem 1rem;
    margin: 1rem 0;
  }

  .ck-content pre {
    padding: 0.875rem;
    font-size: 0.8rem;
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .ck-content {
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
  }

  .ck-content a {
    color: #000;
    text-decoration: underline;
  }

  .ck-content a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  .ck-content blockquote {
    page-break-inside: avoid;
    border-left-color: #000;
    background: #f5f5f5;
  }

  .ck-content pre {
    page-break-inside: avoid;
    border: 1px solid #000;
    background: #f5f5f5;
  }

  .ck-content img {
    max-width: 100% !important;
    page-break-inside: avoid;
    box-shadow: none;
  }

  .ck-content h1,
  .ck-content h2,
  .ck-content h3,
  .ck-content h4,
  .ck-content h5,
  .ck-content h6 {
    page-break-after: avoid;
    color: #000;
  }
}