/* Guia de Prompt Injection — estilos migrados de ia/template/prompt_injection.html
 * (US-1133, Fase 4). Tokenização conservadora: #f8f9fa -> var(--dpmg-gray) e
 * #333 -> var(--dpmg-text) (match exato com dpmg-tokens.css); demais valores
 * mantidos como no original. */

/* Blocos copiáveis */
.copy-box {
    background: var(--dpmg-gray);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--dpmg-text);
    white-space: pre-wrap;
    max-height: 320px;
    overflow-y: auto;
    line-height: 1.5;
}

.btn-copy {
    background: var(--dpmg-green);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s ease;
    margin-top: 0.75rem;
}

.btn-copy:hover {
    background: var(--dpmg-green-light);
    color: white;
}

.btn-copy:focus-visible {
    outline: var(--focus-outline);
    outline-offset: var(--focus-outline-offset);
    box-shadow: var(--focus-ring-outer);
}

.btn-copy.copied {
    background: #198754;
}

/* Checklist interativo */
.checklist-interactive {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.checklist-interactive li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
}

.checklist-interactive li:last-child {
    border-bottom: none;
}

.checklist-interactive input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--dpmg-green);
    cursor: pointer;
}

.checklist-interactive label {
    margin-bottom: 0;
    cursor: pointer;
    flex: 1;
}

.checklist-interactive input:checked + label,
.checklist-interactive li:has(input:checked) label {
    text-decoration: line-through;
    color: #6c757d;
}

/* Links de fonte */
.source-links {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.source-links a {
    margin-right: 0.75rem;
}
