/* Draggable popup component */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup {
    position: fixed;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.2));
    max-width: 1120px;
    width: 90%;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: grab;
    user-select: none;
}

.popup-header:active {
    cursor: grabbing;
}

.popup-header .btn-icon {
    font-size: 20px;
    line-height: 1;
}

.popup-body {
    padding: 16px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}
