/*!* CKEditor5 Custom Styles for Django Unfold Integration *!*/
/*!* Цвета из конфигурации Unfold *!*/

/*:root {*/
/*    !* Base colors - oklch format converted to rgb *!*/
/*    --unfold-base-50: rgb(250, 249, 251);*/
/*    --unfold-base-100: rgb(244, 242, 247);*/
/*    --unfold-base-200: rgb(232, 228, 237);*/
/*    --unfold-base-300: rgb(216, 210, 225);*/
/*    --unfold-base-400: rgb(177, 169, 189);*/
/*    --unfold-base-500: rgb(139, 129, 153);*/
/*    --unfold-base-600: rgb(110, 100, 124);*/
/*    --unfold-base-700: rgb(89, 80, 102);*/
/*    --unfold-base-800: rgb(64, 56, 77);*/
/*    --unfold-base-900: rgb(44, 38, 54);*/
/*    --unfold-base-950: rgb(24, 21, 30);*/

/*    !* Primary colors - purple theme *!*/
/*    --unfold-primary-50: rgb(247, 244, 251);*/
/*    --unfold-primary-100: rgb(239, 233, 247);*/
/*    --unfold-primary-200: rgb(224, 210, 239);*/
/*    --unfold-primary-300: rgb(203, 179, 227);*/
/*    --unfold-primary-400: rgb(186, 153, 215);*/
/*    --unfold-primary-500: rgb(168, 128, 203);*/
/*    --unfold-primary-600: rgb(149, 104, 191);*/
/*    --unfold-primary-700: rgb(128, 82, 174);*/
/*    --unfold-primary-800: rgb(107, 68, 151);*/
/*    --unfold-primary-900: rgb(91, 57, 131);*/
/*    --unfold-primary-950: rgb(69, 43, 100);*/

/*    !* Font colors *!*/
/*    --unfold-font-subtle: var(--unfold-base-500);*/
/*    --unfold-font-default: var(--unfold-base-600);*/
/*    --unfold-font-important: var(--unfold-base-900);*/

/*    !* Border radius *!*/
/*    --unfold-border-radius: 10px;*/
/*}*/

/*!* Dark mode support *!*/
/*@media (prefers-color-scheme: dark) {*/
/*    :root {*/
/*        --unfold-font-subtle: var(--unfold-base-400);*/
/*        --unfold-font-default: var(--unfold-base-300);*/
/*        --unfold-font-important: var(--unfold-base-100);*/
/*    }*/
/*}*/

/*!* ===== БОЛЕЕ СПЕЦИФИЧНЫЕ СЕЛЕКТОРЫ ДЛЯ DJANGO-CKEDITOR-5 ===== *!*/

/*!* Main CKEditor container styling - используем более специфичные селекторы *!*/
/*.django_ckeditor_5 .ck.ck-editor,*/
/*.ck.ck-editor__main .ck-editor,*/
/*div[class*="django_ckeditor"] .ck.ck-editor {*/
/*    border-radius: var(--unfold-border-radius) !important;*/
/*    border: 1px solid var(--unfold-base-300) !important;*/
/*    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;*/
/*    overflow: hidden !important;*/
/*}*/

/*!* Toolbar styling *!*/
/*.django_ckeditor_5 .ck.ck-toolbar,*/
/*.ck.ck-toolbar.ck-toolbar_grouping,*/
/*div[class*="django_ckeditor"] .ck.ck-toolbar {*/
/*    background: var(--unfold-base-50) !important;*/
/*    border-bottom: 1px solid var(--unfold-base-200) !important;*/
/*    padding: 8px 12px !important;*/
/*    border-top-left-radius: var(--unfold-border-radius) !important;*/
/*    border-top-right-radius: var(--unfold-border-radius) !important;*/
/*    border: none !important;*/
/*    border-bottom: 1px solid var(--unfold-base-200) !important;*/
/*}*/

