/* Grid-Container für die Wallet-Container */
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Styling für einzelne Wallet-Container */
.card-item {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: unset;
}

/* Linke Spalte: Enthält Überschrift, Adresse und Copy-Button */
.card-item > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Container für Wallet-Adresse inkl. Copy-Button */
.copy-container {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;  /* Erlaubt Umbruch im Container */
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Optional: Bei Hover leichte Hervorhebung des Containers */
.copy-container:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Wallet-Adresse selbst – in Monospace für bessere Lesbarkeit */
.wallet-address {
    display: block;
    max-width: 100%;
    font-family: "Courier New", Courier, monospace;
    color: var(--text-color);
    white-space: normal;         /* Erlaubt Zeilenumbrüche */
    word-wrap: break-word;       /* Für ältere Browser */
    overflow-wrap: break-word;   /* Für moderne Browser */
    word-break: break-all;        /* Bricht lange Zeichenketten */
}

/* Hervorhebung beim Kopieren */
.wallet-address.copied {
    border-color: green;
}

/* Styling des Copy-Buttons */
.copy-btn {
    margin-top: 8px;    /* Neuer Abstand oben, um sicherzustellen, dass der Copy-Button gut unter der Adresse sitzt */
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.copy-btn:hover {
    background-color: #0056b3;
}


/* Temporäre "Copied!"-Meldung – deutlich und zentral oberhalb des Copy-Buttons */
.copy-message {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 128, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}
