    .chain-link {
        color: black;
        text-decoration: none;
    }
    .chain-link:visited {
        color: black;
    }
    .chain-link:hover {
        text-decoration: underline;
    }
body.dark-mode {
    background-color: #121212;
    color: white;
}

.dark-mode .chain-link {
    color: white;
}

.dark-mode button {
    background-color: #333;
    color: white;
    border: 1px solid white;
}


.dark-mode button:disabled {
    background-color: #555; /* Helleres Grau für bessere Sichtbarkeit */
    color: #aaa; /* Etwas hellerer Text */
    border: 1px solid #777; /* Sichtbarer Rand */
    cursor: not-allowed;
    opacity: 0.6; /* Leicht durchsichtig */
}

:not(.dark-mode) button:disabled {
    background-color: #555; /* Helleres Grau für bessere Sichtbarkeit */
    color: #aaa; /* Etwas hellerer Text */
    border: 1px solid #777; /* Sichtbarer Rand */
    cursor: not-allowed;
    opacity: 0.6; /* Leicht durchsichtig */
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    content: "🌙";
    position: absolute;
    left: 4px;
    top: -2px;
    font-size: 16px;
    transition: 0.4s;
}

.slider:after {
    content: "🌞";
    position: absolute;
    right: 4px;
    top: 0px;
    font-size: 16px;
    transition: 0.4s;
    opacity: 0;
}

input:checked + .slider:before {
    left: 26px;
    opacity: 0;
}

input:checked + .slider:after {
    opacity: 1;
}

body:not(.dark-mode) .theme-button {
    background-color: #ff9800;
    color: white;
}

body.dark-mode .theme-button {
    background-color: #333;
    color: #fff;
}


#headerContainer {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 15px; /* Abstand zwischen Switch und Button */
}

#walletContainer {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px; /* Abstand zwischen Button, Switch und Text */
    min-height: 80px; /* Hält die Höhe konstant */
}

#headerControls {
    display: flex;
    align-items: center;
    gap: 15px; /* Abstand zwischen Wallet-Button und Switch */
}

#connectWallet {
    min-width: 160px; /* Verhindert das Stauchen des Buttons */
    padding: 8px 12px;
}

#walletAddress {
    min-height: 20px; /* Stellt sicher, dass sich der Platz für den Text nicht verändert */
    text-align: right;
}


.title-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Abstand zwischen Titel und Icon */
}

/* Tooltip-Container */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 18px; /* Größe des Icons */
}

/* Tooltip-Text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 500px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    
    /* Position über dem Icon */
    position: absolute;
    z-index: 1;
    top: 150%;
    bottom: auto;
    left: 150%;
    transform: translateX(-50%);
    
    /* Kleiner Pfeil */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

/* Tooltip anzeigen, wenn Maus drüber fährt */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.chain-container {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    padding: 15px;
    margin: 5px 0; /* Weniger Abstand nach außen */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}


.chain-container button {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.chain-container button:hover {
    background: #2980b9;
}

.chain-container p strong {
    font-size: 1.2rem; /* Größer als normal */
    color: #f39c12; /* Gold-Orange */
    text-transform: uppercase; /* Alles in Großbuchstaben */
    letter-spacing: 1px;
}


.button-container {
    display: flex;
    align-items: center; /* Button & Text in einer Zeile */
    gap: 10px; /* Abstand zwischen Button und Text */
    margin-top: 5px;
}

#chainsContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Zwei gleich große Spalten */
    gap: 20px; /* Abstand zwischen den Elementen */
    padding: 10px;
}

.chain-container p {
    margin: 0;
    padding: 0;
}



.navbar {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #222;
}

.nav-btn {
    padding: 8px 12px;
    border: none;
    background: #555;
    color: white;
    cursor: pointer;
}

.nav-btn:hover {
    background: #777;
}

.page {
    padding: 20px;
}

#positionsTable th, #positionsTable td {
    padding: 12px 15px; /* Mehr Platz zwischen Spalten */
}

.centered {
    text-align: center;
}

/* Dropdown-Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Button für die Auswahl */
.dropdown-btn {
    background: #222;
    color: white;
    border: 1px solid #3a3f4b;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Dropdown-Liste */
.dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #333;
    list-style: none;
    padding: 0;
    margin: 5px 0;
    border-radius: 5px;
    overflow: auto;
    max-height: 400px;
    width: 200px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000; /* Hohe Priorität, wenn geöffnet */
}


/* Dropdown-Elemente */
.dropdown-list li {
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
    color: white;
    text-align: left;
}

/* Hover-Effekt */
.dropdown-list li:hover {
    background: #444;
}

