/* WYSIWYG Editor Styles */ .wysiwyg-container { position: relative; } .wysiwyg-editor { min-height: 400px; border: 1px solid #d1d5db; border-radius: 6px; background-color: white; } .wysiwyg-toolbar { border: 1px solid #d1d5db; border-bottom: none; border-radius: 6px 6px 0 0; background-color: #f9fafb; padding: 8px; display: flex; flex-wrap: wrap; gap: 4px; } .wysiwyg-btn { padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 4px; background-color: white; cursor: pointer; font-size: 12px; transition: all 0.2s; } .wysiwyg-btn:hover { background-color: #f3f4f6; border-color: #9ca3af; } .wysiwyg-btn.active { background-color: #3b82f6; color: white; border-color: #3b82f6; } .wysiwyg-separator { width: 1px; height: 24px; background-color: #d1d5db; margin: 0 4px; } .wysiwyg-select { padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 4px; background-color: white; font-size: 12px; } .wysiwyg-content { padding: 12px; min-height: 350px; font-family: inherit; font-size: 14px; line-height: 1.5; border: none; outline: none; resize: vertical; } .wysiwyg-content:focus { outline: 2px solid #3b82f6; outline-offset: -2px; } /* Form integration */ .publication-form .form-group:has(.wysiwyg-container) { margin-bottom: 20px; } .wysiwyg-label { display: block; margin-bottom: 8px; font-weight: 600; color: #374151; } /* Character count */ .wysiwyg-char-count { margin-top: 8px; font-size: 12px; color: #6b7280; text-align: right; } /* Responsive design */ @media (max-width: 768px) { .wysiwyg-toolbar { padding: 6px; gap: 2px; } .wysiwyg-btn { padding: 4px 6px; font-size: 11px; } .wysiwyg-content { padding: 8px; min-height: 300px; } }