/*!* Toolbar buttons *!*/
/*.django_ckeditor_5 .ck.ck-button,*/
/*.ck.ck-toolbar .ck.ck-button,*/
/*div[class*="django_ckeditor"] .ck.ck-button {*/
/*    color: var(--unfold-font-default) !important;*/
/*    border-radius: 6px !important;*/
/*    transition: all 0.2s ease !important;*/
/*}*/

/*.django_ckeditor_5 .ck.ck-button:hover,*/
/*.ck.ck-toolbar .ck.ck-button:hover,*/
/*div[class*="django_ckeditor"] .ck.ck-button:hover {*/
/*    background: var(--unfold-base-100) !important;*/
/*    color: var(--unfold-font-important) !important;*/
/*}*/

/*.django_ckeditor_5 .ck.ck-button.ck-on,*/
/*.ck.ck-toolbar .ck.ck-button.ck-on,*/
/*div[class*="django_ckeditor"] .ck.ck-button.ck-on {*/
/*    background: var(--unfold-primary-100) !important;*/
/*    color: var(--unfold-primary-700) !important;*/
/*}*/

/*.django_ckeditor_5 .ck.ck-button:active,*/
/*.django_ckeditor_5 .ck.ck-button.ck-on:active,*/
/*.ck.ck-toolbar .ck.ck-button:active,*/
/*div[class*="django_ckeditor"] .ck.ck-button:active {*/
/*    background: var(--unfold-primary-200) !important;*/
/*    color: var(--unfold-primary-800) !important;*/
/*}*/

/*!* Dropdown styling *!*/
/*.django_ckeditor_5 .ck.ck-dropdown__panel,*/
/*.ck.ck-dropdown__panel,*/
/*div[class*="django_ckeditor"] .ck.ck-dropdown__panel {*/
/*    background: white !important;*/
/*    border: 1px solid var(--unfold-base-200) !important;*/
/*    border-radius: var(--unfold-border-radius) !important;*/
/*    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;*/
/*}*/

/*.django_ckeditor_5 .ck.ck-list__item,*/
/*.ck.ck-list__item,*/
/*div[class*="django_ckeditor"] .ck.ck-list__item {*/
/*    border-radius: 6px !important;*/
/*    margin: 2px 4px !important;*/
/*}*/

/*.django_ckeditor_5 .ck.ck-list__item:hover,*/
/*.ck.ck-list__item:hover,*/
/*div[class*="django_ckeditor"] .ck.ck-list__item:hover {*/
/*    background: var(--unfold-base-50) !important;*/
/*}*/

/*.django_ckeditor_5 .ck.ck-list__item.ck-on,*/
/*.ck.ck-list__item.ck-on,*/
/*div[class*="django_ckeditor"] .ck.ck-list__item.ck-on {*/
/*    background: var(--unfold-primary-100) !important;*/
/*    color: var(--unfold-primary-700) !important;*/
/*}*/

/*!* Editor content area *!*/
/*.django_ckeditor_5 .ck.ck-editor__main,*/
/*.ck.ck-editor__main,*/
/*div[class*="django_ckeditor"] .ck.ck-editor__main {*/
/*    background: white !important;*/
/*    border-bottom-left-radius: var(--unfold-border-radius) !important;*/
/*    border-bottom-right-radius: var(--unfold-border-radius) !important;*/
/*}*/

/*.django_ckeditor_5 .ck.ck-content,*/
/*.ck.ck-editor__editable,*/
/*.ck-editor__editable.ck-content,*/
/*div[class*="django_ckeditor"] .ck.ck-content {*/
/*    min-height: 300px !important;*/
/*    padding: 16px 20px !important;*/
/*    font-size: 14px !important;*/
/*    line-height: 1.6 !important;*/
/*    color: var(--unfold-font-default) !important;*/
/*}*/

/*!* Heading styles inside editor *!*/
/*.django_ckeditor_5 .ck-content h1,*/
/*.ck-editor__editable h1,*/
/*div[class*="django_ckeditor"] .ck-content h1 {*/
/*    font-size: 2em !important;*/
/*    font-weight: 700 !important;*/
/*    color: var(--unfold-font-important) !important;*/
/*    margin-top: 0.5em !important;*/
/*    margin-bottom: 0.5em !important;*/
/*}*/

