/**
 * Web3 Login Styles - Matching WHMCS Theme
 * Clean and professional design matching the site's blue theme
 */

.web3-login-container {
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
}

.web3-login-title {
    text-align: left;
    color: #336699;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.web3-login-title svg {
    display: none;
}

.web3-login-title::before {
    content: '🔗';
    font-size: 18px;
}

.web3-login-button {
    width: 100%;
    padding: 10px 20px;
    background-color: #336699;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.web3-login-button:hover {
    background-color: #2d5a85;
}

.web3-login-button:active {
    background-color: #244a6e;
}

.web3-login-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.web3-login-button .icon {
    width: 18px;
    height: 18px;
}

.web3-login-button .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.web3-chain-selector {
    margin-bottom: 12px;
}

.web3-chain-selector label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-size: 13px;
    font-weight: 400;
}

.web3-chain-selector label svg {
    display: none;
}

.web3-chain-selector select {
    width: 100%;
    height: 38px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
    line-height: 1.42857143;
}

.web3-chain-selector select:hover {
    border-color: #999;
}

.web3-chain-selector select:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.web3-status-message {
    margin-top: 12px;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.web3-status-message.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.web3-status-message.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.web3-status-message.info {
    background-color: #d9edf7;
    color: #31708f;
    border: 1px solid #bce8f1;
}

.web3-status-message.warning {
    background-color: #fcf8e3;
    color: #8a6d3b;
    border: 1px solid #faebcc;
}

.web3-wallet-info {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
}

.web3-wallet-info .address {
    font-family: monospace;
    color: #667eea;
    word-break: break-all;
}

.web3-wallet-info .chain {
    margin-top: 5px;
    color: #666;
}

/* Wallet icons */
.wallet-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.wallet-icon.metamask {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIxIDEyQzIxIDE2Ljk3MDYgMTYuOTcwNiAyMSAxMiAyMUM3LjAyOTQ0IDIxIDMgMTYuOTcwNiAzIDEyQzMgNy4wMjk0NCA3LjAyOTQ0IDMgMTIgM0MxNi45NzA2IDMgMjEgNy4wMjk0NCAyMSAxMloiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4K');
}

/* Responsive */
@media (max-width: 576px) {
    .web3-login-button {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* Account binding page styles */
.web3-wallets-list {
    margin-top: 20px;
}

.web3-wallet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.web3-wallet-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.web3-wallet-item.primary {
    border-color: #667eea;
    background: #f8f9ff;
}

.web3-wallet-item .wallet-details {
    flex: 1;
}

.web3-wallet-item .wallet-address {
    font-family: monospace;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.web3-wallet-item .wallet-meta {
    font-size: 12px;
    color: #666;
}

.web3-wallet-item .wallet-actions {
    display: flex;
    gap: 10px;
}

.web3-wallet-item .badge {
    display: inline-block;
    padding: 3px 8px;
    background: #667eea;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
}

.btn-unbind {
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-unbind:hover {
    background: #c82333;
}

.btn-add-wallet {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-wallet:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

