/* DNS Tool Specific Layout Overrides */

/* Search Form */
.search-box {
    margin: 30px 0;
}

.search-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-select {
    padding: 16px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    background: var(--card-bg);
    cursor: pointer;
    min-width: 120px;
}

.search-input:focus,
.search-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.search-button {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.search-button:hover {
    background-color: var(--primary-hover);
}

.search-button:active {
    transform: translateY(1px);
}

.clear-button {
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    background-color: #e2e8f0;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    min-width: 100px;
}

.clear-button:hover {
    background-color: #cbd5e1;
    color: var(--text-main);
}

.clear-button:active {
    transform: translateY(1px);
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Alert */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    text-align: center;
}

/* Results container */
.result-header {
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.result-header h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.result-card {
    text-align: left;
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

/* Table Style for DNS Records */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #f1f5f9;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tbody tr:hover {
    background-color: #f1f5f9;
}

.record-data {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    word-break: break-all;
    color: #1f2937;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #475569;
    text-align: center;
}

.badge-a {
    background: #dbeafe;
    color: #1e40af;
}

.badge-aaaa {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-cname {
    background: #fef3c7;
    color: #92400e;
}

.badge-mx {
    background: #dcfce7;
    color: #166534;
}

.badge-txt {
    background: #f3e8ff;
    color: #6b21a8;
}

.badge-ns {
    background: #ffedd5;
    color: #9a3412;
}

.badge-soa {
    background: #e0f2fe;
    color: #0369a1;
}

.no-results {
    color: var(--text-muted);
    font-style: italic;
    padding: 20px 0;
    text-align: center;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-button,
    .search-select,
    .clear-button {
        width: 100%;
    }
}