/* Nameserver Checker Page */
.ns-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.ns-page h1 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.ns-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Search form */
.ns-search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ns-search-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

/* Results area */
.ns-results {
    margin-top: 1rem;
}

.ns-status {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.ns-no-records {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
}

/* NS cards */
.ns-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 0.8rem;
}

.ns-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.ns-hostname {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--accent);
    font-family: monospace;
}
.ns-whois-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}
.ns-whois-link:hover {
    color: var(--text-secondary);
}

.ns-status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ns-status-ok {
    background: rgba(111, 207, 135, 0.15);
    color: #6fcf87;
}

.ns-status-fail {
    background: rgba(240, 113, 120, 0.15);
    color: #f07178;
}

.ns-status-unknown {
    background: rgba(150, 150, 150, 0.15);
    color: var(--text-muted);
}

.ns-card-details {
    font-size: 0.85rem;
}

.ns-card-detail {
    margin-bottom: 0.3rem;
}

.ns-label {
    color: var(--text-muted);
    margin-right: 0.3rem;
}

.ns-value {
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 0.85rem;
}

.ns-ip-list {
    display: inline;
}

.ns-ip-list span {
    margin-right: 0.8rem;
}

@media (max-width: 600px) {
    .ns-search-form {
        flex-direction: column;
    }

    .ns-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}