/*.django_ckeditor_5 .ck-content h2,*/
/*.ck-editor__editable h2,*/
/*div[class*="django_ckeditor"] .ck-content h2 {*/
/*    font-size: 1.5em !important;*/
/*    font-weight: 600 !important;*/
/*    color: var(--unfold-font-important) !important;*/
/*    margin-top: 0.5em !important;*/
/*    margin-bottom: 0.5em !important;*/
/*}*/

/*.django_ckeditor_5 .ck-content h3,*/
/*.ck-editor__editable h3,*/
/*div[class*="django_ckeditor"] .ck-content h3 {*/
/*    font-size: 1.25em !important;*/
/*    font-weight: 600 !important;*/
/*    color: var(--unfold-font-important) !important;*/
/*    margin-top: 0.5em !important;*/
/*    margin-bottom: 0.5em !important;*/
/*}*/

/*!* Links inside editor *!*/
/*.django_ckeditor_5 .ck-content a,*/
/*.ck-editor__editable a,*/
/*div[class*="django_ckeditor"] .ck-content a {*/
/*    color: var(--unfold-primary-600) !important;*/
/*    text-decoration: underline !important;*/
/*    transition: color 0.2s ease !important;*/
/*}*/

/*.django_ckeditor_5 .ck-content a:hover,*/
/*.ck-editor__editable a:hover,*/
/*div[class*="django_ckeditor"] .ck-content a:hover {*/
/*    color: var(--unfold-primary-700) !important;*/
/*}*/

/*!* Blockquote styling *!*/
/*.django_ckeditor_5 .ck-content blockquote,*/
/*.ck-editor__editable blockquote,*/
/*div[class*="django_ckeditor"] .ck-content blockquote {*/
/*    border-left: 4px solid var(--unfold-primary-400) !important;*/
/*    padding-left: 16px !important;*/
/*    margin: 16px 0 !important;*/
/*    font-style: italic !important;*/
/*    color: var(--unfold-font-subtle) !important;*/
/*    background: var(--unfold-base-50) !important;*/
/*    padding: 12px 16px !important;*/
/*    border-radius: 4px !important;*/
/*}*/

/*!* Code block styling *!*/
/*.django_ckeditor_5 .ck-content pre,*/
/*.ck-editor__editable pre,*/
/*div[class*="django_ckeditor"] .ck-content pre {*/
/*    background: var(--unfold-base-950) !important;*/
/*    color: var(--unfold-base-50) !important;*/
/*    padding: 16px !important;*/
/*    border-radius: var(--unfold-border-radius) !important;*/
/*    overflow-x: auto !important;*/
/*    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;*/
/*    font-size: 13px !important;*/
/*    line-height: 1.5 !important;*/
/*}*/

/*.django_ckeditor_5 .ck-content code,*/
/*.ck-editor__editable code,*/
/*div[class*="django_ckeditor"] .ck-content code {*/
/*    background: var(--unfold-base-100) !important;*/
/*    color: var(--unfold-primary-700) !important;*/
/*    padding: 2px 6px !important;*/
/*    border-radius: 4px !important;*/
/*    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;*/
/*    font-size: 0.9em !important;*/
/*}*/

/*!* Table styling *!*/
/*.django_ckeditor_5 .ck-content table,*/
/*.ck-editor__editable table,*/
/*div[class*="django_ckeditor"] .ck-content table {*/
/*    border-collapse: collapse !important;*/
/*    width: 100% !important;*/
/*    margin: 16px 0 !important;*/
/*}*/

/*.django_ckeditor_5 .ck-content table td,*/
/*.django_ckeditor_5 .ck-content table th,*/
/*.ck-editor__editable table td,*/
/*.ck-editor__editable table th,*/
/*div[class*="django_ckeditor"] .ck-content table td,*/
/*div[class*="django_ckeditor"] .ck-content table th {*/
/*    border: 1px solid var(--unfold-base-300) !important;*/
/*    padding: 8px 12px !important;*/
/*    text-align: left !important;*/
/*}*/

