/**
 * Editor.js Skin Styles
 * 블록 기반 에디터 스타일
 */

/* ============================================
   에디터 컨테이너
   ============================================ */
.editorjs-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

.editorjs-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.3s ease;
}

.editorjs-container:focus-within {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* ============================================
   밝은 테마
   ============================================ */
.editorjs-theme-light .editorjs-container {
    background: #ffffff;
    color: #333333;
    border-color: #e0e0e0;
}

.editorjs-theme-light .ce-block__content,
.editorjs-theme-light .ce-toolbar__content {
    max-width: 100%;
}

.editorjs-theme-light .codex-editor__redactor {
    padding-bottom: 50px !important;
}

/* ============================================
   어두운 테마
   ============================================ */
.editorjs-theme-dark {
    background: #1e1e1e;
}

.editorjs-theme-dark .editorjs-container {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #3d3d3d;
}

.editorjs-theme-dark .ce-block__content,
.editorjs-theme-dark .ce-toolbar__content {
    color: #e0e0e0;
}

.editorjs-theme-dark .ce-block--selected .ce-block__content {
    background: rgba(74, 144, 226, 0.1);
}

.editorjs-theme-dark .ce-toolbar__plus,
.editorjs-theme-dark .ce-toolbar__settings-btn {
    color: #e0e0e0;
    background: #3d3d3d;
}

.editorjs-theme-dark .ce-toolbar__plus:hover,
.editorjs-theme-dark .ce-toolbar__settings-btn:hover {
    background: #4d4d4d;
}

/* ============================================
   코드 블록 스타일 (Prism.js와 통합)
   ============================================ */
.editorjs-container pre[class*="language-"] {
    margin: 1em 0;
    padding: 1em;
    border-radius: 6px;
    background: #2d2d2d;
    overflow: auto;
    position: relative;
}

.editorjs-container code[class*="language-"] {
    font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    text-shadow: none;
}

/* ============================================
   코드 블록 에디터 UI (편집 모드)
   ============================================ */
.cdx-code-with-language {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    margin: 1em 0;
}

/* 컨트롤 영역 (상단) */
.cdx-code-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

/* 언어 선택 드롭다운 */
.cdx-code-language-select {
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #ffffff;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    min-width: 150px;
}

.cdx-code-language-select:hover {
    border-color: #4a90e2;
}

.cdx-code-language-select:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* 자동 감지 버튼 */
.cdx-code-detect-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.cdx-code-detect-btn:hover {
    background: #e8e8e8;
    border-color: #4a90e2;
    color: #4a90e2;
}

.cdx-code-detect-btn:active {
    transform: scale(0.98);
}

/* 코드 입력 영역 (Textarea) */
.cdx-code-textarea {
    width: 100%;
    min-height: 300px !important;
    max-height: 600px;
    padding: 16px;
    border: none;
    outline: none;
    resize: vertical;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: transparent !important;
    tab-size: 4;
    -moz-tab-size: 4;
    position: relative;
    z-index: 2;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
    caret-color: #333;
}

.cdx-code-textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

.cdx-code-textarea:focus {
    background: transparent !important;
}

/* 하이라이팅 오버레이 컨테이너 */
.cdx-code-editor-container {
    position: relative;
    background: #ffffff;
}

/* 하이라이팅된 코드 영역 (배경) */
.cdx-code-highlighted {
    position: relative;
    width: 100%;
    min-height: 300px;
    max-height: 600px;
    padding: 16px;
    margin: 0;
    overflow: auto;
    pointer-events: auto;
    z-index: 1;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre;
    background: #2d2d2d;
    color: #f8f8f2;
    border-radius: 4px;
    outline: none;
}

.cdx-code-highlighted code {
    display: block;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: pre;
    background: transparent !important;
}

/* 복사 버튼 스타일 (Prism.js Toolbar) */
div.code-toolbar {
    position: relative;
}

div.code-toolbar>.toolbar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

div.code-toolbar>.toolbar button {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

div.code-toolbar>.toolbar button:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

div.code-toolbar>.toolbar button:active {
    transform: scale(0.95);
}

/* ============================================
   이미지 블록 스타일
   ============================================ */
.editorjs-container .image-tool__image {
    border-radius: 6px;
    overflow: hidden;
    margin: 1em 0;
}

.editorjs-container .image-tool__image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.editorjs-container .image-tool__caption {
    margin-top: 10px;
    padding: 8px;
    font-size: 14px;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* 이미지 정렬 스타일 */
.image-tool__wrapper.align-left,
.image-tool__controls-wrapper.align-left {
    text-align: left;
}

.image-tool__wrapper.align-center,
.image-tool__controls-wrapper.align-center {
    text-align: center;
}

.image-tool__wrapper.align-right,
.image-tool__controls-wrapper.align-right {
    text-align: right;
}

.image-tool__image-holder {
    max-width: 100%;
}

/* 컨트롤 wrapper - 이미지 정렬을 따라감 */
.image-tool__controls-wrapper {
    margin-top: 10px;
}

/* 이미지 컨트롤 (슬라이더 + 정렬) - 고정 크기 */
.image-tool__controls {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 360px;
    max-width: 100%;
    display: inline-block;
}

.image-control-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 정렬 버튼 */
.align-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.align-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
    background: #fff;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.align-btn:hover {
    border-color: #4a90e2;
    background: #f0f7ff;
    color: #4a90e2;
}

.align-btn.active {
    background: #4a90e2;
    border-color: #4a90e2;
    color: #fff;
}

.align-btn svg {
    width: 16px;
    height: 16px;
}

/* 슬라이더 그룹 */
.size-slider-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.slider-label span {
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-value {
    color: #4a90e2;
    font-size: 15px;
}

/* 슬라이더 스타일 */
.size-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
    position: relative;
}

/* 슬라이더 트랙 (채워진 부분) */
.size-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

.size-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

/* 슬라이더 썸 */
.size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #4a90e2;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    margin-top: -6px;
}

.size-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(74, 144, 226, 0.4);
}

