/* ========================================
   PING TOOL STYLES
   ======================================== */

.ping-tool-wrapper {
    margin-top: 30px;
}

.ping-controls {
    text-align: center;
    margin-bottom: 30px;
}

.ping-results {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.ping-results h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3em;
}

.ping-table-wrapper {
    overflow-x: auto;
    margin-bottom: 25px;
}

.ping-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ping-table thead {
    background: #34495e;
    color: #ffffff;
}

.ping-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ping-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95em;
}

.ping-table tbody tr:last-child td {
    border-bottom: none;
}

.ping-table tbody tr:hover {
    background: #f8f9fa;
}

/* Статусы ping */
.status-excellent {
    color: #27ae60;
    font-weight: 600;
}

.status-good {
    color: #2ecc71;
    font-weight: 600;
}

.status-average {
    color: #f39c12;
    font-weight: 600;
}

.status-poor {
    color: #e74c3c;
    font-weight: 600;
}

.status-error {
    color: #95a5a6;
    font-style: italic;
}

.ping-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.ping-summary p {
    margin: 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.95em;
}

.ping-summary span {
    color: #3498db;
    font-weight: 700;
    font-size: 1.1em;
}

/* ========================================
   MEDIA QUERIES - PING TOOL
   ======================================== */

@media (max-width: 991px) {
    .ping-table th,
    .ping-table td {
        padding: 10px 12px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .ping-results {
        padding: 20px 15px;
    }

    .ping-table th,
    .ping-table td {
        padding: 8px 10px;
        font-size: 0.85em;
    }

    .ping-table th {
        font-size: 0.8em;
    }

    .ping-summary {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .ping-results h3 {
        font-size: 1.1em;
    }

    .ping-table {
        font-size: 0.9em;
    }

    .ping-table th,
    .ping-table td {
        padding: 8px 6px;
        font-size: 0.8em;
    }

    .ping-summary p {
        padding: 8px;
        font-size: 0.85em;
    }
}

@media (max-width: 420px) {
    .ping-table th:nth-child(2),
    .ping-table td:nth-child(2) {
        display: none;
    }

    .ping-table th,
    .ping-table td {
        padding: 6px 4px;
        font-size: 0.75em;
    }
}
