/* UpConnect Wallet Styles */

.upconnect-wallet-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.upconnect-wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.upconnect-wallet-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    flex: 1;
}

.upconnect-wallet-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.upconnect-wallet-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upconnect-wallet-user-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.upconnect-wallet-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upconnect-wallet-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.upconnect-wallet-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
}

/* Exchange Rate Info */
.upconnect-exchange-rate-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.upconnect-rate-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.upconnect-rate-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.upconnect-rate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
}

.upconnect-rate-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.upconnect-rate-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}

.upconnect-rate-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.upconnect-min-exchange {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.upconnect-min-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.upconnect-min-value {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Points Summary */
.upconnect-points-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.upconnect-points-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upconnect-points-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 12px;
    color: #b8860b;
    font-size: 1.5rem;
}

.upconnect-points-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.upconnect-points-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.upconnect-points-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.upconnect-exchange-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.upconnect-exchange-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.upconnect-exchange-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4caf50;
}

/* Exchange Form */
.upconnect-exchange-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.upconnect-exchange-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.upconnect-exchange-title .dashicons {
    color: #667eea;
}

.upconnect-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.upconnect-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upconnect-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.upconnect-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.upconnect-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.upconnect-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.upconnect-input-suffix {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    color: #6c757d;
    font-weight: 500;
    border-left: 1px solid #e9ecef;
}

.upconnect-input-help {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Exchange Preview */
.upconnect-exchange-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9ff;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
}

.upconnect-preview-label {
    font-size: 0.9rem;
    color: #1976d2;
    font-weight: 500;
}

.upconnect-preview-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4caf50;
}

/* Form Actions */
.upconnect-form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.upconnect-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.upconnect-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.upconnect-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.upconnect-btn-secondary {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #e9ecef;
}

.upconnect-btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

/* Exchange History */
.upconnect-exchange-history {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.upconnect-history-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.upconnect-history-title .dashicons {
    color: #667eea;
}

.upconnect-history-content {
    position: relative;
}

.upconnect-history-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6c757d;
}

.upconnect-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.upconnect-history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upconnect-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.upconnect-history-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.upconnect-history-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.upconnect-history-details {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
}

.upconnect-history-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4caf50;
}

.upconnect-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    color: #6c757d;
}

.upconnect-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Error State */
.upconnect-wallet-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #ffebee;
    color: #d32f2f;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Success Message */
.upconnect-success-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #e8f5e8;
    color: #2e7d32;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #4caf50;
}

.upconnect-success-message .dashicons {
    color: #4caf50;
}

/* Error Message */
.upconnect-error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #ffebee;
    color: #d32f2f;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #f44336;
}

.upconnect-error-message .dashicons {
    color: #f44336;
}

/* Responsive */
@media (max-width: 1024px) {
    .upconnect-wallet-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .upconnect-points-summary {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .upconnect-exchange-value {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .upconnect-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .upconnect-btn {
        justify-content: center;
    }
    
    .upconnect-exchange-preview {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .upconnect-history-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .upconnect-wallet-user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .upconnect-rate-card {
        flex-direction: column;
        text-align: center;
    }
    
    .upconnect-points-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Loading States */
.upconnect-loading {
    opacity: 0.6;
    pointer-events: none;
}

.upconnect-loading .upconnect-btn {
    position: relative;
}

.upconnect-loading .upconnect-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Disabled States */
.upconnect-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.upconnect-input:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

/* Focus States */
.upconnect-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Custom Scrollbar */
.upconnect-history-content::-webkit-scrollbar {
    width: 6px;
}

.upconnect-history-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.upconnect-history-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.upconnect-history-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