.size-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #4a90e2;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.size-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(74, 144, 226, 0.4);
}

.size-slider:focus {
    outline: none;
}

/* 다크모드 지원 */
.editorjs-theme-dark .image-tool__controls {
    background: #2d2d2d;
    border-color: #3d3d3d;
}

.editorjs-theme-dark .slider-label {
    color: #e0e0e0;
}

.editorjs-theme-dark .align-btn {
    background: #1e1e1e;
    border-color: #3d3d3d;
    color: #e0e0e0;
}

.editorjs-theme-dark .align-btn:hover {
    background: #3a3a3a;
    border-color: #4a90e2;
}

.editorjs-theme-dark .align-btn.active {
    background: #4a90e2;
    border-color: #4a90e2;
    color: #fff;
}

.editorjs-theme-dark .size-slider {
    background: linear-gradient(to right, #3d3d3d 0%, #4a90e2 50%, #3d3d3d 100%);
}

.rhymix-attaches-error .error-title {
    margin: 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #d32f2f;
}

.rhymix-attaches-error .error-message {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.rhymix-attaches-error .retry-button {
    margin-top: 16px;
    padding: 10px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rhymix-attaches-error .retry-button:hover {
    background: #3a7bc8;
}

/* 이미지/파일 업로더 공통 UI */
.rhymix-uploader-wrapper {
    margin: 1em 0;
    width: 100%;
}

.rhymix-uploader-dropzone {
    box-sizing: border-box;
    width: 100%;
    min-height: 150px;
    border: 2px dashed #5B53FF;
    border-radius: 12px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rhymix-uploader-dropzone:hover {
    background-color: #f8f9fa;
}

.rhymix-uploader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
}

.rhymix-uploader-icon svg {
    display: block;
}

.rhymix-uploader-text {
    font-size: 16px;
    font-weight: 500;
    color: #5B53FF;
}

/* 다크모드 지원 */
.editorjs-theme-dark .rhymix-uploader-dropzone {
    background-color: #2d2d2d;
    border-color: #5B53FF;
}

.editorjs-theme-dark .rhymix-uploader-dropzone:hover {
    background-color: #3a3a3a;
}

.editorjs-theme-dark .rhymix-uploader-text {
    color: #7b75ff;
}

/* 업로드 중 상태 */
.rhymix-image-uploading,
.rhymix-attaches-uploading {
    padding: 30px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1em 0;
}

/* ============================================
   파일 첨부 블록 스타일
   ============================================ */
.editorjs-container .cdx-attaches {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin: 1em 0;
}

.editorjs-container .cdx-attaches__file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.editorjs-container .cdx-attaches__file-icon {
    width: 40px;
    height: 40px;
    background: #4a90e2;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.editorjs-container .cdx-attaches__file-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.editorjs-container .cdx-attaches__file-size {
    font-size: 12px;
    color: #666;
}

.editorjs-container .cdx-attaches__download-button {
    padding: 8px 16px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.editorjs-container .cdx-attaches__download-button:hover {
    background: #3a7bc8;
}

/* ============================================
   임베드 블록 스타일
   ============================================ */
.editorjs-container .embed-tool {
    margin: 1em 0;
}

.editorjs-container .embed-tool__content {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 비율 */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.editorjs-container .embed-tool__content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.editorjs-container .embed-tool__caption {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* ============================================
   기타 블록 스타일
   ============================================ */

/* 인용 블록 */
.editorjs-container .cdx-quote {
    border-left: 4px solid #4a90e2;
    padding-left: 20px;
    margin: 1em 0;
    font-style: italic;
    color: #555;
}

/* 경고 블록 */
.editorjs-container .cdx-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 1em 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.editorjs-container .cdx-warning::before {
    content: "⚠️";
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.5;
}

.editorjs-container .cdx-warning__content {
    flex: 1;
}

.editorjs-container .cdx-warning__title {
    font-weight: 600;
    font-size: 16px;
    color: #856404;
    margin: 0 0 8px 0;
    display: block;
}

.editorjs-container .cdx-warning__message {
    font-size: 14px;
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

.editorjs-container .tc-table td {
    border: 1px solid #e0e0e0;
    padding: 10px;
}

/* ============================================
   파일 업로드 정보
   ============================================ */
.editorjs-file-info {
    margin-top: 15px;
    padding: 10px;
    background: #f0f7ff;
    border: 1px solid #d0e7ff;
    border-radius: 4px;
}

.editorjs-file-info .file-upload-notice {
    margin: 0;
    font-size: 13px;
    color: #4a90e2;
}

/* ============================================
   자동 저장 메시지
   ============================================ */
.editor_autosaved_message {
    margin-top: 10px;
    font-size: 12px;
    color: #28a745;
    font-style: italic;
}

/* ============================================
   반응형 디자인
   ============================================ */
@media (max-width: 768px) {
    .editorjs-container {
        padding: 15px;
    }

    .editorjs-container pre[class*="language-"] {
        font-size: 12px;
        padding: 0.8em;
    }

    div.code-toolbar>.toolbar {
        top: 5px;
        right: 5px;
    }

    div.code-toolbar>.toolbar button {
        padding: 4px 8px;
        font-size: 11px;
    }
}

.ce-toolbar__plus:hover,
.ce-toolbar__settings-btn:hover {
    background: rgba(74, 144, 226, 0.1);
}

.ce-popover {
    border-radius: 6px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.ce-inline-toolbar {
    border-radius: 6px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

/* ============================================
   추가 블록 스타일 (list, checklist, delimiter, embed, raw)
   ============================================ */

/* 구분선 */
.editorjs-delimiter,
.ce-delimiter {
    text-align: center;
    margin: 2em 0;
    font-size: 24px;
    color: #ccc;
    letter-spacing: 10px;
    line-height: 1;
}

/* 리스트 */
.editorjs-list {
    padding-left: 40px;
    margin: 1em 0;
}

.editorjs-list li {
    margin: 0.5em 0;
    line-height: 1.6;
}

/* 체크리스트 */
.editorjs-checklist {
    list-style: none;
    padding-left: 0;
    margin: 1em 0;
}

.editorjs-checklist .checklist-item {
    display: flex;
    align-items: flex-start;
    margin: 0.5em 0;
    line-height: 1.6;
}

.editorjs-checklist input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
    cursor: default;
    flex-shrink: 0;
}

.editorjs-checklist .checklist-text {
    flex: 1;
}

/* 임베드 (YouTube 등) */
.editorjs-embed {
    margin: 1.5em 0;
}

.editorjs-embed .embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 비율 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.editorjs-embed .embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100%;
    border: 0;
}

.editorjs-embed .embed-caption {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Raw HTML */
.editorjs-raw {
    margin: 1em 0;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #e0e0e0;
    border-radius: 4px;
}

/* 테이블 */
.editorjs-table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.editorjs-table td {
    border: 1px solid #e0e0e0;
    padding: 10px;
}

/* ============================================
   편집 중 리스트 스타일 (EditorJS 에디터 내부)
   ============================================ */

/* 순서 있는 리스트 (편집 중) */
.cdx-list--ordered {
    list-style: decimal;
    padding-left: 40px;
}

.cdx-list--ordered .cdx-list__item {
    list-style: decimal;
}

/* 순서 없는 리스트 (편집 중) */
.cdx-list--unordered {
    list-style: disc;
    padding-left: 40px;
}

.cdx-list--unordered .cdx-list__item {
    list-style: disc;
}

/* 리스트 아이템 공통 */
.cdx-list__item {
    padding: 5px 0;
    line-height: 1.6;
}

/* ============================================
   결과 화면 리스트 스타일
   ============================================ */

/* 순서 없는 리스트 (점 표시) */
.editorjs-content ul.editorjs-list {
    list-style: disc;
    padding-left: 40px;
}

.editorjs-content ul.editorjs-list li {
    list-style: disc;
}

/* 순서 있는 리스트 (숫자 표시) */
.editorjs-content ol.editorjs-list {
    list-style: decimal;
    padding-left: 40px;
}

.editorjs-content ol.editorjs-list li {
    list-style: decimal;
}

/* ============================================
   결과 화면 경고 블록 스타일
   ============================================ */
.editorjs-content .cdx-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 1em 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.editorjs-content .cdx-warning::before {
    content: "⚠️";
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.5;
}

.editorjs-content .cdx-warning__content {
    flex: 1;
}

.editorjs-content .cdx-warning__title {
    font-weight: 600;
    font-size: 16px;
    color: #856404;
    margin: 0 0 8px 0;
    display: block;
}

.editorjs-content .cdx-warning__message {
    font-size: 14px;
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   파일 업로드 컨테이너 (CKEditor 통합)
   ============================================ */
.xefu-container {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.xefu-dropzone {
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #fff;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.xefu-dropzone:hover,
.xefu-dropzone.dragover {
    border-color: #4a90e2;
    background: #f0f7ff;
}

.xefu-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.xefu-btn:hover {
    background: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.xefu-btn.fileinput-button {
    position: relative;
    overflow: hidden;
}

.xefu-btn.fileinput-button input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    opacity: 0;
    font-size: 200px;
    direction: ltr;
    cursor: pointer;
}

.xefu-dropzone-message {
    margin: 15px 0;
    font-size: 14px;
    color: #666;
}

.upload_info {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #888;
}

.xefu-progress-status {
    margin: 15px 0;
    font-size: 14px;
    font-weight: 500;
    color: #4a90e2;
}

.xefu-progressbar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.xefu-progressbar>div {
    height: 100%;
    background: #4a90e2;
    transition: width 0.3s ease;
}

.xefu-controll {
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.xefu-list {
    margin-top: 15px;
}

.xefu-list-images ul,
.xefu-list-files ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.xefu-list-images li {
    width: 120px;
    height: 120px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.xefu-list-images li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xefu-list-files li {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
}

.xefu-list-files li .file-icon {
    width: 40px;
    height: 40px;
    background: #4a90e2;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    margin-right: 12px;
}

.xefu-list-files li .file-info {
    flex: 1;
}

.xefu-list-files li .file-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.xefu-list-files li .file-size {
    font-size: 12px;
    color: #666;
}

/* 다크모드 지원 */
.editorjs-theme-dark .xefu-container {
    background: #2d2d2d;
    border-color: #3d3d3d;
}

.editorjs-theme-dark .xefu-dropzone {
    background: #1e1e1e;
    border-color: #3d3d3d;
}

.editorjs-theme-dark .xefu-dropzone:hover {
    border-color: #4a90e2;
    background: #2a2a3a;
}

.editorjs-theme-dark .xefu-list-images li,
.editorjs-theme-dark .xefu-list-files li {
    background: #1e1e1e;
    border-color: #3d3d3d;
}

.editorjs-theme-dark .xefu-list-files li .file-name {
    color: #e0e0e0;
}

/* ============================================
   게시글 보기 화면에서 첨부파일 목록 숨기기
   ============================================ */
/* EditorJS 사용 시 본문에 첨부파일이 포함되므로 하단 목록 불필요 */
.document_contents+.attached_file,
.board_read .attached_file,
.read_footer .attached_file,
[class*="attached"] {
    display: none !important;
}