/* Wallet Modals Styling */

/* Connect and Disconnect Wallet Modal Improvements */
.modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modals-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #23272f;
    margin-bottom: 0;
}

/* Connected Wallet Display */
.wallet-info-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
}

.connected-wallet-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.wallet-icon-wrapper {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

.connected-wallet-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.wallet-details {
    flex: 1;
    min-width: 0;
}

.wallet-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #23272f;
    margin-bottom: 0.25rem;
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.address-text {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #23272f !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-weight: 600 !important;
}

.copy-address-btn {
    background: none;
    border: none;
    color: #6c757d;
    padding: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-address-btn:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.connection-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.connected {
    background: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

.status-indicator.connected::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.status-text {
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Buttons */
.disconnect-actions {
    margin-top: 1.5rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.disconnect-btn,
.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.disconnect-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.disconnect-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
    color: #fff;
}

.logout-btn {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
    color: #fff;
}

/* Info Section */
.disconnect-info {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
}

.info-text {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0;
    color: #495057;
}

.info-text i {
    color: #007bff;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.info-text small {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Connect Wallet Modal Improvements */
.connect-section .heading-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.connect-section .heading-list li {
    margin: 0;
}

.connect-section .heading-list li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #23272f;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.connect-section .heading-list li a:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 212, 255, 0.15);
    color: #23272f;
}

.connect-section .heading-list li a span:first-child {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.connect-section .heading-list li a span:first-child img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.connect-section .heading-list li a span:last-child {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .connected-wallet-display {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .wallet-details {
        order: 2;
    }
    
    .connection-status {
        order: 3;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .action-buttons {
        gap: 0.5rem;
    }
    
    .disconnect-btn,
    .logout-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .wallet-info-section {
        padding: 1rem;
    }
    
    .modals-title {
        font-size: 1.3rem;
    }
    
    .wallet-name {
        font-size: 1rem;
    }
    
    .address-text {
        font-size: 0.8rem;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .wallet-info-section {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
    }
    
    .modals-title {
        color: #f7fafc;
    }
    
    .wallet-name {
        color: #f7fafc;
    }
    
    .address-text {
        background: rgba(0, 0, 0, 0.6) !important;
        color: #ffffff !important;
        border-color: #4a5568;
        font-weight: 600 !important;
    }
    
    .info-text {
        color: #e2e8f0;
    }
    
    .disconnect-info {
        background: rgba(0, 123, 255, 0.15);
        border-color: rgba(0, 123, 255, 0.3);
    }
}

/* Animation for modal entrance */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Copy success feedback */
.copy-address-btn.copied {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.copy-address-btn.copied::after {
    content: 'Copied!';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Connect Web3 Button Styling */
.connect-web3-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
    border: none !important;
}

.connect-web3-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4) !important;
    background: linear-gradient(135deg, #0099cc 0%, #007acc 100%) !important;
}

.connect-web3-btn:active {
    transform: translateY(0) !important;
}

.connect-web3-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.connect-web3-btn:hover::before {
    left: 100%;
}