/* Ping Tool Specific Styles */

.ping-result-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ping-summary {
  background-color: #f8f9fa;
  border-left: 4px solid #0d6efd;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
}

.ping-target {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.ping-target i {
  color: #0d6efd;
  margin-right: 0.5rem;
}

.ping-quick-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-stat i {
  font-size: 1.1rem;
  color: #6c757d;
}

.stat-label {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
}

.stat-value.success {
  background-color: #d1eddc;
  color: #155724;
}

.stat-value.warning {
  background-color: #fff3cd;
  color: #856404;
}

.stat-value.danger {
  background-color: #f8d7da;
  color: #721c24;
}

.ping-responses h6 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.ping-responses h6 i {
  color: #28a745;
  margin-right: 0.5rem;
}

.ping-response {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  transition: box-shadow 0.15s ease-in-out;
}

.ping-response:hover {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.response-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.response-number {
  background-color: #6c757d;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.response-time {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.time-good {
  background-color: #d1eddc;
  color: #155724;
}

.time-medium {
  background-color: #fff3cd;
  color: #856404;
}

.time-slow {
  background-color: #f8d7da;
  color: #721c24;
}

.response-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.response-details span {
  display: flex;
  align-items: center;
}

.response-details i {
  margin-right: 0.25rem;
  width: 14px;
}

.ping-statistics {
  margin-top: 1.5rem;
}

.ping-statistics h6 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
}

.ping-statistics h6 i {
  color: #17a2b8;
  margin-right: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.stat-item {
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  padding: 0.75rem;
  text-align: center;
  border: 1px solid #e9ecef;
}

.stat-good {
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.stat-warning {
  background-color: #fff3cd;
  border-color: #ffeaa7;
}

.stat-error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.stat-label {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #495057;
}

.stat-good .stat-value {
  color: #155724;
}

.stat-warning .stat-value {
  color: #856404;
}

.stat-error .stat-value {
  color: #721c24;
}

/* Raw result section */
.raw-result-section {
  border-top: 1px solid #dee2e6;
  padding-top: 1rem;
}

.raw-result-section h6 {
  color: #495057;
  font-weight: 600;
}

.raw-result-section h6 i {
  color: #6c757d;
  margin-right: 0.5rem;
}

.raw-output {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-top: 0.5rem;
}

.raw-output pre {
  margin-bottom: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #495057;
  font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
  .response-details {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .response-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .raw-output pre {
    font-size: 0.75rem;
  }
}