/* Reaproveita estilos de drop-zone do anonimizador */
.di-drop {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-card);
    transition: all var(--t);
    margin-bottom: 2rem;
}
.di-drop.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.di-drop-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    color: var(--text-muted);
}
.di-drop-title {
    font-size: 1.2rem; font-weight: 600;
    margin-bottom: 0.5rem;
}
.di-drop-or {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0.75rem 0;
}
.di-drop-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--accent);
    color: white;
    border: 0;
    border-radius: 50px;
    font-family: inherit; font-weight: 600; font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--t);
}
.di-drop-btn:hover { background: var(--accent-hover); }
.di-drop-hint {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.di-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-xs);
    color: var(--red);
    font-size: 0.85rem;
}

.di-analyzing {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}
.di-analyzing-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.di-analyzing-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.di-analyzing-file {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-secondary);
    word-break: break-all;
}
.di-spinner {
    width: 38px; height: 38px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: di-spin 0.8s linear infinite;
}
@keyframes di-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .di-spinner { animation-duration: 2s; }
}

.di-file-info {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}
.di-file-meta {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.di-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}
@media (max-width: 1000px) { .di-layout { grid-template-columns: 1fr; } }

.di-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.di-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}
.di-table th {
    text-align: left;
    padding: 0.7rem 0.9rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    white-space: nowrap;
}
.di-table th.right, .di-table td.right { text-align: right; }
.di-table td {
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.di-table tr:last-child td { border-bottom: 0; }
.di-table tr:hover td { background: rgba(255,255,255,0.02); }
.di-table tr.selected td {
    background: var(--accent-soft);
    color: var(--accent);
}
.di-table .col-name { font-weight: 600; }
.di-type-pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 50px;
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.di-type-pill.numeric { background: rgba(100,181,246,0.14); color: var(--hl-blue); }
.di-type-pill.string { background: rgba(240,98,146,0.14); color: var(--hl-pink); }
.di-type-pill.date { background: rgba(186,104,200,0.14); color: var(--hl-purple); }
.di-type-pill.boolean { background: rgba(255,235,59,0.18); color: var(--yellow); }
.di-type-pill.empty { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.di-missing-bar {
    display: inline-block;
    width: 50px; height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 6px;
}
.di-missing-fill { height: 100%; background: var(--red); }
.di-summary {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
}

.di-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.di-detail h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    word-break: break-word;
}
.di-detail .type-line {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}
.di-detail h4 {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}
.di-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.di-stat-cell {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0.5rem 0.7rem;
}
.di-stat-cell .label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.di-stat-cell .value {
    color: var(--text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 0.92rem;
    margin-top: 2px;
}
.di-detail-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1rem 0;
    text-align: center;
}

.di-histogram {
    display: flex; align-items: end;
    gap: 2px;
    height: 100px;
    padding: 4px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
}
.di-bin {
    flex: 1;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    min-height: 1px;
    position: relative;
}
.di-bin-tip {
    display: none;
    position: absolute;
    bottom: 100%; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    margin-bottom: 4px;
    pointer-events: none;
    z-index: 10;
}
.di-bin:hover .di-bin-tip { display: block; }

.di-top {
    list-style: none;
    margin: 0; padding: 0;
}
.di-top-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.di-top-item:last-child { border-bottom: 0; }
.di-top-value {
    flex: 1;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}
.di-top-count {
    color: var(--accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.di-actions {
    display: flex; gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.di-action-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--t);
}
.di-action-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.di-action-btn.primary { background: var(--accent); color: white; border-color: var(--accent); font-weight: 600; }
.di-action-btn.primary:hover { background: var(--accent-hover); }
.di-action-btn svg { width: 14px; height: 14px; }

@media (max-width: 700px) {
    .di-table-wrap { overflow-x: auto; }
    .di-table { min-width: 700px; }
    .di-drop { padding: 2rem 1rem; }
}
