/* MudBlazor HtmlEditor List Display Fix - Based on GitHub PR #29 */
/* This CSS fixes the list display issues in Quill editor without waiting for package updates */

/* Fix for ordered lists showing bullets instead of numbers */
.mud-html-editor .ql-editor ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
}

/* Fix for ordered list items */
.mud-html-editor .ql-editor ol > li {
    list-style-type: decimal !important;
    display: list-item !important;
    padding-left: 0 !important;
}

/* Fix for unordered lists */
.mud-html-editor .ql-editor ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
}

/* Fix for unordered list items */
.mud-html-editor .ql-editor ul > li {
    list-style-type: disc !important;
    display: list-item !important;
    padding-left: 0 !important;
}

/* Fix for nested lists - maintain proper indentation */
.mud-html-editor .ql-editor ol ol,
.mud-html-editor .ql-editor ul ul,
.mud-html-editor .ql-editor ol ul,
.mud-html-editor .ql-editor ul ol {
    margin-left: 1.5rem !important;
}

/* Override Quill's data-list attributes that cause issues */
.mud-html-editor .ql-editor li[data-list="ordered"] {
    list-style-type: decimal !important;
}

.mud-html-editor .ql-editor li[data-list="bullet"] {
    list-style-type: disc !important;
}

/* Remove the problematic counter styling that Quill adds */
.mud-html-editor .ql-editor ol li::before {
    content: none !important;
}

.mud-html-editor .ql-editor ul li::before {
    content: none !important;
}

/* Ensure proper spacing between list items */
.mud-html-editor .ql-editor li {
    margin-bottom: 0.25rem;
    line-height: 1.6;
}

/* Fix list indentation for different indent levels */
.mud-html-editor .ql-editor .ql-indent-1 {
    margin-left: 1.5rem !important;
}

.mud-html-editor .ql-editor .ql-indent-2 {
    margin-left: 3rem !important;
}

.mud-html-editor .ql-editor .ql-indent-3 {
    margin-left: 4.5rem !important;
}