/* Confluence Connector - Specific Styles Only */
/* Base styles from base.css and home.css are inherited */


/* Connection status specific styling */
.connection-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.connection-indicator .connection-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-text-secondary);
}

.connection-indicator.loading .connection-icon {
    background-color: var(--color-status-warning);
    animation: pulse 1.5s infinite;
}

.connection-indicator.connected .connection-icon {
    background-color: var(--color-status-success);
}

.connection-indicator.error .connection-icon {
    background-color: var(--color-status-error);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Default space indicator */
.default-indicator {
    font-size: 10px;
    color: var(--color-brand-primary);
    background: var(--color-brand-primary-15);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Space and page item containers */
.spaces-container,
.pages-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.space-item,
.page-item {
    border: 1px solid var(--color-border-subtle);
    border-radius: 8px;
    padding: 12px;
    background: var(--color-surface);
    cursor: pointer;
    transition: all 0.2s ease;
}

.space-item:hover,
.page-item:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border);
}

.space-item.selected,
.page-item.selected {
    background: var(--color-brand-primary-15);
    border-color: var(--color-brand-primary);
}

/* Space specific styling */
.space-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.space-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.space-key {
    font-size: 12px;
    color: var(--color-text-secondary);
    background: var(--color-neutral-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.space-type {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.space-description {
    font-size: 12px;
    color: var(--color-text-tertiary);
    line-height: 1.4;
}

/* Page specific styling */
.page-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}

.page-metadata {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--color-text-secondary);
}

.page-version {
    background: var(--color-neutral-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.page-date {
    white-space: nowrap;
}

.page-children {
    margin-left: 16px;
    border-left: 1px solid var(--color-border-subtle);
    padding-left: 8px;
}

/* Tree structure styles */
.page-tree-item {
    display: flex;
    flex-direction: column;
}

.page-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    min-height: 40px;
}

.page-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.page-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Fake Material Design Checkbox */
.page-checkbox {
    min-width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

/* New compact button replacing the fake checkbox */
.page-checkbox .add-remove-btn {
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    padding: 0 6px;
    border: 1px solid var(--color-border);
    background: white;
    color: var(--color-text-primary);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.page-checkbox .add-remove-btn:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-text-secondary);
}

.page-checkbox .add-remove-btn.remove {
    border-color: var(--color-status-error);
    color: var(--color-status-error);
    background: white;
}

.page-checkbox .add-remove-btn.mixed {
    border-style: dashed;
}

.tree-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--color-text-secondary);
    padding: 2px;
    border-radius: 2px;
    transition: all 0.2s ease;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tree-toggle:hover {
    background: var(--color-neutral-100);
    color: var(--color-text-primary);
}

.tree-spacer {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Update page-item styles to work with tree structure */
.page-item {
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    background: var(--color-surface);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    padding: 0; /* Remove default padding since we use page-content */
}

.page-item:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border);
}

.page-item.selected {
    background: var(--color-brand-primary-15);
    border-color: var(--color-brand-primary);
}

/* Selection Summary */
.selection-summary {
    background: var(--color-brand-primary-15);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
}

.summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

#selectionCount {
    color: var(--color-brand-primary);
    font-weight: 500;
}

.tree-controls-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.selection-controls-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Pagination */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.btn-control {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid var(--color-border-subtle);
    border-radius: 4px;
    background: var(--color-surface);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-control:hover:not(:disabled) {
    background: var(--color-surface-hover);
    border-color: var(--color-border);
}

.btn-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pageInfoText {
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* Actions */
.action-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-container .fake-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
    font-family: 'Material Symbols Rounded';
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' -25, 'opsz' 24;
}

.checkbox-container .fake-checkbox::before {
    content: 'check_box_outline_blank';
}

.checkbox-container .fake-checkbox.checked::before {
    content: 'check_box';
}

.setting-description {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.action-description {
    font-size: 12px;
    color: var(--color-text-tertiary);
    text-align: center;
    margin-top: 4px;
}

/* Space/Page info panels */
.space-info,
.page-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 12px;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.space-details h4,
.page-details h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--color-text-primary);
}

