/**
 * Styles cho JSON Viewer
 */

/* Dialog styles */
.fong-inspector-dialog {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fong-inspector-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.fong-inspector-result {
    max-height: 400px;
    overflow: auto;
}

.fong-inspector-result.hidden {
    display: none;
}

/* JSON Viewer styles */
.fong-json-viewer-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 5px;
    cursor: pointer;
    border-radius: 3px;
    margin-right: 5px;
}

.fong-json-viewer-btn:hover {
    color: #0073aa;
}

.fong-json-viewer-btn.active {
    color: #0073aa;
}

.fong-json-viewer-container {
    display: none;
    background: white;
    border-top: 1px solid #ddd;
    margin-top: 10px;
}

.fong-json-viewer-container.active {
    display: block;
    height: 400px;
}

.fong-json-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1;
}

.fong-json-viewer-header h3 {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.fong-json-viewer-content {
    padding: 15px;
    height: calc(100% - 40px);
    overflow: auto;
}

/* Custom scrollbar */
.fong-json-viewer-content::-webkit-scrollbar,
.fong-inspector-result::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.fong-json-viewer-content::-webkit-scrollbar-track,
.fong-inspector-result::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.fong-json-viewer-content::-webkit-scrollbar-thumb,
.fong-inspector-result::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.fong-json-viewer-content::-webkit-scrollbar-thumb:hover,
.fong-inspector-result::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Notification styles */
.fong-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    z-index: 999999;
    display: none;
}

.fong-notification.error {
    background: #dc3232;
}
