/**
 * MuaThemeWPGiare Wallet - Premium Public Styles
 * Professional User Interface
 */

:root {
    --mtw-primary: #1e3a8a;
    --mtw-primary-light: #3b82f6;
    --mtw-secondary: #7c3aed;
    --mtw-accent: #f59e0b;
    --mtw-success: #10b981;
    --mtw-danger: #ef4444;
    --mtw-gradient: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
    --mtw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --mtw-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --mtw-border-radius: 8px;
    --mtw-transition: all 0.3s ease;
}

/* ====================
   WALLET CONTAINER
==================== */
.muathemewpgiare-wallet-container {
    background: white;
    border-radius: var(--mtw-border-radius);
    box-shadow: var(--mtw-shadow-lg);
    padding: 2rem;
    margin: 2rem 0;
}

.muathemewpgiare-wallet-header {
    background: var(--mtw-gradient);
    color: white;
    padding: 2rem;
    border-radius: var(--mtw-border-radius);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.muathemewpgiare-wallet-header::before {
    content: '💰';
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    font-size: 8rem;
    opacity: 0.1;
}

.wallet-balance {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wallet-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* ====================
   TABS
==================== */
.muathemewpgiare-wallet-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
}

.muathemewpgiare-wallet-tab {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mtw-transition);
}

.muathemewpgiare-wallet-tab:hover {
    color: var(--mtw-primary);
    background: #f9fafb;
}

.muathemewpgiare-wallet-tab.active {
    color: var(--mtw-primary);
    border-bottom-color: var(--mtw-primary);
}

/* ====================
   RECHARGE FORM
==================== */
.recharge-form {
    background: #f9fafb;
    padding: 2rem;
    border-radius: var(--mtw-border-radius);
    border: 2px solid #e5e7eb;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--mtw-border-radius);
    font-size: 1rem;
    transition: var(--mtw-transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--mtw-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.bank-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231f2937' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

/* ====================
   BUTTONS
==================== */
.btn-recharge {
    background: var(--mtw-gradient);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--mtw-border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--mtw-transition);
    box-shadow: var(--mtw-shadow);
    width: 100%;
}

.btn-recharge:hover {
    transform: translateY(-2px);
    box-shadow: var(--mtw-shadow-lg);
}

.btn-recharge:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ====================
   TRANSACTION HISTORY
==================== */
.transaction-history {
    margin-top: 2rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: var(--mtw-transition);
}

.transaction-item:hover {
    background: #f9fafb;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.transaction-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.transaction-amount {
    font-size: 1.25rem;
    font-weight: 700;
}

.transaction-amount.positive {
    color: var(--mtw-success);
}

.transaction-amount.negative {
    color: var(--mtw-danger);
}

/* ====================
   STATUS BADGES
==================== */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-failed {
    background: #fee2e2;
    color: #991b1b;
}

/* ====================
   QR CODE DISPLAY
==================== */
.qr-code-container {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--mtw-border-radius);
    box-shadow: var(--mtw-shadow);
    margin: 1.5rem 0;
}

.qr-code-container img {
    max-width: 300px;
    height: auto;
    border: 4px solid var(--mtw-primary);
    border-radius: var(--mtw-border-radius);
    padding: 1rem;
}

.bank-info {
    text-align: left;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: var(--mtw-border-radius);
    margin-top: 1.5rem;
}

.bank-info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.bank-info-item:last-child {
    border-bottom: none;
}

.bank-info-label {
    font-weight: 600;
    color: #6b7280;
}

.bank-info-value {
    font-weight: 700;
    color: #1f2937;
}

/* ====================
   ALERTS
==================== */
.wallet-alert {
    padding: 1rem 1.5rem;
    border-radius: var(--mtw-border-radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wallet-alert-success {
    background: #d1fae5;
    border-color: var(--mtw-success);
    color: #065f46;
}

.wallet-alert-error {
    background: #fee2e2;
    border-color: var(--mtw-danger);
    color: #991b1b;
}

.wallet-alert-info {
    background: #cffafe;
    border-color: #06b6d4;
    color: #164e63;
}

/* ====================
   LOADING STATE
==================== */
.loading-spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(30, 58, 138, 0.3);
    border-top-color: var(--mtw-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====================
   RESPONSIVE
==================== */
@media (max-width: 768px) {
    .muathemewpgiare-wallet-container {
        padding: 1rem;
    }
    
    .wallet-balance {
        font-size: 2rem;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .qr-code-container img {
        max-width: 250px;
    }
}
