/* ===============================
  Compact filter panel spacing
=============================== */
  
.well {
  padding: 8px 12px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.form-group {
  margin-bottom: 6px;
}

label {
  margin-bottom: 2px;
  font-size: 12px;
}

.row {
  margin-bottom: 4px;
  margin-top: 10px;
}

.btn {
  padding-top: 8px;
  padding-bottom: 8px;
}


/* ===============================
  Tab styling
=============================== */
  
/* Inactive tabs */
.nav-tabs > li > a {
  background-color: #e6e6e6;
    color: black;
  font-weight: normal;
  border-radius: 4px 4px 0 0;
  border: 1px solid #ddd;
}

/* Active tab */
  .nav-tabs > li.active > a,
  .nav-tabs > li.active > a:hover,
  .nav-tabs > li.active > a:focus {
    background-color: #C00000 !important;
      color: white !important;
    font-weight: bold;
    border-color: #C00000;
}

/* Hover effect */
.nav-tabs > li > a:hover {
  background-color: #ffd1d1;
  color: black;
  font-weight: bold;

  /* bottom glow */
  box-shadow: 0 6px 10px rgba(192, 0, 0, 0.35);
  transform: translateY(-1px);
}
  
/* ===============================
   Button row alignment
=============================== */

.button-row {
  display: flex;
  justify-content: flex-end;   /* move buttons to the right */
  gap: 10px;
}


/* ===============================
   Button style
=============================== */

.button-row .btn,
.button-row .btn-default,
.button-row .btn-primary {
  width: 140px;                /* same width */
  text-align: center;
  transition: all 0.2s ease;
}


/* ===============================
   Hover effect
=============================== */

.button-row .btn:hover,
.button-row .btn-default:hover,
.button-row .btn-primary:hover {
  background-color: #bfbfbf !important;
  color: black !important;
  font-weight: bold;

  /* bottom glow */
  box-shadow: 0 6px 10px rgba(191, 191, 191, 0.6);
  transform: translateY(-1px);
}




/* ---- Legend container ---- */
.legend-container {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  /*background-color: #fafafa;*/
}

/* ---- Title ---- */
.legend-title {
  font-weight: 600;
  margin-bottom: 6px;
}

/* ---- Each row ---- */
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;              /* spacing between box and text */
  margin-bottom: 4px;
}

/* ---- Small color block ---- */
#network_legend .legend-color-box {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  min-height: 10px !important;
  display: inline-block !important;
  border-radius: 2px !important;
  flex-shrink: 0 !important;
  border: 1px solid #999 !important;
}

/* ---- Text ---- */
.legend-label {
  font-size: 12px;
}