.dropdown-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-list input[type="checkbox"] {
    accent-color: #4caf50;
    cursor: pointer;
}


/* Markierte Auswahl */
.selected {
    font-weight: bold;
    color: #1db954;
}


#positionsSummaryContainer {
    text-align: center; /* Mittig ausrichten */
    color: #ccc;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

#positionsSummary {
    cursor: pointer;
    display: inline-block;
}

#positionsSummary:hover::after {
    content: attr(data-hover);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -40px;
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    white-space: pre-line; /* Sorgt für Zeilenumbrüche */
    font-size: 0.9rem;
    text-align: left;
    z-index: 10;
    min-width: 150px;
}

.claim-button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

.claim-button:hover {
    background-color: #135abc;
}

/* Hover for status toolbox */

.status-indicator {
    position: relative;
    cursor: pointer;
}


.status-indicator:hover::after {
    content: "Last update:\A" attr(data-timestamp);
    position: absolute;
    left: 70%;
    transform: translateX(-50%);
    bottom: 25px; /* Falls du es weiter nach oben haben willst */
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px;
    border-radius: 4px;
    font-size: 12px;
    white-space: pre-line; /* ⬅️ Erlaubt den Zeilenumbruch */
    text-align: center;
    width: max-content;
    max-width: 90px; /* Maximale Breite */
}


/* Settings refresh Button */

.refresh-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    font-size: 20px;  /* Größe anpassen */
    cursor: pointer;  /* Mauszeiger als Hand */
    padding: 5px; /* Optionaler Abstand */
    outline: none;  /* Kein Fokus-Rahmen */
}

.refresh-btn:focus {
    outline: none; /* Verhindert weißen Rahmen beim Anklicken */
}

.refresh-btn:hover {
    color: #00bfff; /* Farbe beim Hover ändern (optional) */
}

/* Animation für Drehung */
.refresh-btn.rotating {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.blockchain-stats-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.blockchain-stats-table th, 
.blockchain-stats-table td {
    padding: 10px;
    border: 1px solid #444; /* Dünne Trennlinien */
}

/* Tabelle */
.blockchain-stats-table th {
    background-color: #222;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 10px 4px 10px 18px; /* Oben: 10px, Rechts: 16px, Unten: 10px, Links: 12px */
    position: relative;
    vertical-align: middle;
    text-align: center;
}

/* Äußerer Wrapper: Container */
.header-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: block; /* Nur Container */
}

/* Innerer Wrapper: Container für Text und Pfeil */
.header-text-wrapper {
    display: flex; /* Flex für Layout */
    align-items: center; /* Vertikale Mitte */
    justify-content: center; /* Zentriert den Inhalt */
}

/* Text */
.header-text {
    text-align: center; /* Zentriert den Text */
    white-space: nowrap;
    line-height: 1.1;
}

/* Pfeil */
.sort-icon {
    margin-left: 4px; /* Fester Abstand zwischen Text und Pfeil */
    width: 12px; /* Feste Breite für den Pfeil */
    text-align: center;
    font-size: 1.1em;
    opacity: 0.7;
    color: #ccc;
    font-weight: bold;
    pointer-events: none;
}



/* Aktiver Zustand */
.blockchain-stats-table th.sorted .sort-icon {
    opacity: 1;
    color: #00ffe0;
}




.blockchain-stats-table tr:nth-child(even) {
    background-color: #2a2a2a; /* Leichte Hintergrundfarbe für bessere Lesbarkeit */
}

/* Spalten-Gruppierungen mit dickerer Linie */
.blockchain-stats-table td:nth-child(1), /* Chain Name */
.blockchain-stats-table td:nth-child(9), /* Erste Transaktion */
.blockchain-stats-table td:nth-child(11),
.blockchain-stats-table td:nth-child(15)/* Aktivster Tag */ {
    border-left: 2px solid #666;
}

.blockchain-stats-table td:nth-child(18) {
    border-right: 2px solid #666;
}

/* Gilt nur für die Blockchain-Stats-Seite */
.blockchain-stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px; /* Abstand zwischen Text und Button */
}

