/**
 * Editor.js Block Styles for Gars Knowledge Base
 */

/* Editor.js Container */
.gkb-editorjs-wrapper {
    margin: 20px 0;
}

#gkb-editor-container {
    min-height: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

/* Block rendering styles */
.gkb-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.gkb-table th,
.gkb-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.gkb-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.gkb-pdf-viewer {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.gkb-pdf-header {
    background: #f5f5f5;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gkb-pdf-header strong {
    font-size: 16px;
    color: #333;
}

.gkb-ppt-viewer {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.gkb-ppt-header {
    background: #f5f5f5;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.gkb-ppt-placeholder {
    padding: 60px 40px;
    text-align: center;
    background: #f9f9f9;
    color: #666;
}

.gkb-columns {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.gkb-column {
    flex: 1;
}

.gkb-embed {
    margin: 20px 0;
}

.gkb-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.gkb-warning strong {
    color: #856404;
    display: block;
    margin-bottom: 5px;
}

.gkb-checklist {
    margin: 20px 0;
}

/* PowerPoint slide navigation */
.gkb-slide-viewer {
    position: relative;
}

.gkb-slide-viewer .gkb-prev-slide:disabled,
.gkb-slide-viewer .gkb-next-slide:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gkb-slide-content {
    transition: opacity 0.3s ease;
}

.gkb-checklist-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    gap: 10px;
}

.gkb-checklist-item input[type="checkbox"] {
    margin: 0;
}

/* Button styles for PDF/PPT blocks */
.gkb-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.gkb-btn:hover {
    background: #005a87;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {
    .gkb-columns {
        flex-direction: column;
        gap: 10px;
    }
    
    .gkb-pdf-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .gkb-table {
        font-size: 14px;
    }
    
    .gkb-table th,
    .gkb-table td {
        padding: 8px;
    }
}