/**
 * Debug Popup - Uses card-style theme variables
 */

.debug-popup {
    position: fixed;
    z-index: 10000;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-large);
    /* Animation - start hidden */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Show state with animation */
.debug-popup.show {
    opacity: 1;
    transform: scale(1);
}

.debug-popup-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

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

.debug-popup-copy-btn {
    background: transparent;
    border: none;
    color: var(--blue-primary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.debug-popup-copy-btn:hover {
    background: var(--interactive-hover);
}

.debug-popup-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    min-height: 0;
}

.debug-popup-line-numbers {
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    padding: 16px 12px;
    text-align: right;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    user-select: none;
    border-inline-end: 1px solid var(--border-subtle);
    flex-shrink: 0;
    white-space: pre;
    overflow-y: hidden;
}

.debug-popup-json {
    flex: 1;
    margin: 0;
    padding: 16px 20px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
    overflow: auto;
    white-space: pre;
}

.debug-popup-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: end;
    flex-shrink: 0;
}