.space-details p {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Preview controls */
.preview-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Content preview area */
.content-preview-area {
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    background: #fafafa;
    font-size: 14px;
    line-height: 1.6;
}

.original-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.markdown-content {
    font-family: var(--font-family-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-neutral-50);
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    color: var(--color-text-primary);
    margin-top: 16px;
    margin-bottom: 8px;
}

.markdown-content h1 {
    font-size: 18px;
}

.markdown-content h2 {
    font-size: 16px;
}

.markdown-content h3 {
    font-size: 14px;
}

.markdown-content p {
    margin: 0;
}

.markdown-content code {
    background: var(--color-neutral-100);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
}

.markdown-content pre {
    background: var(--color-neutral-100);
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    white-space: pre-wrap;
    margin: 6px 0;
}

.markdown-content ul,
.markdown-content ol {
    padding-left: 20px;
    margin: 0;
}

.markdown-content li {
    margin: 0;
}

.markdown-content blockquote {
    border-left: 3px solid var(--color-border);
    padding-left: 12px;
    margin: 8px 0;
    color: var(--color-text-secondary);
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid var(--color-border-subtle);
    padding: 6px 8px;
    text-align: left;
}

.markdown-content th {
    background: var(--color-neutral-100);
    font-weight: 600;
}

/* Confluence-specific modal customizations */
.modal-content {
    max-width: 800px;  /* Larger for confluence content */
    max-height: 80vh;
}

.modal-body {
    max-height: calc(80vh - 120px);
}

.modal-body pre {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Confluence Connector Styles */

.test-connection-btn {
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.test-connection-btn:hover {
    background-color: #2980b9;
}

.test-connection-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/* Spaces and Pages Lists */
.space-icon,
.page-icon {
    margin-right: 10px;
    font-size: 16px;
    opacity: 0.7;
}

/* Consolidated with earlier .space-details and .page-details styles */

/* Page hierarchy indication */
.page-item.has-children {
    position: relative;
}

.page-item.has-children::after {
    content: '▸';
    position: absolute;
    right: 10px;
    opacity: 0.5;
}

.page-item.has-children:hover::after {
    opacity: 1;
}

/* Pagination Controls */
.page-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background-color: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background-color: #f8f9fa;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#paginationInfo {
    font-size: 12px;
    color: #666;
}

/* Detail Items */
.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
}

.detail-label {
    font-weight: 500;
    color: #666;
    min-width: 80px;
    font-size: 12px;
}

.detail-value {
    flex: 1;
    font-size: 12px;
    word-break: break-word;
}

.path-breadcrumbs {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

/* Preview Tabs */
.preview-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background-color: transparent;
    color: #666;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    background-color: #f8f9fa;
    color: #333;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Content Preview */
.content-preview {
    display: none;
    padding: 16px;
    background: var(--color-surface);
    border-radius: 8px;
    max-height: 600px;
    overflow-y: auto;
}

.content-preview.active {
    display: block;
}

/* Full-width preview layout */
.preview-section {
    margin: 0 0 24px 0;
}

.preview-section:last-child { margin-bottom: 0; }

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.preview-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.preview-meta {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.preview-body {
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-surface);
    padding: 12px;
}

/* Ensure preview tabs carry a surface background and enable scrolling */
.tab-content[data-tab-type="original"],
.tab-content[data-tab-type="markdown"] {
    background: var(--color-surface);
    overflow-y: auto;
}

/* Preview Actions */
.preview-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.action-btn.primary {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.action-btn.primary:hover {
    background-color: #2980b9;
}

.action-btn.secondary {
    background-color: white;
    color: #333;
}

.action-btn.secondary:hover {
    background-color: #f8f9fa;
}

/* Loading Modal */
.loading-modal .modal-content {
    text-align: center;
    padding: 30px;
    max-width: 300px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f8f9fa;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Markdown Preview Modal */
.markdown-modal .modal-content {
    max-width: 800px;
    max-height: 600px;
}

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

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    margin-bottom: 20px;
}

.markdown-textarea {
    width: 100%;
    height: 400px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    color: #333;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
    white-space: pre-wrap;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Fake Material Design Checkbox - Label Style */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}

.checkbox-label .fake-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
    font-family: 'Material Symbols Rounded';
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' -25, 'opsz' 24;
}

.checkbox-label .fake-checkbox::before {
    content: 'check_box_outline_blank';
}

.checkbox-label .fake-checkbox.checked::before {
    content: 'check_box';
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Pages progress */
.pages-progress {
    margin: 8px 0 12px 0;
}
.pages-progress .progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pages-progress .progress-bar-track {
    flex: 1;
    height: 6px;
    background: var(--color-surface-2);
    border-radius: 999px;
    overflow: hidden;
}
.pages-progress .progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    transition: width 0.2s ease;
}
.pages-progress .progress-bar-fill.indeterminate {
    position: relative;
    width: 30%;
    animation: pages-progress-indeterminate 1.2s infinite;
}
.pages-progress .progress-bar-text {
    font-size: 12px;
    color: var(--color-text-secondary);
    min-width: 120px;
    text-align: right;
}

.pages-status {
    margin: 4px 0 8px 0;
    font-size: 12px;
    color: var(--color-text-secondary);
}

@keyframes pages-progress-indeterminate {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(10%); }
    100% { transform: translateX(120%); }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Error states */
.error {
    color: #e74c3c;
    font-style: italic;
}

/* Responsive Design */
/* Confluence-specific responsive styles */
@media (max-width: 768px) {
    .spaces-container,
    .pages-container {
        max-height: 200px;
    }

    .content-preview {
        max-height: 300px;
    }

    .modal-content {
        max-height: 95%;
        padding: 15px;
    }

    .markdown-textarea {
        height: 300px;
    }
}

/* Confluence Connector - Specific Styles Only */
/* Base styles from base.css and utilities.css are inherited */

/* Notification styles are now handled by the global toast system */

/* Diagnostic Modal Styles */
.diagnostic-content {
    max-height: 600px;
    overflow-y: auto;
}

.diagnostic-summary {
    padding: 16px;
    background: var(--color-surface);
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
}

.diagnostic-section {
    margin-bottom: 16px;
}

.diagnostic-section h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.diagnostic-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diagnostic-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-surface);
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.diagnostic-step.passed {
    border-color: var(--color-status-success);
    background: var(--color-status-success-15);
}

.diagnostic-step.failed {
    border-color: var(--color-status-error);
    background: var(--color-status-error-15);
}

.diagnostic-step.warning {
    border-color: var(--color-status-warning);
    background: var(--color-status-warning-15);
}

.diagnostic-step.checking {
    border-color: var(--color-status-warning);
    background: var(--color-status-warning-15);
}

.diagnostic-step.attempting {
    border-color: var(--color-status-warning);
    background: var(--color-status-warning-15);
}

.diagnostic-step.blocked {
    border-color: var(--color-status-error);
    background: var(--color-status-error-15);
}

.diagnostic-step.processing {
    border-color: var(--color-status-warning);
    background: var(--color-status-warning-15);
}

.diagnostic-step.success {
    border-color: var(--color-status-success);
    background: var(--color-status-success-15);
}

.diagnostic-step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.diagnostic-step.passed .diagnostic-step-icon {
    background: var(--color-status-success);
    color: white;
}

.diagnostic-step.failed .diagnostic-step-icon,
.diagnostic-step.blocked .diagnostic-step-icon {
    background: var(--color-status-error);
    color: white;
}

.diagnostic-step.warning .diagnostic-step-icon,
.diagnostic-step.checking .diagnostic-step-icon,
.diagnostic-step.attempting .diagnostic-step-icon,
.diagnostic-step.processing .diagnostic-step-icon {
    background: var(--color-status-warning);
    color: white;
}

.diagnostic-step.success .diagnostic-step-icon {
    background: var(--color-status-success);
    color: white;
}

.diagnostic-step-text {
    flex: 1;
    font-size: 13px;
    color: var(--color-text-primary);
}

.diagnostic-info {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 12px;
}

.diagnostic-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.diagnostic-info-row:last-child {
    margin-bottom: 0;
}

.diagnostic-info-label {
    font-weight: 500;
    color: var(--color-text-secondary);
    font-size: 12px;
}

.diagnostic-info-value {
    font-family: monospace;
    font-size: 12px;
    color: var(--color-text-primary);
    word-break: break-all;
}

.diagnostic-info-value.success {
    color: var(--color-status-success);
}

.diagnostic-info-value.error {
    color: var(--color-status-error);
}

.diagnostic-info-value.warning {
    color: var(--color-status-warning);
}

.diagnostic-recommendation {
    background: var(--color-status-info-15);
    border: 1px solid var(--color-status-info);
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    color: var(--color-text-primary);
    line-height: 1.4;
}

/* ==============================================
   HTTP Test Tools Styles
   ============================================== */
.diagnostic-tools {
    padding: 16px;
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.tool-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.btn-test {
    background: var(--color-background-primary);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-test:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
}

.btn-test:active {
    transform: translateY(1px);
}

.test-results {
    margin-top: 16px;
    padding: 12px;
    background: var(--color-background-secondary);
    border-radius: 4px;
    border: 1px solid var(--color-border);
}

.test-results h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.test-output {
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.4;
}

.test-result-item {
    padding: 4px 8px;
    margin-bottom: 4px;
    border-radius: 3px;
    border-left: 3px solid transparent;
}

.test-result-item.success {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: var(--color-status-success);
    color: var(--color-status-success);
}

.test-result-item.error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--color-status-error);
    color: var(--color-status-error);
}

