/* AI Batch Processing Panel — góc dưới-phải, persistent qua route */
.ai-batch-panel {
    position: fixed;
    bottom: 0;
    right: 24px;
    z-index: 2000;
    width: 320px;
    background: #ffffff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0 -6px 24px rgba(31, 41, 55, 0.18);
    border: 1px solid #e5e7eb;
    border-bottom: none;
    overflow: hidden;
    font-family: inherit;
}

.ai-batch-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    cursor: pointer;
    user-select: none;
}

.ai-batch-panel__title {
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ai-batch-panel__title .fa-magic {
    font-size: 14px;
}

.ai-batch-panel__toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.15s ease;
}

.ai-batch-panel__toggle:hover,
.ai-batch-panel__toggle:focus {
    background: rgba(255, 255, 255, 0.28);
    outline: none;
}

.ai-batch-panel__body {
    max-height: 280px;
    overflow-y: auto;
    background: #ffffff;
}

.ai-batch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #1f2937;
    transition: background 0.15s ease;
}

.ai-batch-row:first-child {
    border-top: none;
}

.ai-batch-row__icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.ai-batch-row--running .ai-batch-row__icon {
    background: #ede9fe;
    color: #6d28d9;
}

.ai-batch-row--done .ai-batch-row__icon {
    background: #dcfce7;
    color: #15803d;
}

.ai-batch-row--error .ai-batch-row__icon {
    background: #fee2e2;
    color: #b91c1c;
}

.ai-batch-row__text {
    flex: 1 1 auto;
    font-weight: 500;
}

.ai-batch-row--clickable {
    cursor: pointer;
}

.ai-batch-row--clickable:hover {
    background: #f5f3ff;
}

.ai-batch-row--done .ai-batch-row__text {
    color: #15803d;
}

.ai-batch-row--error .ai-batch-row__text {
    color: #b91c1c;
}

.ai-batch-row__close {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
    border: none;
    padding: 0;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background 0.15s ease;
}

.ai-batch-row__close:hover,
.ai-batch-row__close:focus {
    color: #ffffff;
    background: #ef4444;
    outline: none;
}
