/* Tiptap Editor Styles - No Tailwind dependencies */

/* ============================================
   Theme Colors (synced with ThemeColors.cs)
   ============================================ */
:root {
    --tiptap-primary: #003224;
    --tiptap-primary-light: #00503a;
    --tiptap-accent: #F06B35;
    --tiptap-background: #f7f8fa;
    --tiptap-surface: #ffffff;
    --tiptap-surface-variant: #f4f6f4;
    --tiptap-border: #e3e6ec;
    --tiptap-border-light: #e4e8e6;
    --tiptap-text-primary: #1f2937;
    --tiptap-text-secondary: #4b5563;
    --tiptap-text-muted: #9ca3af;
}

/* ============================================
   Editor Wrapper
   ============================================ */
.tiptap-editor-wrapper {
    border: 1px solid var(--tiptap-border);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--tiptap-surface);
}

/* ============================================
   Toolbar Styles
   ============================================ */
.tiptap-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid var(--tiptap-border);
    background-color: var(--tiptap-surface-variant);
    padding: 8px;
}

.tiptap-toolbar-group {
    display: flex;
    align-items: center;
    gap: 2px;
    border-radius: 4px;
    background-color: var(--tiptap-surface);
    padding: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--tiptap-border-light);
}

.tiptap-toolbar-divider {
    margin: 0 4px;
    height: 20px;
    width: 1px;
    background-color: #d1d5db;
}

.tiptap-toolbar-spacer {
    flex: 1;
}

.tiptap-toolbar-btn {
    margin: 0 2px;
}

.tiptap-toolbar-btn-text {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 4px;
}

/* ============================================
   Editor Content Wrapper (for padding/background only)
   ============================================ */
.tiptap-content-wrapper {
    min-height: 200px;
    background-color: var(--tiptap-surface);
    padding: 16px;
}

/* ============================================
   Editor Content (editable area)
   ============================================ */
.tiptap-content-wrapper > div:focus {
    outline: none;
}

/* Override prose max-width to fill editor */
.tiptap-content-wrapper .prose {
    max-width: 100%;
}

/* ============================================
   Placeholder
   ============================================ */
.tiptap-content p.is-editor-empty:first-child::before {
    content: attr(data-placeholder);
    float: left;
    color: var(--tiptap-text-muted);
    pointer-events: none;
    height: 0;
}

/* ============================================
   Text Alignment (applies to editor content)
   ============================================ */
.tiptap-content-wrapper [style*="text-align: left"] {
    text-align: left;
}

.tiptap-content-wrapper [style*="text-align: center"] {
    text-align: center;
}

.tiptap-content-wrapper [style*="text-align: right"] {
    text-align: right;
}

/* ============================================
   Selection (applies to editor content)
   ============================================ */
.tiptap-content-wrapper ::selection {
    background-color: rgba(0, 50, 36, 0.2);
}
