/* ============================================================
   Apontamentos DNS — kpi-grid-5, total-badge,
   tabela, status-badge (reusado em Servidores), dns-empty,
   dns-info-footer. Extraído de app.css.
   (Toolbar usa o padrão global toolbar-padrao.)
   ============================================================ */
/* ============================================================
   Apontamentos DNS — padrão Gerenciar Apontamentos DNS
   ============================================================ */

/* Grade de 5 KPIs */
.kpi-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1199.98px) {
    .kpi-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .kpi-grid-5 {
        grid-template-columns: 1fr;
    }
}

/* Badge de total no header */
.total-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--app-border, #e5e7eb);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--app-text-muted, #6b7280);
    box-shadow: var(--app-shadow-sm);
    white-space: nowrap;
}

.total-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--app-primary-soft, #eff6ff);
    color: var(--app-primary, #2563eb);
    font-weight: 700;
    font-size: 12px;
    padding: 0 6px;
}

/* Tabela DNS */
#tabela-apontamentos thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8a94a6;
    font-weight: 600;
    border-bottom: 1px solid var(--app-border, #e5e7eb);
    white-space: nowrap;
    background: #f8fafc;
}

#tabela-apontamentos tbody td {
    vertical-align: middle;
    font-size: 13px;
}

.dns-domain {
    font-weight: 600;
    color: var(--app-text, #111827);
}

.dns-token code {
    font-size: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 2px 6px;
    max-width: 160px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-online {
    background: var(--app-success-soft, #dcfce7);
    color: var(--app-success, #16a34a);
}

.status-offline {
    background: var(--app-danger-soft, #fee2e2);
    color: var(--app-danger, #dc2626);
}

.status-noreg {
    background: #f1f5f9;
    color: #64748b;
}

/* Empty state da tabela */
.dns-empty {
    text-align: center;
    padding: 48px 20px;
}

.dns-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #eef2ff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 16px;
}

.dns-empty-title {
    font-weight: 800;
    font-size: 17px;
    color: var(--app-text, #111827);
    margin: 0 0 4px;
}

.dns-empty-sub {
    font-size: 13px;
    color: var(--app-text-muted, #6b7280);
    margin: 0 0 16px;
}

/* Rodapé informativo */
.dns-info-footer {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 767.98px) {
    .dns-info-footer {
        grid-template-columns: 1fr;
    }
}

.dns-info-block {
    display: flex;
    gap: 12px;
}

.dns-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--app-primary, #2563eb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: var(--app-shadow-sm);
}

.dns-info-title {
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 6px;
    color: var(--app-text, #111827);
}

.dns-info-text {
    font-size: 13px;
    color: #475569;
    margin: 0;
}

.dns-info-list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #475569;
}

.dns-info-list li {
    margin-bottom: 4px;
}

.dns-info-divider {
    border-left: 1px solid #bfdbfe;
}

@media (max-width: 767.98px) {
    .dns-info-divider {
        border-left: 0;
        border-top: 1px solid #bfdbfe;
        padding-top: 16px;
    }
}
