/* Editor styles */
#editor-container {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.toolbar {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

#editor {
    padding: 16px;
    min-height: 200px;
    background: white;
    cursor: text;
}

.toolbar button {
    margin-right: 4px;
    padding: 4px 8px;
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

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

.toolbar button.active {
    background: #e9ecef;
    border-color: #dee2e6;
}

/* Debug styles */
#editor {
    outline: none;
}

.ProseMirror {
    min-height: 200px;
    padding: 16px;
    outline: none;
}

.ProseMirror p {
    margin: 1em 0;
}

.toolbar-divider {
    display: inline-block;
    width: 1px;
    height: 24px;
    background: #ddd;
    margin: 0 8px;
    vertical-align: middle;
}

.toolbar button i {
    font-size: 1rem;
    line-height: 1;
}

.toolbar button[data-command="undo"],
.toolbar button[data-command="redo"] {
    color: #666;
}

.toolbar button[data-command="undo"]:hover,
.toolbar button[data-command="redo"]:hover {
    color: #333;
} 

/* Contribution content images */
.contribution-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.contribution-text img:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Editor content images */
.ProseMirror img.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0 4px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Force paragraph containing images to center-align content */
.ProseMirror p:has(img.content-image) {
    text-align: center;
    margin-bottom: 16px;
}

/* Handle captions in separate paragraphs */
.ProseMirror p:has(img.content-image) + p:has(em:only-child) {
    text-align: center;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 0.9em;
    color: #666;
}

.ProseMirror p:has(img.content-image) + p em:only-child {
    font-style: italic;
    display: block;
}

/* Handle captions in same paragraph with line break (fallback structure) */
.ProseMirror p:has(img.content-image) em {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    text-align: center;
    width: 100%;
    clear: both;
}

/* Ensure line breaks in image paragraphs create proper spacing */
.ProseMirror p:has(img.content-image) br {
    display: block;
    content: "";
    height: 4px;
}

/* Discussion content images */
.discussion-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
    display: block;
}

/* JOURNAL CSS UPDATES - Add these styles to your main CSS file */

/* =============================================================================
   RADIO BUTTON VISIBILITY IMPROVEMENTS (Bug #3)
   ============================================================================= */

/* Enhanced radio button styling for better visibility */
.form-check-input[type="radio"] {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    border: 2px solid #6c757d;
    background-color: #fff;
}

.form-check-input[type="radio"]:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input[type="radio"]:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Radio button option containers with better visibility */
.radio-option-container {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.radio-option-container:hover {
    border-color: #0d6efd;
    background-color: #fff;
}

.radio-option-container.selected {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.form-check-label {
    font-weight: 500;
    color: #212529;
    cursor: pointer;
}

