.speedometer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#speedValue {
  font-size: 2.8rem;
  font-weight: 700;
  text-shadow: 0 0 10px #6a11cb, 0 0 20px #2575fc;
}

.btn-violet {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(98, 0, 238, 0.3);
  transition: all 0.3s ease;
}
.btn-violet:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(98, 0, 238, 0.5);
}

@media (max-width: 576px) {
  #speedValue { font-size: 2.2rem; }
  canvas { width: 200px; height: 120px; }
}

/* Status badge */
.status-badge.online { 
    box-shadow: 0 0 10px #28a745, 0 0 20px #28a745; 
}
.status-badge.online i { 
    background: #28a745; 
    box-shadow: 0 0 5px #28a745, 0 0 10px #28a745; 
}

.status-badge.isolir { 
    box-shadow: 0 0 10px #ffc107, 0 0 20px #ffc107; 
}
.status-badge.isolir i { 
    background: #ffc107; 
    box-shadow: 0 0 5px #ffc107, 0 0 10px #ffc107; 
}

.status-badge.offline { 
    box-shadow: 0 0 10px #dc3545, 0 0 20px #dc3545; 
}
.status-badge.offline i { 
    background: #dc3545; 
    box-shadow: 0 0 5px #dc3545, 0 0 10px #dc3545; 
}
.speedometer-wrapper {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.speed-label {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

canvas {
  display: block;
  margin: 0 auto;
}

.hover-card:hover {
  background-color: #f8f9fa !important;
  transform: translateY(-3px);
  transition: all 0.25s;
}

.nav-tabs .nav-link.active {
  background-color: rgba(255,255,255,0.2);
  font-weight: 600;
  border-radius: 0.5rem 0.5rem 0 0;
}

.table-hover tbody tr:hover {
  background-color: #f1f5f9;
  transition: background-color 0.3s;
}

.btn-logout {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(38, 198, 218, 0.4);
  transition: all 0.3s ease;
}

.btn-logout:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(38, 198, 218, 0.6);
  background: linear-gradient(135deg, #2575fc, #6a11cb);
}

.btn-logout:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(38, 198, 218, 0.4);
}

.btn-logout i {
  vertical-align: middle;
  font-size: 1.1rem;
}

@media (max-width: 576px){
  h5 { font-size: 1.2rem; }
  .fw-bold.fs-6 { font-size: 0.9rem; }
  .nav-tabs .nav-link { font-size: 0.85rem; }
}

/* Glass card */
.glass-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 1rem;
}

/* Neon text */
.neon-text {
    text-shadow: 0 0 5px #6a11cb, 0 0 10px #2575fc;
    font-weight: 600;
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.status-badge i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    animation: pulseNeon 1.5s infinite;
}

/* Neon colors */
.status-badge.online { box-shadow: 0 0 10px #28a745, 0 0 20px #28a745; background-color: #58E877;}
.status-badge.online i { background-color: #28a000; box-shadow: 0 0 5px #28a745, 0 0 10px #28a745; }

.status-badge.isolir { box-shadow: 0 0 10px #ffc107, 0 0 20px #ffc107; background-color: #EEF266;}
.status-badge.isolir i { background-color: #ffc107; box-shadow: 0 0 5px #ffc107, 0 0 10px #ffc107; }

.status-badge.offline { box-shadow: 0 0 10px #dc3545, 0 0 20px #dc3545; background-color: #FC7E8A;}
.status-badge.offline i { background-color: #dc3545; box-shadow: 0 0 5px #dc3545, 0 0 10px #dc3545; }

/* Pulsasi */
@keyframes pulseNeon {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.5); opacity: 0.6; }
    100% { transform: scale(1); opacity: 0.9; }
}

/* Speed bars */
.speed-bar label {
    font-weight: 600;
    font-size: 0.85rem;
}
.progress {
    height: 10px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 0.25rem;
}
.progress-bar.download {
    background: linear-gradient(90deg, #2575fc, #6a11cb);
}
.progress-bar.upload {
    background: linear-gradient(90deg, #6fcf97, #28a745);
    transition: width 0.5s ease;
}

/* Tooltip */
.status-badge[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    pointer-events: none;
    backdrop-filter: blur(3px);
}

.status-badge {
    color: #fff; /* pastikan teks putih */
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.speed-bars {
  max-width: 400px;
  margin: 0 auto;
}

.bar-item {
  width: 300px;
  max-width: 400px; /* batas maksimal di layar besar */
  margin: 0 auto;   /* biar tetap center */
}

@media (min-width: 768px) {
  .speed-bars {
    flex-direction: row;
    justify-content: center;
  }
  .bar-item {
    max-width: 300px;
  }
}

.bar-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
}

.progress.modern {
  height: 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar {
  height: 100%;
  border-radius: 30px;
  transition: width 1s ease-in-out;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.gradient-blue {
  background: linear-gradient(90deg, #2575fc, #6a11cb);
  box-shadow: 0 0 10px #2575fc, 0 0 20px #6a11cb;
}

.gradient-green {
  background: linear-gradient(90deg, #00c851, #007e33);
  box-shadow: 0 0 10px #00c851, 0 0 20px #007e33;
}

/* Hover glow effect */
.progress.modern:hover .progress-bar {
  filter: brightness(1.2);
  transition: all 0.3s;
}

/* Smooth number pulse animation */
@keyframes pulseText {
  0% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(1); }
}

.bar-header span:last-child {
  animation: pulseText 2s infinite ease-in-out;
  color: #333;
}



#speedtestContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.speedtest-meter {
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.gauge {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(#eee 0deg, #eee 360deg);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  transition: background 0.3s ease;
}

.gauge span {
  font-size: 2rem;
}

.ping {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2575fc;
}

#startTest {
  border-radius: 50px;
  padding: 0.6rem 2rem;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

#startTest:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #2575fc, #6a11cb);
}