/* TipTap Editor Styles */

.tiptap-editor-wrapper {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: white;
}

.tiptap-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 0.375rem 0.375rem 0 0;
}

.tiptap-toolbar button {
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
}

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

.tiptap-toolbar button.is-active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

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

.tiptap-toolbar .separator {
    width: 1px;
    background: #dee2e6;
    margin: 0 0.25rem;
}

/* Editor content area */
.ProseMirror {
    padding: 1rem;
    min-height: 400px;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

.ProseMirror p {
    margin-bottom: 1rem;
}

.ProseMirror h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.ProseMirror h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.ProseMirror h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.ProseMirror ul,
.ProseMirror ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.ProseMirror li {
    margin-bottom: 0.25rem;
}

.ProseMirror blockquote {
    border-left: 4px solid #dee2e6;
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: #6c757d;
}

.ProseMirror code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.ProseMirror pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.ProseMirror pre code {
    background: none;
    padding: 0;
}

.ProseMirror hr {
    border: none;
    border-top: 2px solid #dee2e6;
    margin: 2rem 0;
}

.ProseMirror a {
    color: #0d6efd;
    text-decoration: underline;
}

.ProseMirror strong {
    font-weight: 700;
}

.ProseMirror em {
    font-style: italic;
}

/* Placeholder */
.ProseMirror p.is-editor-empty:first-child::before {
    content: attr(data-placeholder);
    float: left;
    color: #adb5bd;
    pointer-events: none;
    height: 0;
}







