/* SARAHI Dark Theme for Quill Rich Text Editor */
.sarahi-quill-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Toolbar styling */
.sarahi-quill-wrapper .ql-toolbar.ql-snow {
  background: var(--adm-surface-card, #161B2E);
  border: 1px solid var(--adm-border, rgba(255, 255, 255, 0.12));
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

/* Container & Editor */
.sarahi-quill-wrapper .ql-container.ql-snow {
  background: var(--adm-surface-card, #13121F);
  border: 1px solid var(--adm-border, rgba(255, 255, 255, 0.12));
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  color: var(--adm-text, #F8F9FA);
  font-family: inherit;
  font-size: 14px;
}

.sarahi-quill-wrapper .ql-editor {
  min-height: 180px;
  line-height: 1.7;
  padding: 12px 16px;
  color: #F8F9FA;
}

/* Placeholder */
.sarahi-quill-wrapper .ql-editor.ql-blank::before {
  color: rgba(255, 255, 255, 0.35);
  font-style: normal;
  left: 16px;
  right: 16px;
}

/* Focus Glow */
.sarahi-quill-wrapper:focus-within .ql-toolbar.ql-snow {
  border-color: #7C5CE7;
}
.sarahi-quill-wrapper:focus-within .ql-container.ql-snow {
  border-color: #7C5CE7;
  box-shadow: 0 0 0 3px rgba(124, 92, 231, 0.2);
}

/* Error State */
.sarahi-quill-wrapper.has-error .ql-toolbar.ql-snow,
.sarahi-quill-wrapper.has-error .ql-container.ql-snow {
  border-color: #EF4444 !important;
}

/* Toolbar Icons - Purple/Indigo theme */
.sarahi-quill-wrapper .ql-snow .ql-stroke {
  stroke: #A89AFF;
  stroke-width: 1.8;
  transition: stroke 0.15s;
}
.sarahi-quill-wrapper .ql-snow .ql-fill {
  fill: #A89AFF;
  transition: fill 0.15s;
}
.sarahi-quill-wrapper .ql-snow .ql-picker {
  color: #A89AFF;
}

/* Toolbar Button States (Hover & Active) */
.sarahi-quill-wrapper .ql-snow.ql-toolbar button:hover,
.sarahi-quill-wrapper .ql-snow.ql-toolbar button:focus,
.sarahi-quill-wrapper .ql-snow.ql-toolbar button.ql-active {
  background: rgba(124, 92, 231, 0.2);
  border-radius: 6px;
}
.sarahi-quill-wrapper .ql-snow.ql-toolbar button:hover .ql-stroke,
.sarahi-quill-wrapper .ql-snow.ql-toolbar button:focus .ql-stroke,
.sarahi-quill-wrapper .ql-snow.ql-toolbar button.ql-active .ql-stroke {
  stroke: #FFFFFF !important;
}
.sarahi-quill-wrapper .ql-snow.ql-toolbar button:hover .ql-fill,
.sarahi-quill-wrapper .ql-snow.ql-toolbar button:focus .ql-fill,
.sarahi-quill-wrapper .ql-snow.ql-toolbar button.ql-active .ql-fill {
  fill: #FFFFFF !important;
}

/* Picker Labels & Dropdowns */
.sarahi-quill-wrapper .ql-snow .ql-picker-label {
  border-radius: 6px;
  padding-left: 8px;
  color: #A89AFF;
}
.sarahi-quill-wrapper .ql-snow .ql-picker-label:hover {
  color: #FFFFFF;
  background: rgba(124, 92, 231, 0.15);
}
.sarahi-quill-wrapper .ql-snow .ql-picker-options {
  background-color: #1a1630 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
  border-radius: 8px !important;
  padding: 6px !important;
}
.sarahi-quill-wrapper .ql-snow .ql-picker-item {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
}
.sarahi-quill-wrapper .ql-snow .ql-picker-item:hover,
.sarahi-quill-wrapper .ql-snow .ql-picker-item.ql-selected {
  color: #FFFFFF !important;
  background-color: #7C5CE7 !important;
}

/* Formatted output inside the editor & frontend display */
.job-rich-description,
.rich-text-content,
.sarahi-quill-wrapper .ql-editor {
  line-height: 1.8;
  font-size: 14px;
}
.job-rich-description p,
.rich-text-content p,
.sarahi-quill-wrapper .ql-editor p {
  margin-bottom: 0.85rem;
}
.job-rich-description p:last-child,
.rich-text-content p:last-child,
.sarahi-quill-wrapper .ql-editor p:last-child {
  margin-bottom: 0;
}
.job-rich-description ul,
.job-rich-description ol,
.rich-text-content ul,
.rich-text-content ol,
.sarahi-quill-wrapper .ql-editor ul,
.sarahi-quill-wrapper .ql-editor ol {
  margin: 0.6rem 0 1rem 0 !important;
  padding-left: 1.8rem !important;
}
.job-rich-description ul,
.rich-text-content ul,
.sarahi-quill-wrapper .ql-editor ul {
  list-style-type: disc !important;
}
.job-rich-description ol,
.rich-text-content ol,
.sarahi-quill-wrapper .ql-editor ol {
  list-style-type: decimal !important;
}
.job-rich-description li,
.rich-text-content li,
.sarahi-quill-wrapper .ql-editor li {
  margin-bottom: 0.45rem;
  line-height: 1.7;
  list-style: inherit !important;
}
.job-rich-description ul > li,
.rich-text-content ul > li {
  list-style-type: disc !important;
}
.job-rich-description ol > li,
.rich-text-content ol > li {
  list-style-type: decimal !important;
}
.job-rich-description li[data-list="bullet"],
.rich-text-content li[data-list="bullet"] {
  list-style-type: disc !important;
}
.job-rich-description strong,
.job-rich-description b,
.rich-text-content strong,
.rich-text-content b,
.sarahi-quill-wrapper .ql-editor strong,
.sarahi-quill-wrapper .ql-editor b {
  color: #FFFFFF;
  font-weight: 700;
}
.job-rich-description em,
.job-rich-description i,
.rich-text-content em,
.rich-text-content i,
.sarahi-quill-wrapper .ql-editor em,
.sarahi-quill-wrapper .ql-editor i {
  font-style: italic;
}
.job-rich-description u,
.rich-text-content u,
.sarahi-quill-wrapper .ql-editor u {
  text-decoration: underline;
}
.job-rich-description h2,
.job-rich-description h3,
.job-rich-description h4,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4,
.sarahi-quill-wrapper .ql-editor h2,
.sarahi-quill-wrapper .ql-editor h3,
.sarahi-quill-wrapper .ql-editor h4 {
  color: #FFFFFF;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.job-rich-description h2, .rich-text-content h2 { font-size: 1.25rem; }
.job-rich-description h3, .rich-text-content h3 { font-size: 1.1rem; }
.job-rich-description h4, .rich-text-content h4 { font-size: 1.0rem; }
.job-rich-description blockquote,
.rich-text-content blockquote,
.sarahi-quill-wrapper .ql-editor blockquote {
  border-left: 3px solid #7C5CE7;
  padding: 8px 14px;
  margin: 0.85rem 0;
  background: rgba(124, 92, 231, 0.08);
  border-radius: 0 8px 8px 0;
  color: var(--cream, #E2E8F0);
  font-style: italic;
}
.job-rich-description a,
.rich-text-content a,
.sarahi-quill-wrapper .ql-editor a {
  color: #A89AFF;
  text-decoration: underline;
  word-break: break-all;
}
.job-rich-description a:hover,
.rich-text-content a:hover,
.sarahi-quill-wrapper .ql-editor a:hover {
  color: #FFFFFF;
}