/*.django_ckeditor_5 .ck-content table th,*/
/*.ck-editor__editable table th,*/
/*div[class*="django_ckeditor"] .ck-content table th {*/
/*    background: var(--unfold-primary-50) !important;*/
/*    color: var(--unfold-primary-800) !important;*/
/*    font-weight: 600 !important;*/
/*}*/

/*font-weight:*/

/*600*/
/*;*/
/*}*/

/*.django_ckeditor_5 .ck-content table tr:nth-child(even),*/
/*.ck-editor__editable table tr:nth-child(even),*/
/*div[class*="django_ckeditor"] .ck-content table tr:nth-child(even) {*/
/*    background: var(--unfold-base-50) !important;*/
/*}*/

/*.django_ckeditor_5 .ck-content table tr:hover,*/
/*.ck-editor__editable table tr:hover,*/
/*div[class*="django_ckeditor"] .ck-content table tr:hover {*/
/*    background: var(--unfold-primary-50) !important;*/
/*}*/

/*!* List styling *!*/
/*.django_ckeditor_5 .ck-content ul,*/
/*.django_ckeditor_5 .ck-content ol,*/
/*.ck-editor__editable ul,*/
/*.ck-editor__editable ol,*/
/*div[class*="django_ckeditor"] .ck-content ul,*/
/*div[class*="django_ckeditor"] .ck-content ol {*/
/*    padding-left: 24px !important;*/
/*    margin: 12px 0 !important;*/
/*}*/

/*.django_ckeditor_5 .ck-content li,*/
/*.ck-editor__editable li,*/
/*div[class*="django_ckeditor"] .ck-content li {*/
/*    margin: 6px 0 !important;*/
/*}*/

/*!* Image styling *!*/
/*.django_ckeditor_5 .ck-content img,*/
/*.ck-editor__editable img,*/
/*div[class*="django_ckeditor"] .ck-content img {*/
/*    max-width: 100% !important;*/
/*    height: auto !important;*/
/*    border-radius: var(--unfold-border-radius) !important;*/
/*    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;*/
/*}*/

/*.django_ckeditor_5 .ck-content figure.image,*/
/*.ck-editor__editable figure.image,*/
/*div[class*="django_ckeditor"] .ck-content figure.image {*/
/*    margin: 16px 0 !important;*/
/*}*/

/*!* Selection color *!*/
/*.django_ckeditor_5 .ck-content ::selection,*/
/*.ck-editor__editable ::selection,*/
/*div[class*="django_ckeditor"] .ck-content ::selection {*/
/*    background: var(--unfold-primary-200) !important;*/
/*    color: var(--unfold-primary-900) !important;*/
/*}*/

/*!* Focus state *!*/
/*.django_ckeditor_5 .ck.ck-editor__editable:focus,*/
/*.ck.ck-editor__editable:focus,*/
/*div[class*="django_ckeditor"] .ck.ck-editor__editable:focus {*/
/*    border-color: var(--unfold-primary-400) !important;*/
/*    box-shadow: 0 0 0 3px var(--unfold-primary-100) !important;*/
/*    outline: none !important;*/
/*}*/

/*!* Placeholder text *!*/
/*.django_ckeditor_5 .ck.ck-placeholder::before,*/
/*.ck.ck-placeholder::before,*/
/*div[class*="django_ckeditor"] .ck.ck-placeholder::before {*/
/*    color: var(--unfold-font-subtle) !important;*/
/*    opacity: 0.6 !important;*/
/*}*/

/*!* Toolbar separator *!*/
/*.django_ckeditor_5 .ck.ck-toolbar__separator {*/
/*    background: var(--unfold-base-300) !important;*/
/*}*/

/*!* Tooltip styling *!*/
/*.django_ckeditor_5 .ck.ck-tooltip {*/
/*    background: var(--unfold-base-900) !important;*/
/*    color: var(--unfold-base-50) !important;*/
/*    border-radius: 6px !important;*/
/*    font-size: 12px;*/
/*    padding: 4px 8px !important;*/
/*}*/

