/* BASE */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f3f4f6;
  color: #1f2937;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
}

.navbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.logo {
  color: #4338cd;
  font-weight: 700;
  font-size: 1.3rem;
}

/* CARD CENTRAL */
.gauge-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
}

/* VELOCÍMETRO */
.gauge-wrapper {
  position: relative;
  max-width: 300px;
  margin: 2rem auto;
}

.gauge {
  width: 100%;
}

.gauge-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 12;
}

.gauge-fill {
  fill: none;
  stroke: #4338cd;
  stroke-width: 12;
  stroke-dasharray: 282;
  stroke-dashoffset: 282;
  transition: stroke-dashoffset 0.3s ease;
}

.gauge-needle {
  stroke: #111827;
  stroke-width: 3;
  transform-origin: 100px 100px;
  transition: transform 0.2s ease-out;
}

.connection-info {
  margin-top: 1rem;
  text-align: center;
  color: #e5e7eb;
}

.provider-line strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.provider-line span {
  font-size: 0.85rem;
  color: #9ca3af;
}

.location-line {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.change-server {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: #38bdf8;
  text-decoration: none;
}

.change-server:hover {
  text-decoration: underline;
}
.connection-info span {
  font-weight: 500;
}


.speed-display {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.speed-display span {
  font-size: 2.5rem;
  font-weight: 700;
}

.speed-display small {
  display: block;
  color: #6b7280;
}

/* BOTÃO */
.btn-primary {
  background: #4338cd;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: pointer;
}

.btn-primary:hover {
  background: #3730a3;
}

/* INFO CARDS */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.info-card {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

.info-card span {
  font-size: .85rem;
  color: #6b7280;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 1.5rem;
  font-size: .85rem;
  color: #6b7280;
}