/* Dunkler, moderner Button */
.refresh-stats-btn {
    background-color: #2a2d35; /* Dunkles Grau-Blau */
    color: #d1d5db; /* Helles Grau für Text */
    border: 1px solid #3a3f4b; /* Dezenter Rand */
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Hover-Effekt */
.refresh-stats-btn:hover {
    background-color: #3a3f4b; /* Etwas heller */
    color: white;
}

/* Klick-Effekt */
.refresh-stats-btn:active {
    background-color: #1e2026;
    transform: scale(0.96);
}

/* Container für beide Buttons */
.button-group {
    display: inline-flex;
    gap: 8px; /* Abstand zwischen Buttons */
    margin-left: 12px; /* Abstand vom "Blockchain Stats" Titel */
}

/* Einheitliches Button-Design */
.stats-btn {
    background-color: #2a2d35;
    color: #d1d5db;
    border: 1px solid #3a3f4b;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Hover-Effekt */
.stats-btn:hover {
    background-color: #3a3f4b;
    color: white;
}

/* Klick-Effekt */
.stats-btn:active {
    background-color: #1e2026;
    transform: scale(0.96);
}


/* Popup Overlay */
.blockchainstats-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent Hintergrund */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Stelle sicher, dass das Overlay oben bleibt */
}

/* Popup Content */
.blockchainstats-popup-content {
    position: absolute;
    top: 50%; /* Position in der Mitte */
    left: 50%;
    transform: translate(-50%, -50%); /* Korrektur für exakte Zentrierung */
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    width: 60%; /* Standardbreite */
    max-width: 1000px; /* Maximalbreite */
    min-width: 300px; /* Nicht zu klein */
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: auto; /* Falls Inhalte zu groß sind */
}


/* Popup schließen */
.blockchainstats-popup-close {
    font-size: 30px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.blockchainstats-popup-close:hover,
.blockchainstats-popup-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



/* Interaktive Styles für den Blockchain-Namen */
.blockchain-stats-table .clickable-chain {
    cursor: pointer; /* Mauszeiger wird zu einer Hand */
    transition: color 0.3s ease, transform 0.2s ease, background-color 0.3s ease; /* Weiche Übergänge für Farbe, Transformation und Hintergrund */
}

/* Maus über den Blockchain-Namen */
.blockchain-stats-table .clickable-chain:hover {
    color: #1e90ff; /* Helle Farbe, die den Text hervorhebt */
    transform: scale(1.05); /* Leichtes Vergrößern für visuelle Rückmeldung */
    background-color: #f0f0f0; /* Hintergrundfarbe beim Hover */
    text-decoration: underline; /* Unterstreichen des Texts für zusätzliche Klarheit */
}

/* Interaktive Styles für die Monatszahlen */
#monthly-transactions-raster .clickable-month {
    cursor: pointer; /* Mauszeiger wird zu einer Hand */
    transition: color 0.3s ease, transform 0.2s ease, background-color 0.3s ease; /* Weiche Übergänge */
}

/* Maus über die Monatszahl */
#monthly-transactions-raster .clickable-month:hover {
    color: #1e90ff; /* Gleiche Farbe wie bei den Blockchain-Namen */
    transform: scale(1.05); /* Leichtes Vergrößern */
    background-color: #f0f0f0; /* Hintergrundfarbe */
    text-decoration: underline; /* Unterstreichen für Klarheit */
}

/* Interaktive Styles für die Monatszahlen im Total Stats Popup */
#total-transactions-raster .clickable-month {
    cursor: pointer; /* Mauszeiger wird zu einer Hand */
    transition: color 0.3s ease, transform 0.2s ease, background-color 0.3s ease; /* Weiche Übergänge */
}

/* Maus über die Monatszahl */
#total-transactions-raster .clickable-month:hover {
    color: #1e90ff; /* Gleiche Farbe wie bei den Blockchain-Namen */
    transform: scale(1.05); /* Leichtes Vergrößern */
    background-color: #f0f0f0; /* Hintergrundfarbe */
    text-decoration: underline; /* Unterstreichen für Klarheit */
}




/* Raster Styling */
#transactions-raster {
    width: 100%;
    border-collapse: collapse;
}

#transactions-raster th, #transactions-raster td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
}

#transactions-raster th {
    background-color: #444;
    color: white;
}

/* Raster Styling für Total Stats */
#total-transactions-table {
    width: 100%;
    border-collapse: collapse;
}

#total-transactions-table th, #total-transactions-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
}

#total-transactions-table th {
    background-color: #444;
    color: white;
}



/* Gilt für beide Kalender */
#daily-transactions-calendar,
#total-daily-transactions-calendar {
    margin-top: 20px;
    padding: 20px;
    background-color: #333;
    color: white;
}

#calendar-grid,
#total-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 20px;
}

#calendar-grid div,
#total-calendar-grid div {
    padding: 10px;
    background-color: #444;
    text-align: center;
}


button {
    padding: 5px 10px;
    background-color: #555;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #777;
}


.day-box {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
}

.day-number {
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 0.7em;
    color: #bbb;
}

.tx-count {
    font-size: 1em;
}


