/* Check DNS Plugin - Professional & Spacious SaaS Theme */
:root {
    --dns-bg: #ffffff;
    --dns-text-main: #1e293b;
    --dns-text-muted: #64748b;
    --dns-border: #e2e8f0;
    --dns-primary: #4f46e5;
    --dns-primary-hover: #4338ca;
    --dns-success: #10b981;
    --dns-warning: #f59e0b;
    --dns-danger: #ef4444;
}

.dns-container {
    padding: 24px;
    background: var(--dns-bg);
    color: var(--dns-text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
}

/* Typography Nâng cao */
.dns-header {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #0f172a;
    margin-bottom: 12px;
}

/* Card Chuyên nghiệp */
.dns-card {
    background: #ffffff;
    border: 1px solid var(--dns-border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* Input & Textarea */
.dns-textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 20px;
    font-size: 1.05rem;
    font-family: 'Fira Code', monospace;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.dns-textarea:focus {
    outline: none;
    border-color: var(--dns-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: #ffffff;
}

/* Button Lớn & Chuyên nghiệp */
.btn-dns-main {
    background: var(--dns-primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-dns-main:hover {
    background: var(--dns-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}

/* Filter Chips */
.provider-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-chip {
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid var(--dns-border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dns-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-chip .count {
    background: #f1f5f9;
    color: var(--dns-primary);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-left: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.tab-chip.active .count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--dns-text-main);
}

.tab-chip.active {
    background: var(--dns-primary);
    color: #ffffff;
    border-color: var(--dns-primary);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

/* Table Chuyên nghiệp (Không trượt ngang) */
.dns-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--dns-border);
}

.dns-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.dns-table th {
    background: #f8fafc;
    padding: 20px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dns-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--dns-border);
}

.dns-table td {
    padding: 24px 20px;
    border-bottom: 1px solid var(--dns-border);
    vertical-align: top;
}

.dns-table tr:last-child td {
    border-bottom: none;
}

.dns-table tr:hover {
    background: #fafafa;
}

/* Tên miền nổi bật */
.domain-col {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    width: 25%;
}

/* Badge Chuyên nghiệp */
.badge-ns {
    background: #eef2ff;
    color: #4338ca;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin: 2px;
    border: 1px solid #c7d2fe;
}

.badge-a {
    background: #ecfdf5;
    color: #047857;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #a7f3d0;
}

.badge-mx {
    background: #fffbeb;
    color: #b45309;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #fde68a;
}

.record-row {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.record-type {
    min-width: 40px;
}

.record-value {
    word-break: break-all;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
}

/* History Grid */
.dns-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.history-card {
    background: #ffffff;
    border: 1px solid var(--dns-border);
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-card:hover {
    border-color: var(--dns-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Status Pill */
.status-pill {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-success {
    background: #dcfce7;
    color: #166534;
}

.status-loading {
    background: #fef3c7;
    color: #92400e;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
}