.test-result-item.pending {
    background: rgba(251, 191, 36, 0.1);
    border-left-color: var(--color-status-warning);
    color: var(--color-status-warning);
}

.test-timestamp {
    opacity: 0.7;
    margin-right: 8px;
}

/* Test result styling */
.test-result-detailed {
    margin: 8px 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}

.test-result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-surface-variant);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
}

.test-result-header:hover {
    background: var(--color-surface-hover);
}

.test-expand-btn {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 2px;
}

.test-expand-btn:hover {
    background: var(--color-surface);
}

.test-result-details {
    padding: 12px;
    background: var(--color-surface);
}

.test-section {
    margin-bottom: 16px;
}

.test-section h6 {
    margin: 0 0 8px 0;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.test-detail-item {
    margin-bottom: 8px;
    font-size: 12px;
}

.test-detail-item strong {
    color: var(--color-text-primary);
    min-width: 80px;
    display: inline-block;
}

.test-detail-item.error {
    color: var(--color-error);
}

.test-json {
    background: var(--color-surface-variant);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.4;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 4px 0;
}

.test-detail-item code {
    background: var(--color-surface-variant);
    padding: 2px 4px;
    border-radius: 2px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 11px;
    word-break: break-all;
}

/* Status-based styling for test results */
.test-result-detailed.success {
    border-left: 4px solid var(--color-success);
}

.test-result-detailed.error {
    border-left: 4px solid var(--color-error);
}
