.knowledge-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.knowledge-viewer-container {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90vh;
    width: 800px;
    display: flex;
    flex-direction: column;
}

.knowledge-viewer-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.knowledge-viewer-header h2 {
    margin: 0;
    font-size: 18px;
    color: #23282d;
}

.knowledge-viewer-actions {
    display: flex;
    gap: 10px;
}

.knowledge-viewer-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.knowledge-viewer-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.knowledge-viewer-content {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background: #f9f9f9;
}

.knowledge-viewer-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.knowledge-viewer-content.content-type-json pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 4px;
}

.knowledge-viewer-footer {
    padding: 10px 20px;
    border-top: 1px solid #ddd;
    background: #f1f1f1;
    font-size: 12px;
    color: #666;
}

.knowledge-viewer-notification {
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 10px 15px;
    background: #00a32a;
    color: white;
    border-radius: 4px;
    animation: slideIn 0.3s ease;
}

.knowledge-viewer-notification.error {
    background: #d63638;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .knowledge-viewer-container {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .knowledge-viewer-actions {
        flex-direction: column;
        gap: 5px;
    }
}