/*!* Balloon toolbar (inline editing) *!*/
/*.django_ckeditor_5 .ck.ck-balloon-panel,*/
/*.ck.ck-balloon-panel,*/
/*div[class*="django_ckeditor"] .ck.ck-balloon-panel {*/
/*    background: white !important;*/
/*    border: 1px solid var(--unfold-base-200) !important;*/
/*    border-radius: var(--unfold-border-radius) !important;*/
/*    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;*/
/*}*/

/*!* Media embed (iframe) styling *!*/
/*.django_ckeditor_5 .ck-content .media,*/
/*.ck-editor__editable .media,*/
/*div[class*="django_ckeditor"] .ck-content .media {*/
/*    margin: 16px 0 !important;*/
/*    clear: both !important;*/
/*}*/

/*.django_ckeditor_5 .ck-content .media iframe,*/
/*.ck-editor__editable .media iframe,*/
/*div[class*="django_ckeditor"] .ck-content .media iframe {*/
/*    width: 100% !important;*/
/*    max-width: 100% !important;*/
/*    border-radius: var(--unfold-border-radius) !important;*/
/*}*/

/*!* Color picker styling *!*/
/*.django_ckeditor_5 .ck.ck-color-grid__tile,*/
/*.ck.ck-color-grid__tile,*/
/*div[class*="django_ckeditor"] .ck.ck-color-grid__tile {*/
/*    border-radius: 4px !important;*/
/*    transition: transform 0.2s ease !important;*/
/*}*/

/*.django_ckeditor_5 .ck.ck-color-grid__tile:hover,*/
/*.ck.ck-color-grid__tile:hover,*/
/*div[class*="django_ckeditor"] .ck.ck-color-grid__tile:hover {*/
/*    transform: scale(1.1) !important;*/
/*}*/

/*!* Font size dropdown *!*/
/*.django_ckeditor_5 .ck.ck-dropdown.ck-font-size-dropdown .ck-dropdown__button,*/
/*.ck.ck-dropdown.ck-font-size-dropdown .ck-dropdown__button,*/
/*div[class*="django_ckeditor"] .ck.ck-dropdown.ck-font-size-dropdown .ck-dropdown__button {*/
/*    min-width: 80px !important;*/
/*}*/

/*!* Alignment buttons *!*/
/*.django_ckeditor_5 .ck-button[class*="alignment"],*/
/*.ck-button[class*="alignment"],*/
/*div[class*="django_ckeditor"] .ck-button[class*="alignment"] {*/
/*    min-width: 32px !important;*/
/*}*/

/*!* Source editing mode *!*/
/*.django_ckeditor_5 .ck-source-editing-area,*/
/*.ck-source-editing-area,*/
/*div[class*="django_ckeditor"] .ck-source-editing-area {*/
/*    background: var(--unfold-base-950) !important;*/
/*    color: var(--unfold-base-50) !important;*/
/*    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;*/
/*    padding: 16px !important;*/
/*    border-radius: var(--unfold-border-radius) !important;*/
/*}*/

/*}*/

/*.django_ckeditor_5 .ck-source-editing-area textarea {*/
/*    background: transparent !important;*/
/*    color: var(--unfold-base-50) !important;*/
/*    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;*/
/*    line-height: 1.5;*/
/*}*/

/*!* Scrollbar styling *!*/
/*.django_ckeditor_5 .ck-content::-webkit-scrollbar {*/
/*    width: 8px;*/
/*}*/

/*.django_ckeditor_5 .ck-content::-webkit-scrollbar-track {*/
/*    background: var(--unfold-base-100);*/
/*    border-radius: 4px;*/
/*}*/

/*.django_ckeditor_5 .ck-content::-webkit-scrollbar-thumb {*/
/*    background: var(--unfold-base-400);*/
/*    border-radius: 4px;*/
/*}*/

