﻿.quill-context-menu {
    position: fixed;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 3px;
    z-index: 10000;
    min-width: 160px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.quill-context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    transition: background-color 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

    .quill-context-menu-item:hover {
        background-color: #f8f9fa;
    }

    .quill-context-menu-item:active {
        background-color: #e9ecef;
    }

    .quill-context-menu-item.disabled {
        color: #6c757d;
        cursor: not-allowed;
    }

        .quill-context-menu-item.disabled:hover {
            background-color: transparent;
        }

.quill-context-menu-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 4px 0;
}

/* Ensure the context menu appears above other elements */
.html-editor {
    position: relative;
}

.ql-toolbar.ql-snow .ql-formats {
    margin-bottom: 3px;
}

/* Style for the Quill editor container when showing context menu */
.ql-editor {
    position: relative;
}

/* Snippet button styling */
.ql-toolbar button.ql-snippet-save {
    width: auto;
    display: none;
    border: none;
    border-radius: 4px;
    margin-left: 16px;
    padding-left: 10px;
    cursor: pointer;
    white-space: nowrap;
    align-items: center;
    line-height: 1;
}

   /* .ql-toolbar button.ql-snippet-save:hover {
        background-color: #0056b3;
    }*/

   /* .ql-toolbar button.ql-snippet-save:active {
        background-color: #004494;
    }*/

    .ql-toolbar button.ql-snippet-save svg {
        display: inline-block;
        vertical-align: middle;
    }

    .ql-toolbar button.ql-snippet-save .ql-stroke {
        stroke: #000;
        stroke-width: 2;
    }

    .ql-toolbar button.ql-snippet-save .ql-fill {
        fill: #000;
    }

    .ql-toolbar button.ql-snippet-save .ql-even {
        fill: #000;
    }

/* Animation when button appears */
.ql-toolbar button.ql-snippet-save {
    transition: opacity 0.2s ease-in-out, background-color 0.15s ease;
    font-weight: 600;
}

    /* Optional: Add a separator before the snippet button */
    .ql-toolbar button.ql-snippet-save::before {
        content: '';
        position: absolute;
        left: -4px;
        top: 50%;
        transform: translateY(-50%);
        height: 20px;
        width: 1px;
        background-color: #ccc;
    }

/* Snippet dropdown styling (if you want to style it to match) */
.ql-toolbar select.ql-snippet-dropdown {
    margin-left: 8px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    height: 28px;
    cursor: pointer;
}

    /*.ql-toolbar select.ql-snippet-dropdown:hover {
        border-color: #999;
    }

    .ql-toolbar select.ql-snippet-dropdown:focus {
        outline: none;
        border-color: #06c;
        box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
    }
*/