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;
}

.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;
}