
/* Environment: dev - Generated styles */

.debug-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    z-index: 9999;
}
/**
 * Rich Text Editor Styles
 * Ensures consistent styling with the Auburn Event Calendar theme
 * Updated for Quill.js editor
 */

/* Quill editor container styling */
.ql-container {
    border: 1px solid #ddd !important;
    border-top: none !important;
    border-radius: 0 0 4px 4px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Quill toolbar styling */
.ql-toolbar {
    background-color: #f8f9fa !important;
    border: 1px solid #ddd !important;
    border-bottom: none !important;
    border-radius: 4px 4px 0 0 !important;
    padding: 8px !important;
}

.ql-toolbar .ql-formats {
    margin-right: 15px;
}

/* Quill button styling */
.ql-toolbar button {
    color: #495057 !important;
    border-radius: 3px !important;
    margin: 0 2px !important;
    padding: 5px !important;
    border: none !important;
    background: none !important;
}

.ql-toolbar button:hover {
    background-color: #e9ecef !important;
    color: #212529 !important;
}

.ql-toolbar button.ql-active {
    background-color: #007cba !important;
    color: white !important;
}

.ql-toolbar button.ql-active:hover {
    background-color: #005a87 !important;
}

/* Quill editor content area */
.ql-editor {
    background-color: white !important;
    color: #333 !important;
    padding: 12px !important;
    min-height: 200px !important;
}

.ql-editor p {
    margin: 0 0 1em 0;
}

.ql-editor ul, .ql-editor ol {
    margin: 0 0 1em 0;
    padding-left: 2em;
}

.ql-editor li {
    margin: 0 0 0.5em 0;
}

.ql-editor a {
    color: #007cba;
    text-decoration: underline;
}

.ql-editor a:hover {
    color: #005a87;
}

.ql-editor code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
}

/* Quill placeholder styling */
.ql-editor.ql-blank::before {
    color: #6c757d !important;
    font-style: italic !important;
}

/* Form integration styling */
.form-group .ql-toolbar {
    margin-top: 4px;
}

.form-group label + .ql-toolbar {
    margin-top: 8px;
}

/* Loading state for rich text editor */
.rich-text-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #6c757d;
    font-style: italic;
}

.rich-text-loading::before {
    content: "Loading editor...";
}

/* Error state for rich text editor */
.rich-text-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    font-style: italic;
}

.rich-text-error::before {
    content: "Failed to load editor. Using plain text mode.";
}

/* Fallback textarea styling when editor fails to load */
.rich-text-fallback {
    min-height: 200px;
    resize: vertical;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .ql-toolbar {
        flex-wrap: wrap;
        padding: 6px !important;
    }
    
    .ql-toolbar .ql-formats {
        margin-bottom: 4px;
        margin-right: 10px;
    }
    
    .ql-toolbar button {
        margin: 0 1px !important;
        min-width: 32px;
        min-height: 32px;
    }
    
    /* Adjust editor height on mobile */
    .ql-editor {
        min-height: 250px !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ql-container {
        border: 2px solid #000 !important;
    }
    
    .ql-toolbar {
        background-color: #fff !important;
        border: 2px solid #000 !important;
        border-bottom: none !important;
    }
    
    .ql-toolbar button {
        color: #000 !important;
        border: 1px solid #000 !important;
    }
    
    .ql-toolbar button:hover {
        background-color: #000 !important;
        color: #fff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ql-toolbar button {
        transition: none !important;
    }
}

/* Focus styles for accessibility */
.ql-toolbar button:focus {
    outline: 2px solid #007cba !important;
    outline-offset: 2px !important;
}

.ql-container:focus-within {
    outline: 2px solid #007cba !important;
    outline-offset: 2px !important;
}

.ql-editor:focus {
    outline: none !important;
}

/* Ensure proper spacing in admin forms */
.admin-form .form-group .ql-toolbar,
.admin-form .form-group .ql-container {
    width: 100%;
}

.admin-form .form-group .rich-text-loading,
.admin-form .form-group .rich-text-error,
.admin-form .form-group .rich-text-fallback {
    width: 100%;
    box-sizing: border-box;
}

/* Print styles */
@media print {
    .ql-container {
        border: none !important;
        box-shadow: none !important;
    }
    
    .ql-toolbar {
        display: none !important;
    }
}

/* Dark mode support (if implemented in the future) */
@media (prefers-color-scheme: dark) {
    .ql-container {
        border-color: #555 !important;
    }
    
    .ql-toolbar {
        background-color: #2d3748 !important;
        border-color: #555 !important;
    }
    
    .ql-toolbar button {
        color: #e2e8f0 !important;
    }
    
    .ql-toolbar button:hover {
        background-color: #4a5568 !important;
        color: #fff !important;
    }
    
    .ql-editor {
        background-color: #1a202c !important;
        color: #e2e8f0 !important;
    }
    
    .rich-text-loading {
        background-color: #2d3748;
        border-color: #555;
        color: #a0aec0;
    }
}