/* ping-traceroute.css */

.pt-main { max-width: 680px; }

.backend-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}
.backend-banner.hidden { display: none; }

.input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.input-row .tool-input { flex: 1; min-width: 200px; }

.mode-sel {
    width: auto;
    min-width: 130px;
    padding: 0.75rem 0.6rem;
}

.ping-opts {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.opt-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    margin: 0;
}

.cnt-sel {
    width: auto;
    min-width: 70px;
    padding: 0.4rem 0.5rem;
    font-size: 0.9rem;
}

/* Terminal-style output */
.pt-output {
    margin-top: 1.2rem;
    background: #1a1a2e;
    color: #e0e0e0;
    border-radius: var(--radius-lg);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
}

.pt-output .line-ok     { color: #4cff91; }
.pt-output .line-fail   { color: #ff6b6b; }
.pt-output .line-header { color: #7db8f0; font-weight: 700; }

.pt-error {
    background: #fff0f0;
    border: 1px solid #f5c2c2;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: #c00;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.rc-ok   { color: #1a7d44; font-size: 0.82rem; margin-top: 0.4rem; }
.rc-fail { color: #c00;    font-size: 0.82rem; margin-top: 0.4rem; }

@media (max-width: 480px) { .input-row { flex-direction: column; } .mode-sel { width: 100%; } }
