/* port-checker.css */

.pc-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; }

.form-group { margin-bottom: 1rem; }

.preset-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.preset-btn {
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    font-family: var(--font-main);
    font-size: 0.83rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: background 0.15s;
    white-space: nowrap;
}
.preset-btn.active, .preset-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.hint-text {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin: 0.25rem 0 0;
}

/* Results table */
.port-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.2rem;
    font-size: 0.9rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.port-table th {
    background: #f0f4fa;
    padding: 0.45rem 1rem;
    text-align: left;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--color-border);
}
.port-table td {
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    font-family: var(--font-mono);
}
.port-table tr:last-child td { border-bottom: none; }

.status-open     { color: #1a7d44; font-weight: 700; }
.status-closed   { color: #c00;    font-weight: 700; }
.status-filtered { color: #fd7e14; font-weight: 700; }

.pc-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;
}
