/* Wallet Connection Styles */

/* Wallet Selection Modal */
#walletConnectModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#walletConnectModal .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

#walletConnectModal .modal-body {
    padding: 1.5rem;
}

#walletConnectModal .modal-title {
    font-weight: 600;
    color: #333;
}

/* Wallet Options */
.wallet-option {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wallet-option:hover {
    border-color: #6c63ff;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.15);
}

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

.wallet-option .wallet-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wallet-option:hover .wallet-icon {
    transform: scale(1.1);
}

.wallet-option .wallet-icon img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.wallet-option h6 {
    font-weight: 600;
    color: #333;
    margin: 0.5rem 0 0.25rem;
    font-size: 0.95rem;
}

.wallet-option small {
    font-size: 0.75rem;
    color: #6c757d;
}

/* QR Code Container */
#walletConnectQR {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

#walletConnectQR p {
    margin-bottom: 1rem;
    font-weight: 500;
}

#walletConnectQR #qrcode {
    display: inline-block;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
}

/* Loading State */
#walletConnecting {
    padding: 2rem;
}

#walletConnecting .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Error Message */
#walletError {
    border: none;
    border-left: 4px solid #dc3545;
}

/* Connected Wallet Info */
#walletConnectedInfo {
    margin-left: 0.5rem;
}

#walletConnectedAddress {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Wallet Connection Button (In Header) */
.wallet-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wallet-connect-btn:hover {
    transform: translateY(-1px);
}

.wallet-connect-btn.connected {
    background: #28a745;
    color: #fff;
}

.wallet-connect-btn.connected:hover {
    background: #218838;
}

/* QR Code Modal for WalletConnect */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.qr-modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.qr-modal-content h3 {
    margin-bottom: 1rem;
    color: #333;
}

.qr-modal-content .close-btn {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
}

/* Mobile Optimization */
@media (max-width: 576px) {
    #walletConnectModal .modal-body {
        padding: 1rem;
    }
    
    .wallet-option {
        padding: 1rem;
        min-height: 100px;
    }
    
    .wallet-option .wallet-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0.5rem;
    }
    
    .wallet-option .wallet-icon img {
        width: 36px;
        height: 36px;
    }
    
    .wallet-option h6 {
        font-size: 0.85rem;
    }
    
    .wallet-option small {
        font-size: 0.7rem;
    }
    
    #walletConnectedAddress {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .wallet-option {
        min-height: 110px;
    }
}

/* Responsive Grid */
@media (max-width: 576px) {
    .wallet-option {
        margin-bottom: 0.5rem;
    }
}

/* Animation for wallet option selection */
@keyframes walletPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.wallet-option.selecting {
    animation: walletPulse 0.5s ease;
    border-color: #6c63ff;
    background: #6c63ff;
    color: #fff;
}

.wallet-option.selecting h6,
.wallet-option.selecting small {
    color: #fff;
}

/* Dropdown menu styles */
.wallet-dropdown .dropdown-menu {
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
}

.wallet-dropdown .dropdown-item {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.wallet-dropdown .dropdown-item:hover {
    background: #f8f9fa;
}

.wallet-dropdown .dropdown-item.text-danger:hover {
    background: #f8d7da;
}

/* Wallet type badge */
.wallet-type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #6c63ff;
    color: #fff;
    margin-left: 0.5rem;
}

