/* DNS Watch Plugin - Simple Table Style */
@media screen and (min-width: 800px) {
	input#dw-domain-input {
		min-width: 500px;
	}
}
/* Container */
.dw-container {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    line-height: 1.6;
    color: #1a1a2e;
    max-width: 900px;
    margin: 0 auto;
}

/* Search Section */
.dw-search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.dw-search-box {
    display: flex;
    gap: 8px;
    align-items: stretch;
    background: white;
    padding: 10px;
    border-radius: 8px;
}

.dw-input {
    flex: 1;
    padding: 14px 16px !important;
    font-size: 14px;
    border: 2px solid #475569;
    border-radius: 8px;
    outline: none;
    background: #1e293b;
    color: #f1f5f9;
    font-weight: 500;
    font-family: inherit;
    min-width: 0;
    transition: border-color 0.2s;
}

.dw-input:focus {
    border-color: #0ea5e9;
}

.dw-input::placeholder {
    color: #64748b;
}

.dw-select {
    /* padding: 14px 12px; */
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #475569;
    border-radius: 8px;
    background: #1e293b;
    color: #f1f5f9;
    cursor: pointer;
    outline: none;
    min-width: 90px;
    transition: border-color 0.2s;
}

.dw-select:focus {
    border-color: #0ea5e9;
}

.dw-select option {
    background: #1e293b;
    color: #f1f5f9;
}

.dw-btn-search {
    /* padding: 14px 28px; */
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    white-space: nowrap;
}

.dw-btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.dw-btn-search:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.dw-hint {
    color: white;
    font-size: 12px;
    margin: 12px 0 0 0;
    text-align: center;
}

/* Results Table */
.dw-results-section {
    margin-bottom: 20px;
}

.dw-results-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.dw-results-table thead {
    background: #f1f5f9;
}

.dw-results-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.dw-results-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

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

.dw-results-table tr:hover {
    background: #f8fafc;
}

.dw-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.dw-type-a { background: #dcfce7; color: #166534; }
.dw-type-aaaa { background: #f3e8ff; color: #7c3aed; }
.dw-type-cname { background: #fef3c7; color: #b45309; }
.dw-type-mx { background: #fce7f3; color: #be185d; }
.dw-type-txt { background: #dbeafe; color: #1e40af; }
.dw-type-ns { background: #ccfbf1; color: #0f766e; }
.dw-type-ptr { background: #e0e7ff; color: #4338ca; }
.dw-type-soa { background: #fae8ff; color: #86198f; }

.dw-answer {
    font-family: 'Monaco', 'Menlo', monospace;
    word-break: break-all;
}

/* Info row */
.dw-info-row {
    background: #f8fafc !important;
    border-left: 4px solid #3b82f6;
}

.dw-info-row td {
    font-size: 13px;
    color: #334155;
    line-height: 1.8;
}

/* FCrDNS row */
.dw-fcrdns-row {
    background: #f0fdf4 !important;
}

.dw-fcrdns-row td {
    color: #166534;
    font-size: 12px;
}

/* Metadata row */
.dw-meta-row {
    background: #fafafa !important;
}

.dw-metadata {
    color: #94a3b8;
    font-size: 11px;
    font-style: italic;
}

/* No results */
.dw-no-results {
    text-align: center;
    padding: 32px 16px !important;
    color: #64748b;
    font-size: 14px;
}

/* Trace Section */
.dw-trace-section {
    margin-bottom: 20px;
}

.dw-trace-output {
    background: #1e293b;
    color: #94a3b8;
    padding: 16px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
}

.dw-trace-step {
    margin-bottom: 4px;
}

.dw-trace-text {
    color: #e2e8f0;
}

.dw-trace-divider {
    border-top: 1px solid #475569;
    margin: 12px 0;
}

.dw-found-record {
    color: #4ade80;
    margin: 4px 0;
}

.dw-ptr-header {
    color: #60a5fa;
    margin-bottom: 8px;
}

.dw-no-ptr {
    color: #f87171;
}

.dw-fcrdns {
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;
}

.dw-fcrdns.verified {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.dw-fcrdns.not-verified {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.dw-fcrdns-detail {
    color: #94a3b8;
    font-size: 12px;
    margin-left: 16px;
}

/* Total Time Inline (inside trace box) */
.dw-total-time-inline {
    color: #fbbf24;
    margin-top: 8px;
    font-size: 14px;
}

/* Server Info (inside trace box) */
.dw-server-info {
    color: #94a3b8;
    font-size: 12px;
    font-style: italic;
    margin-top: 4px;
}

/* Total Time (removed - now inline) */
.dw-total-time {
    display: none;
}

.dw-server-location {
    display: none;
}

.dw-note {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin-top: 16px;
}

/* Summary - removed */

/* Loader */
.dw-loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dw-spin 0.8s linear infinite;
}

@keyframes dw-spin {
    to { transform: rotate(360deg); }
}

.hidden { display: none !important; }

.dw-error-section {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    color: #dc2626;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .dw-search-section {
        padding: 16px;
    }

    .dw-search-box {
        flex-direction: column;
        gap: 10px;
    }

    .dw-input {
        width: 100%;
    }

    .dw-select {
        width: 100%;
    }

    .dw-btn-search {
        width: 100%;
        padding: 14px 28px;
    }

    /* Table to Card layout on mobile */
    .dw-results-table {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .dw-results-table thead {
        display: none;
    }

    .dw-results-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .dw-results-table tr {
        display: block;
        background: #fff;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border-left: 4px solid #3b82f6;
    }

    .dw-results-table td {
        display: block;
        padding: 4px 0;
        border: none;
        font-size: 13px;
    }

    .dw-results-table td:first-child {
        font-weight: 700;
        font-size: 14px;
        color: #1a1a2e;
        margin-bottom: 8px;
    }

    .dw-results-table td:nth-child(2) {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .dw-results-table tr {
        position: relative;
    }

    .dw-results-table td:nth-child(3) {
        font-size: 12px;
        color: #64748b;
    }

    .dw-results-table td:nth-child(3)::before {
        content: 'TTL: ';
        font-weight: 600;
    }

    .dw-results-table td:nth-child(4) {
        background: #f8fafc;
        padding: 10px 12px;
        border-radius: 8px;
        margin-top: 8px;
        font-size: 12px;
        word-break: break-all;
    }

    .dw-results-table td:nth-child(4)::before {
        content: 'Answer: ';
        font-weight: 600;
        color: #64748b;
        display: block;
        margin-bottom: 4px;
    }

    /* Color border by type */
    .dw-results-table tr:has(.dw-type-a) {
        border-left-color: #10b981;
    }
    .dw-results-table tr:has(.dw-type-aaaa) {
        border-left-color: #8b5cf6;
    }
    .dw-results-table tr:has(.dw-type-cname) {
        border-left-color: #f59e0b;
    }
    .dw-results-table tr:has(.dw-type-mx) {
        border-left-color: #ec4899;
    }
    .dw-results-table tr:has(.dw-type-txt) {
        border-left-color: #3b82f6;
    }
    .dw-results-table tr:has(.dw-type-ns) {
        border-left-color: #14b8a6;
    }
	.dw-select {
		height: 50px;
	}
}

