/* Lecture Editor - Admin editing for vision1/vision2 pages */

/* Save/Publish buttons in control panel */
.le-save-btn {
    background: #059669 !important;
    color: white !important;
    border-color: #059669 !important;
    font-weight: 600 !important;
}
.le-save-btn:hover:not(:disabled) {
    background: #047857 !important;
}
.le-save-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.le-publish-btn {
    background: #7c3aed !important;
    color: white !important;
    border-color: #7c3aed !important;
    font-weight: 600 !important;
}
.le-publish-btn:hover {
    background: #6d28d9 !important;
}

/* Editor overlay */
.le-editor-overlay {
    max-width: 900px;
    margin: 70px auto 40px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Image toolbar */
.le-img-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #1e293b;
    border-radius: 10px;
    flex-wrap: wrap;
}

.le-img-toolbar-title {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
}

.le-img-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
}

.le-img-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Status bar */
.le-status-bar {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    color: #64748b;
    font-family: 'Noto Sans KR', sans-serif;
}

/* Main textarea */
.le-textarea {
    width: 100%;
    min-height: calc(100vh - 250px);
    padding: 20px;
    border: 2px solid #2563eb;
    border-radius: 10px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #1e293b;
    background: #fefce8;
    resize: vertical;
    outline: none;
    tab-size: 2;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.le-textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Preview bar */
.le-preview-bar {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 8px 0;
}

.le-preview-btn {
    padding: 8px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #1e293b;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.2s;
}

.le-preview-btn:hover {
    background: #f1f5f9;
    border-color: #2563eb;
    color: #2563eb;
}

.le-revert-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
}

/* Close preview button */
.le-close-preview {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 70px auto 10px;
    padding: 12px 20px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    text-align: center;
}

.le-close-preview:hover {
    background: #b91c1c;
}

/* Toast notification */
.le-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: white;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s;
    z-index: 10001;
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}

.le-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.le-toast.success {
    background: #059669;
}

.le-toast.error {
    background: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .le-editor-overlay {
        margin-top: 60px;
        padding: 0 10px;
    }

    .le-textarea {
        font-size: 11px;
        padding: 12px;
        min-height: calc(100vh - 220px);
    }

    .le-img-toolbar {
        padding: 8px 10px;
    }

    .le-img-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    .le-save-btn, .le-publish-btn {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
}
