/* Wallet System Styles */
.wallet-balance-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.wallet-balance-summary .balance-amount {
    font-size: 3em;
    font-weight: bold;
    margin: 20px 0;
}

.wallet-balance-summary .wallet-actions .button {
    margin: 0 10px;
    background: white;
    color: #667eea;
}

.wallet-balance-summary .wallet-actions .button.alt {
    background: transparent;
    border: 2px solid white;
    color: white;
}

/* Wallet Card */
.wallet-balance-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.wallet-balance-card .balance-amount {
    font-size: 2.5em;
    color: #4CAF50;
    font-weight: bold;
    margin: 20px 0;
}

/* Transactions */
.recent-transactions {
    margin-top: 30px;
}

.transaction-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.transaction-credit {
    background: #d4edda;
    color: #155724;
}

.transaction-debit {
    background: #f8d7da;
    color: #721c24;
}

/* Modal */
/* Modal Styles - Fix */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal-content {
    padding: 0;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h5 {
    margin: 0;
    font-size: 1.25rem;
}

.close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.payment-method {
    border: 2px solid #eee;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s;
    text-align: center;
}

.payment-method:hover {
    border-color: #667eea;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method label {
    display: block;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.payment-method input[type="radio"]:checked + label {
    font-weight: bold;
    color: #667eea;
}

.payment-method input[type="radio"]:checked ~ .payment-method {
    border-color: #667eea;
    background: #f8f9ff;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Amount Input */
.amount-input-group {
    position: relative;
}

.amount-input-group .currency {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.amount-input-group input {
    padding-left: 35px;
}

/* Quick Amount Buttons */
.quick-amounts {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.quick-amount-btn {
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-amount-btn:hover {
    background: #e9ecef;
}

.quick-amount-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}
/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.payment-method {
    border: 2px solid #eee;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.payment-method input:checked + label {
    font-weight: bold;
}

.payment-method:hover {
    border-color: #667eea;
}

/* Admin Styles */
.wallet-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 1em;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .wallet-balance-summary .balance-amount {
        font-size: 2em;
    }
    
    .wallet-balance-summary .wallet-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
}
/* Currency-specific styles */
.currency-gbp .amount-input-group .currency:before {
    content: "£";
}

.currency-eur .amount-input-group .currency:before {
    content: "€";
}

.currency-inr .amount-input-group .currency:before {
    content: "₹";
}

.currency-jpy .amount-input-group .currency:before {
    content: "¥";
}

/* Add currency class to body or modal */
body.wallet-currency-gbp .amount-input-group .currency {
    font-family: Arial, sans-serif; /* Some fonts display £ better */
}

/* Quick amounts styling based on currency */
.quick-amount-btn {
    min-width: 80px;
    padding: 10px 5px;
}

/* For currencies with longer symbols */
.currency-long-symbol .quick-amount-btn {
    min-width: 100px;
    font-size: 0.9em;
}
/* Payment Instructions */
.payment-instructions {
    max-height: 70vh;
    overflow-y: auto;
}

.bank-details .bank-account {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 3px solid #0073aa;
}

.bank-details .bank-account h5 {
    margin-top: 0;
    color: #0073aa;
}

.important-notes ul {
    padding-left: 20px;
}

.important-notes li {
    margin-bottom: 8px;
}

/* Admin Pending Orders */
.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #f8d7da;
    color: #721c24;
}

.status-on-hold {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.verified-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 3px;
    font-size: 12px;
}

.action-buttons form {
    margin-right: 5px;
}

.action-buttons .button-small {
    padding: 4px 10px;
    font-size: 12px;
}