/* Baloan Wallet Styles */

.baloan-wallet-balance {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.baloan-wallet-balance h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.balance-amount {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.baloan-wallet-transactions {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.baloan-wallet-transactions h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.transactions-table th,
.transactions-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.transactions-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.transactions-table td.positive {
    color: #28a745;
    font-weight: 600;
}

.transactions-table td.negative {
    color: #dc3545;
    font-weight: 600;
}

/* My Account Wallet Page */
.baloan-wallet-page {
    max-width: 800px;
    margin: 0 auto;
}

.wallet-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.wallet-balance-card h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
}

.wallet-balance-card .balance-amount {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.wallet-transactions {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wallet-transactions h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 20px;
    border-bottom: 3px solid #f0f0f0;
    padding-bottom: 15px;
}

.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.woocommerce-orders-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.woocommerce-orders-table td {
    font-size: 14px;
}

.woocommerce-orders-table td.positive {
    color: #28a745;
    font-weight: 600;
}

.woocommerce-orders-table td.negative {
    color: #dc3545;
    font-weight: 600;
}

/* Admin Wallet Management */
.baloan-admin-wallet {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.baloan-admin-wallet h2 {
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .transactions-table,
    .woocommerce-orders-table {
        font-size: 12px;
    }
    
    .transactions-table th,
    .transactions-table td,
    .woocommerce-orders-table th,
    .woocommerce-orders-table td {
        padding: 8px 5px;
    }
    
    .wallet-balance-card {
        padding: 20px;
    }
    
    .wallet-balance-card .balance-amount {
        font-size: 24px;
    }
    
    .wallet-transactions {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .transactions-table,
    .woocommerce-orders-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .baloan-wallet-balance,
    .wallet-balance-card {
        margin: 10px 0;
        padding: 15px;
    }
    
    .balance-amount {
        font-size: 20px;
    }
}

/* Animation for balance updates */
@keyframes balanceUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.balance-update-animation {
    animation: balanceUpdate 0.5s ease-in-out;
}

/* Loading state */
.wallet-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.wallet-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error states */
.wallet-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
}

.wallet-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #c3e6cb;
    margin: 10px 0;
}

/* Empty state */
.wallet-empty {
    text-align: center;
    padding: 40px;
    color: #666;
}

.wallet-empty::before {
    content: '💰';
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
} 