/* public/assets/css/tools/dev/dns-propagation.css */

.dnsprop-workspace {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 搜索框区域 */
.dnsprop-search-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.dnsprop-input-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .dnsprop-input-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.dnsprop-input-wrap, .dnsprop-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dnsprop-input-wrap { flex: 1; }
.dnsprop-select-wrap { width: 140px; }
@media (max-width: 768px) { .dnsprop-select-wrap { width: 100%; } }

.dnsprop-input-wrap label, .dnsprop-select-wrap label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.dnsprop-input, .dnsprop-select {
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.1rem;
    color: var(--text-main);
    background: var(--bg-body);
    transition: all 0.3s;
    font-family: monospace;
}

.dnsprop-input:focus, .dnsprop-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 0, 102, 204), 0.1);
}

.dnsprop-btn-wrap {
    display: flex;
}

.dnsprop-btn-primary {
    padding: 14px 32px;
    height: 54px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 0, 102, 204), 0.3);
}

.dnsprop-btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.dnsprop-btn-primary:disabled {
    opacity: 0.7; cursor: not-allowed; box-shadow: none; transform: none;
}

.dnsprop-error-msg {
    margin-top: 16px;
    padding: 12px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 结果列表面板 */
.dnsprop-result-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.dnsprop-table-wrapper {
    overflow-x: auto;
}

.dnsprop-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dnsprop-table th, .dnsprop-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.dnsprop-table th {
    background: rgba(0,0,0,0.02);
    font-weight: 600;
    color: var(--text-muted);
}

.dnsprop-table tr:last-child td { border-bottom: none; }
.dnsprop-table tbody tr:hover { background: rgba(var(--primary-rgb, 0, 102, 204), 0.02); }

.prop-node-name {
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.prop-node-geo {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* 结果文本 */
.prop-res-box {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.95rem;
    color: var(--text-main);
    word-break: break-all;
}

.prop-res-error { color: #dc2626; }
.prop-res-wait { color: var(--text-muted); opacity: 0.5; }

/* 状态图标 */
.status-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 旋转加载动画 */
.spinner {
    width: 18px; height: 18px;
    border: 3px solid rgba(var(--primary-rgb, 0, 102, 204), 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

[data-theme="dark"] .dnsprop-table th { background: rgba(255,255,255,0.02); }
[data-theme="dark"] .dnsprop-error-msg { background: rgba(220,38,38,0.1); }