/*.django_ckeditor_5 .ck-content::-webkit-scrollbar-thumb:hover {*/
/*    background: var(--unfold-primary-500);*/
/*}*/

/*!* Dark mode styles *!*/
/*@media (prefers-color-scheme: dark) {*/
/*    .django_ckeditor_5 .ck.ck-editor {*/
/*        border-color: var(--unfold-base-700);*/
/*    }*/

/*    .django_ckeditor_5 .ck.ck-toolbar {*/
/*        background: var(--unfold-base-900) !important;*/
/*        border-bottom-color: var(--unfold-base-700) !important;*/
/*    }*/

/*    .django_ckeditor_5 .ck.ck-button {*/
/*        color: var(--unfold-base-300) !important;*/
/*    }*/

/*    .django_ckeditor_5 .ck.ck-button:hover {*/
/*        background: var(--unfold-base-800) !important;*/
/*        color: var(--unfold-base-100) !important;*/
/*    }*/

/*    .django_ckeditor_5 .ck.ck-editor__main {*/
/*        background: var(--unfold-base-950) !important;*/
/*    }*/

/*    .django_ckeditor_5 .ck.ck-content {*/
/*        background: var(--unfold-base-950) !important;*/
/*        color: var(--unfold-base-300);*/
/*    }*/

/*    .django_ckeditor_5 .ck-content h1,*/
/*    .django_ckeditor_5 .ck-content h2,*/
/*    .django_ckeditor_5 .ck-content h3 {*/
/*        color: var(--unfold-base-100);*/
/*    }*/

/*    .django_ckeditor_5 .ck-content blockquote {*/
/*        background: var(--unfold-base-900);*/
/*        border-left-color: var(--unfold-primary-600);*/
/*    }*/

/*    .django_ckeditor_5 .ck.ck-dropdown__panel {*/
/*        background: var(--unfold-base-900) !important;*/
/*        border-color: var(--unfold-base-700) !important;*/
/*    }*/

/*    .django_ckeditor_5 .ck.ck-list__item:hover {*/
/*        background: var(--unfold-base-800) !important;*/
/*    }*/
/*}*/

/*!* Responsive adjustments *!*/
/*@media (max-width: 768px) {*/
/*    .django_ckeditor_5 .ck.ck-toolbar {*/
/*        padding: 6px 8px !important;*/
/*    }*/

/*    .django_ckeditor_5 .ck.ck-content {*/
/*        padding: 12px 16px !important;*/
/*        font-size: 13px;*/
/*    }*/

/*    .django_ckeditor_5 .ck.ck-button {*/
/*        padding: 4px 6px !important;*/
/*    }*/
/*}*/

/*!* Animation for smooth transitions *!*/
/*.django_ckeditor_5 * {*/
/*    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;*/
/*}*/

/*!* File upload progress bar *!*/
/*.django_ckeditor_5 .ck-progress-bar {*/
/*    background: var(--unfold-primary-200) !important;*/
/*    border-radius: 4px;*/
/*}*/

/*.django_ckeditor_5 .ck-progress-bar__value {*/
/*    background: var(--unfold-primary-600) !important;*/
/*    border-radius: 4px;*/
/*}*/

/*!* Error state styling *!*/
/*.django_ckeditor_5 .ck.ck-editor.ck-error {*/
/*    border-color: #dc2626 !important;*/
/*}*/

/*.django_ckeditor_5 .ck.ck-editor.ck-error .ck.ck-toolbar {*/
/*    border-bottom-color: #dc2626 !important;*/
/*}*/

/*!* Success state styling *!*/
/*.django_ckeditor_5 .ck.ck-editor.ck-success {*/
/*    border-color: #16a34a !important;*/
/*}*/

/*!* Loading state *!*/
/*.django_ckeditor_5 .ck.ck-editor.ck-loading {*/
/*    opacity: 0.6;*/
/*    pointer-events: none;*/
/*}*/

/* Default text color: black */
.ck.ck-content,
.ck-editor__editable.ck-content,
.django_ckeditor_5 .ck.ck-content {
    color: #000000 !important;
}

