body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    position: relative;
    background: url('../img/background.webp') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

header h1, header p {
    position: relative;
    z-index: 2;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

.header-content {
    position: relative;
    z-index: 2; /* hoger dan de overlay */
}

main {
    padding: 20px;
    max-width: 1440px;
    margin: 0 auto;
}

section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #07AAF9;
    margin-top: 0;
}

footer {
    background-color: #2D2E43;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

.container {
    display: flex;
    gap: 50px;
}

.upstreamcon {
    border: 2px solid #07AAF9;
    border-radius: 8px;
    padding: 10px;
    width: 45%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}

th.sortable {
    cursor: pointer;
}

.sort-arrow::after {
    content: "⇅";
    margin-left: 5px;
    opacity: 0.4;
}

th.asc .sort-arrow::after {
    content: "▲";
    opacity: 1;
}

th.desc .sort-arrow::after {
    content: "▼";
    opacity: 1;
}

.spinner-border {
    width: 4rem;
    height: 4rem;
    margin-top: 6rem;
    margin-bottom: 6rem;
	border-width: 0.4em;
}

.spinner-border {
    width: 4rem;
    height: 4rem;
    margin-top: 6rem;
    margin-bottom: 6rem;
	border-width: 0.4em;
}

#refreshSpinner.spinner-border,
#refreshSpinner2.spinner-border {
    width: 0.84rem;
    height: 0.84rem;
    margin-top: 0rem;
    margin-bottom: 0rem;
    border-width: 0.15em;
    vertical-align: text-bottom;
}

 #bgpOutput {
    white-space: pre-wrap;
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 5px;
	min-height: 400px;
	min-width: 800px;
    height: 100%;
    overflow-y: auto;
    font-family: Consolas, monospace, monospace;
    border: 1px solid #444;
}
.asn-highlight {
    color: #e67e22;
    font-weight: bold;
}
.asn215085-highlight {
    color: #07AAF9;
    font-weight: bold;
}
strong.best-line {
    font-weight: bold;
}

#achart-container {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}
.achart-wrapper {
    width: 220px;
    position: relative;
    overflow: visible;
    text-align: center;
}
canvas {
    max-width: 100%;
    height: auto !important;
}
.alegend ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 1rem;
    gap: 0.5rem 1rem;
    list-style: none;
    justify-content: center;
}

.alegend li {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.alegend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 2px;
}

.achart-wrapper-chart{
    width: 1300px;
    height: 600px;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.achart-wrapper-chart canvas{
    width: 100%!important;
    height: 100%!important;
}

.stats-overview-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#stats-container {
    text-align: right;
    display: flex;
    gap: 1em;
}
#stats-container p {
    margin: 0;
}

#legend1 li.inactive,
#legend2 li.inactive,
#legend3 li.inactive,
#legend4 li.inactive,
#legend5 li.inactive {
  opacity: 0.5;
  text-decoration: line-through;
}

.bgprtv-container { 
    max-width: 100%; 
    margin: 0 auto; 
    padding: 0px; 
}
.bgprtv-h1 { 
    text-align: center; 
    color: #212529; 
}
.bgprtv-form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.bgprtv-input {
    width: calc(100% - 110px);
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
}
.bgprtv-submit {
    width: 100px;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
}
#bgprtv-mynetwork {
    width: 100%;
    min-height: 60vh;

    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 20px;
}
#bgprtv-mynetwork .vis-network,
#bgprtv-mynetwork canvas {
    height: 100% !important;
}
.bgprtv-legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}
.bgprtv-legend-symbol {
    margin-right: 10px;
    flex-shrink: 0;
}
.bgprtv-legend-line {
    height: 0;
    width: 40px;
}
.bgprtv-legend-line.best-path {
    border-top: 3px solid #C0392B;
}
.bgprtv-legend-line.alt-path {
    border-top: 2px dashed #2C3E50;
}
.bgprtv-legend-node {
    display: inline-block;
    width: 25px;
    height: 20px;
    border: 2px solid #343a40;
    border-radius: 3px;
}
.bgprtv-legend-node.best-path-node {
    background-color: #FADBD8;
}
.bgprtv-legend-node.alt-path-node {
    background-color: #D6DBDF;
}

.bgprtv-legend-line.multipath {
    border-top: 2px solid #F39C12;
}

.bgprtv-legend-node.multipath-node {
    background-color: #FDEBD0;
}

.bgprtv-filter-title {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

.bgprtv-legend-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 25px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
}

.bgprtv-filter-container {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

#bgprtv-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    align-items: center;
}

#bgprtv-filter-controls label {
    margin: 0;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.bgprtv-filter-separator {
    display: inline-block;
    border-left: 1px solid #ccc;
    height: 16px;
    margin: 0 5px;
}

.icon-info, .icon-details, .icon-bfd, .icon-gear, .icon-graph {
  display: inline-block;
  width: clamp(1rem, 1vw + 0.5rem, 1.5625rem);
  height: clamp(1rem, 1vw + 0.5rem, 1.5625rem);

  vertical-align: middle;
  background-repeat: no-repeat;
  background-size: contain;
  cursor: pointer;
  text-indent: -9999px;
  overflow: hidden;
}

.icon-info {
  background-image: url('/static/img/info.png');
}

.icon-details {
  background-image: url('/static/img/details.png');
}

.icon-bfd {
  background-image: url('/static/img/fast.png');
}

.icon-gear {
  background-image: url('/static/img/settings.png');
}

.icon-graph {
  background-image: url('/static/img/graph.png');
}

td.d-flex {
  gap: 8px;
}

#progress {
  position: fixed;
  bottom: 20px;
  right: 20px;
  height: 70px;
  width: 70px;
  display: none;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s, visibility 0.3s;
}

#progress.active {
  display: grid;
}

#progress-value {
  display: grid;
  place-items: center;
  height: calc(100% - 10px);
  width: calc(100% - 10px);
  background-color: #ffffff;
  border-radius: 50%;
  font-size: 25px;
  color: #0d6efd;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

#notificationModal .modal-content.success #notificationTitle {
    color: #198754;
}

#notificationModal .modal-content.error #notificationTitle {
    color: #dc3545;
}

.modal-content .spinner-border {
    width: 3rem;
    height: 3rem;
    margin: 1.5rem auto;
    border-width: 0.3em;
}

.fw-log-output {
	background-color: #f8f9fa;
	padding: 1rem;
	border-radius: 0.25rem;
	white-space: pre-wrap;
	word-wrap: break-word;
}