/* Wallet Connection Section - DISABLED */
.sidebar-wallet {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Wallet Connect Button - DISABLED */
.wallet-connect-btn {
    display: none !important;
    visibility: hidden !important;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #AB9FF2 0%, #8B7FCF 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wallet-connect-btn:hover {
    background: linear-gradient(135deg, #B8AFF4 0%, #9A8FD8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(171, 159, 242, 0.3);
}

.wallet-connect-btn:active {
    transform: translateY(0);
}

/* Connected State */
.wallet-connect-btn.connected {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #0a0a0f;
}

.wallet-connect-btn.connected:hover {
    background: linear-gradient(135deg, #00ff99 0%, #00dd7a 100%);
}

/* Icon styling */
.wallet-connect-btn i {
    font-size: 1.1rem;
}

/* Truncated address display */
.wallet-connect-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    transition: all 0.3s ease;
}

/* Collapsed sidebar adjustments */
.sidebar.collapsed .sidebar-wallet {
    padding: 0.75rem;
}

.sidebar.collapsed .wallet-connect-btn {
    padding: 0.75rem;
    justify-content: center;
}

.sidebar.collapsed .wallet-connect-btn span {
    display: none;
}

.sidebar.collapsed .wallet-connect-btn i {
    font-size: 1.2rem;
}

/* Tooltip for collapsed state */
.sidebar.collapsed .wallet-connect-btn::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.sidebar.collapsed .wallet-connect-btn:hover::after {
    opacity: 1;
}

/* Adjust sidebar-nav padding to accommodate wallet section */
.sidebar-nav {
    padding-bottom: 240px !important; /* Increased to accommodate wallet + user sections */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar-wallet {
        bottom: 150px;
    }
    
    .sidebar-nav {
        padding-bottom: 230px !important;
    }
    
    .wallet-connect-btn {
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
    }
}

/* Animation for wallet connection */
@keyframes walletPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(171, 159, 242, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(171, 159, 242, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(171, 159, 242, 0);
    }
}

.wallet-connect-btn.connecting {
    animation: walletPulse 1.5s infinite;
}

/* Loading state */
.wallet-connect-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.wallet-connect-btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}