/* styles/wallet.css */

.wallet-panel {
    position: fixed;
    top: 0;
    right: -100%; /* Fully hidden by default, relative to its width */
    width: 300px;
    height: 100%;
    background-color: #1a1a1a;
    padding: 20px;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1000;
    color: #fff;
    box-sizing: border-box; /* Ensure padding doesn’t increase width */
}

.wallet-panel.open {
    right: 0; /* Fully visible when open */
}

.wallet-content h3 {
    color: #ff9d00;
    font-family: 'Comic Neue', cursive;
    font-size: 1.5em;
    margin-bottom: 1em;
    text-align: center;
}

.hide-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ff9d00;
    font-size: 1em;
    cursor: pointer;
    padding: 5px 10px;
}

.hide-button:hover {
    color: #e68c00;
}

#wallet-info p,
#wallet-setup label {
    margin: 0.5em 0;
    font-size: 0.9em;
}

#wallet-info span,
#token-balances {
    color: #fff;
    font-weight: bold;
}

#wallet-seed {
    width: 100%;
    padding: 0.5em;
    margin: 0.5em 0;
    border: 1px solid #541767;
    border-radius: 4px;
    background-color: #121212;
    color: #fff;
    font-size: 0.9em;
    box-sizing: border-box;
}

#connect-wallet {
    width: 100%;
    padding: 0.5em;
    background: linear-gradient(90deg, #541767 0%, #022253 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
    box-sizing: border-box;
}

#connect-wallet:hover {
    background: linear-gradient(90deg, #431257 0%, #011c43 100%);
}

#wallet-setup small a {
    color: #ff9d00;
    text-decoration: none;
}

#wallet-setup small a:hover {
    color: #e68c00;
    text-decoration: underline;
}

/* Style connection-status button */
.connection-status {
    padding: 0.8em 1.5em;
    background-color: #ff9d00;
    color: #121212;
    border: none;
    border-radius: 4px;
    font-family: 'Comic Neue', cursive;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.connection-status.connected {
    background-color: #00ff7f; /* Green for connected */
}

.connection-status.disconnected {
    background-color: #ff4d4d; /* Red for disconnected */
}

.connection-status:hover {
    transform: translateY(-2px);
}

.connection-status.connected:hover {
    background-color: #00cc66;
}

.connection-status.disconnected:hover {
    background-color: #cc3939;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wallet-panel {
        width: 250px;
    }

    .connection-status {
        padding: 0.6em 1.2em;
        font-size: 0.9em;
    }
}

@media (max-width: 600px) {
    .wallet-panel {
        width: 100%;
        right: -100%; /* Fully hidden on mobile */
    }

    .wallet-panel.open {
        right: 0;
    }
}

#wallet-info ul {
    max-height: 150px;
    overflow-y: auto; /* Scroll if too many transactions */
    margin: 0.5em 0;
}

#wallet-info li {
    margin-bottom: 0.3em;
    word-wrap: break-word;
}