/* Liste dentro TipTap editor (per la visualizzazione dei pallini) */
.tiptap ul {
    list-style-type: disc !important;
    list-style-position: outside;
    padding-left: 1.5rem;
}

.tiptap ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem;
}

.tiptap li {
    display: list-item !important;
}

.tiptap li p {
    margin: 0;
    padding: 0;
}

.tiptap-toolbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 0.375rem 0.375rem 0 0;
}

.tiptap-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    color: #495057;
    transition: background 0.15s, border-color 0.15s;
}

.tiptap-toolbar button:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.tiptap-toolbar button.is-active {
    background: #dee2e6;
    border-color: #adb5bd;
    color: #000;
}

.tiptap-toolbar button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tiptap-toolbar .toolbar-separator {
    color: #ced4da;
    padding: 0 4px;
    user-select: none;
}

.toolbar-options {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.tiptap table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.tiptap th,
.tiptap td {
    border: 1px solid #ced4da;
    padding: 8px 12px;
    min-width: 50px;
}

.tiptap th {
    background: #f8f9fa;
    font-weight: 600;
}

.tiptap tr:hover {
    background: #f8f9fa;
}

blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1rem;
    color: #666;
    margin: 1rem 0;
}

pre {
    background: #1e1e1e;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

code {
    font-family: monospace;
}

.ProseMirror img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ProseMirror pre {
    background: #1e1e1e;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.ProseMirror pre code {
    font-family: monospace;
}

/* Visione delle liste nel term in sola visualizzazione */
.term-content ul {
    list-style-type: disc !important;
    list-style-position: outside;
    padding-left: 1.5rem;
}

.term-content ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem;
}

.term-content li {
    display: list-item !important;
}

.term-content li p {
    margin: 0;
    padding: 0;
}

/* Visione delle tabelle nel term in sola visualizzazione */
.term-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.term-content th,
.term-content td {
    border: 1px solid #ced4da;
    padding: 8px 12px;
    min-width: 50px;
}

.term-content th {
    background: #f8f9fa;
    font-weight: 600;
}