
/* DevFix — Ferramentas para developers (hub + páginas) */
.dt-page {
    max-width: var(--df-content-max);
    width: 100%;
    margin: 0 auto;
    padding: 40px var(--df-container-pad-x) 72px;
    box-sizing: border-box;
}

.dt-hero h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dt-hero p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 24px 0;
}

.dt-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 16px;
}

.dt-back:hover {
    text-decoration: underline;
}

/* Hub */
.dt-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.dt-hub-card {
    display: flex;
    flex-direction: column;
    padding: 18px 18px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.dt-hub-card:hover {
    border-color: var(--accent-2);
    box-shadow: var(--shadow-md);
}

.dt-hub-card-num {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.dt-hub-card h2 {
    margin: 6px 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dt-hub-card p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    flex: 1;
}

/* Ferramenta única */
.dt-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.dt-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.dt-row label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.dt-input,
.dt-select,
.dt-textarea {
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 10px 12px;
    background: var(--bg-raised);
    color: var(--text-primary);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.dt-textarea {
    min-height: 140px;
    resize: vertical;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.dt-textarea--tall {
    min-height: 220px;
}

.dt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.dt-btn--primary {
    background: var(--accent);
    color: var(--text-on-accent);
}

.dt-btn--primary:hover {
    background: var(--accent-hover);
}

.dt-btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.dt-btn--ghost:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--accent-soft);
}

.dt-btn--outline {
    background: rgba(43, 43, 45, 0.55);
    color: var(--text-primary);
    border: 1px solid rgba(168, 216, 200, 0.28);
}

.dt-btn--outline:hover {
    border-color: rgba(168, 216, 200, 0.5);
    background: rgba(168, 216, 200, 0.1);
    color: var(--text-primary);
}

.dt-btn--outline:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dt-stats {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.dt-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 8px;
}

.dt-success {
    color: var(--success);
    font-size: 0.85rem;
    margin-top: 8px;
}

.dt-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 720px) {
    .dt-two-col {
        grid-template-columns: 1fr;
    }
}

.dt-preview {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px;
    background: var(--bg-raised);
    font-size: 0.85rem;
}

.dt-preview mark.match {
    background: #fef08a;
    color: var(--text-primary);
    padding: 0 2px;
}

.dt-swatch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.dt-swatch {
    width: 44px;
    height: 44px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.dt-check-grid {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.dt-check-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

.dt-code-out {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 280px;
    overflow: auto;
    margin-top: 10px;
    padding: 12px;
    background: var(--bg-code);
    color: var(--text-code);
    border-radius: var(--r-md);
}

.sql-kw {
    color: #60a5fa;
    font-weight: 600;
}

.sql-str {
    color: #fbbf24;
}

.sql-num {
    color: #4ade80;
}

.sql-comment {
    color: #94a3b8;
}

.dt-inp-bar {
    display: flex;
    height: 18px;
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    margin: 8px 0;
}

.dt-inp-seg {
    min-width: 4px;
}

/* WhatsApp — escolha visual do modelo */
.dt-wa-models-head {
    margin: 24px 0 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.dt-wa-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

@media (max-width: 560px) {
    .dt-wa-choice-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}

.dt-wa-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 10px 14px;
    margin: 0;
    border: 2px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--bg-raised);
    cursor: pointer;
    font-family: var(--font-body);
    transition:
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease),
        background var(--dur) var(--ease);
}

.dt-wa-thumb:hover {
    border-color: var(--accent-2);
    background: var(--bg-surface);
}

.dt-wa-thumb.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--bg-surface);
}

.dt-wa-thumb-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dt-wa-thumb.is-selected .dt-wa-thumb-label {
    color: var(--accent);
}

.dt-wa-preview {
    width: 100%;
    height: 76px;
    border-radius: var(--r-md);
    background: linear-gradient(145deg, #e8eaef 0%, #dfe3ea 100%);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.dt-wa-preview--round .dt-wa-fab {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dt-wa-preview--pill .dt-wa-pill {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: #25d366;
    color: #F5F5F7;
    font-size: 9px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.dt-wa-preview--pill .dt-wa-pill span {
    white-space: nowrap;
}

.dt-wa-preview--tab .dt-wa-tabfake {
    position: absolute;
    bottom: 18px;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px 5px 6px;
    border-radius: 6px 0 0 6px;
    background: #25d366;
    color: #F5F5F7;
    font-size: 8px;
    font-weight: 700;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.12);
}

.dt-wa-waicon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dt-wa-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0 0 8px;
    min-height: 1.2em;
}

.dt-wa-link-muted {
    color: var(--text-muted);
    pointer-events: none;
    text-decoration: none;
}

/* ── Análise Bulk (CSV) no hub devtools.php ────────────────────────────── */
.dt-bulk-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    scroll-margin-top: 96px;
}

.dt-bulk-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dt-bulk-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dt-bulk-badge {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 4px 10px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--bg-raised);
    color: var(--text-muted);
}

.dt-bulk-lede {
    margin: 0 0 20px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}


.dt-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    margin-top: 24px;
}

.dt-bulk-export {
    margin-bottom: 0;
    flex: 1;
    max-width: 350px;
}

.dt-bulk-export-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
}

.dt-bulk-export-box svg {
    flex-shrink: 0;
    color: var(--accent);
}

.bulk-tab-field { margin-bottom: 20px; }

.bulk-tab-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.bulk-tab-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px;
    border: 2px dashed var(--border);
    border-radius: var(--r-md);
    background: var(--bg-surface);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
    color: var(--text-muted);
}

.bulk-tab-dropzone:hover,
.bulk-tab-dropzone--active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.bulk-tab-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.bulk-tab-droptext {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.bulk-tab-droptext strong { color: var(--accent); }

.bulk-tab-filename {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
}

.nettool-run-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--accent-glow);
    height: 48px;
}

.nettool-run-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: var(--accent-hover);
    box-shadow: 0 4px 16px var(--accent-glow);
}

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

.bulk-tab-info {
    margin-top: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 20px;
}

.bulk-tab-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.bulk-tab-info ol {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.8;
    padding-left: 20px;
    margin: 0;
}

.bulk-tab-info code {
    background: var(--bg-raised);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--accent);
}

.bulk-tab-example {
    margin-top: 16px;
    background: var(--bg-raised);
    border-radius: var(--r-sm);
    padding: 12px 16px;
}

.bulk-tab-example strong {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bulk-tab-example code {
    background: none;
    padding: 0;
    display: block;
    line-height: 1.8;
}

/* Gerador de favicon pack — upload estilizado (standalone e iframe) */
.dt-fav-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.dt-fav-file-wrap {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    margin: 0;
}

.dt-fav-file-input {
    position: absolute;
    width: 0.01px;
    height: 0.01px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.dt-fav-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px dashed rgba(168, 216, 200, 0.35);
    background: rgba(168, 216, 200, 0.08);
    color: var(--text-primary);
}

.dt-fav-file-wrap:hover .dt-fav-file-btn {
    border-color: rgba(168, 216, 200, 0.5);
    background: rgba(168, 216, 200, 0.12);
}

.dt-fav-file-wrap:focus-within .dt-fav-file-btn {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.dt-fav-section-label {
    margin: 16px 0 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.dt-fav-tags {
    min-height: 140px;
    font-family: var(--font-mono);
}

.dt-fav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.dt-fav-msg {
    min-height: 1.25em;
}
