/* === BANNER-SECCION === */
#server-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  margin: 0 0 10px 0;
  border: 2px solid limegreen;
  border-radius: 6px;
  background: #f5f5f5;
}

#server-banner span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

.content {
  flex: 1;
  padding: 20px;
  font-size: 14px;
  color: #333;
}

.content h3 {
  font-size: 14px;
  margin: 0 0 2px;
  font-weight: 600;
  color: #222;
}

.section { display: none; }
.section.active { display: block; }

/* === MONITOR-BARRAS === */
#monitor h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #0078D7;
}

.estado-contenedor {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.estado-box-full {
  flex: 1 1 80%;
  max-width: 80%;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.estado-box {
  flex: 1 1 20%;
  max-width: 20%;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Barras de progreso */
.bar {
  width: 100%;
  height: 12px;
  background: #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 4px;
}

.bar-fill {
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 6px;
}

.bar-green  { background: #4caf50; }
.bar-yellow { background: #ffb300; }
.bar-red    { background: #d32f2f; }

/* === 9. VNSTAT Y ESTADOS DE SERVICIO === */
.tabla-vnstat {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.tabla-vnstat th, .tabla-vnstat td {
  padding: 6px 8px;
  white-space: nowrap;
}

.tabla-vnstat td:nth-child(1) { width: 25%; text-align: left; }
.tabla-vnstat td:nth-child(n+2) { text-align: center; }

/* Dots de estado */
.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  background: #ccc;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.status-active   { background: #2ecc71; }
.status-inactive { background: #d32f2f; }

/* Textos de estado */
.estado-servicio {
  font-weight: 600;
  margin-left: 6px;
  min-width: 120px;
  display: inline-block;
}

.estado-ok    { color: #2ecc71; }
.estado-error { color: #e74c3c; }
.estado-warn  { color: #f1c40f; }
.estado-info  { color: #3498db; }
/* === 10. SERVICIOS (TABLA DE BOTONES) === */
.service {
  display: grid;
  /* Mantiene tus medidas exactas para evitar desalineación */
  grid-template-columns: 260px 400px 900px;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 5px 6px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 8px;
}

.service h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-buttons {
  display: flex;
  gap: 8px;
}

.service-buttons button {
  width: 200px; /* Ancho fijo solicitado */
  text-align: center;
  padding: 6px 0;
  border: none;
  border-radius: 6px;
  background: #0078D7;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.service-buttons button:hover {
  background: #005fa3;
}

/* Clases específicas para botones de parada */
.service-buttons button.stop {
  background: #d32f2f !important;
}

.service-buttons button.stop:hover {
  background: #b71c1c !important;
}

