/* Deluxe Wallet Balances - CSS - Autloads Every 10 Seconds */

#wallet-balances {
    position: fixed;
    top: 80px; /* Below the header */
    right: 20px;
    font-size: 14px;
    text-align: left;
    color: #fff;
    line-height: 1.6;
    z-index: 100;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    min-width: 200px;
    max-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none; /* Hidden by default, shown only when wallet is connected */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#wallet-balances::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.4) 100%);
    border-radius: 12px 12px 0 0;
}

.balance-item {
    margin-bottom: 8px;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.balance-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.balance-item:hover {
    background: rgba(255, 255, 255, 0.05);
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 4px;
    padding-right: 4px;
    border-radius: 6px;
}

.balance-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

.token-acronym {
    font-size: 14px; /* Base size for token acronyms */
}

.token-detail {
    font-size: 10px; /* 4px smaller than token acronyms (14px - 4px = 10px) */
    font-weight: 500;
    opacity: 0.9;
}

.balance-value {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Courier New', monospace;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-left: 80px; /* 80px space between all labels and values */
}

.balance-empty {
    opacity: 0.6;
    font-style: italic;
    text-align: center;
    padding: 8px 0;
}

.balance-updated {
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.6s ease-out;
    border-radius: 6px;
    padding: 4px 8px;
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% {
        background: rgba(255, 255, 255, 0.2);
    }
    50% {
        background: rgba(255, 255, 255, 0.35);
    }
}
