/* Public CSS */

/* Balance Widget */
.user-wallet-balance-widget {
    margin: 20px 0;
}

.wallet-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wallet-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.wallet-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
}

.wallet-status-active {
    background: rgba(76, 175, 80, 0.3);
}

.wallet-status-suspended {
    background: rgba(244, 67, 54, 0.3);
}

.wallet-balance {
    text-align: center;
    margin: 30px 0;
}

.balance-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
}

.balance-amount .currency {
    font-size: 24px;
    opacity: 0.8;
}

.wallet-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item {
    text-align: center;
}

.info-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
}

.info-value code {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* History Widget */
.user-wallet-history-widget {
    margin: 20px 0;
}

.user-wallet-history-widget h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.wallet-transactions {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item:hover {
    background: #f9f9f9;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    margin-right: 15px;
}

.transaction-icon .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.transaction-details {
    flex: 1;
}

.transaction-description {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.transaction-date {
    font-size: 12px;
    color: #999;
}

.transaction-amount {
    text-align: right;
    min-width: 120px;
}

.transaction-amount .amount {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 3px;
}

.transaction-amount .amount.credit {
    color: #4caf50;
}

.transaction-amount .amount.debit {
    color: #f44336;
}

.transaction-amount .balance-after {
    font-size: 11px;
    color: #999;
}

.no-transactions {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .wallet-info {
        grid-template-columns: 1fr;
    }
    
    .balance-amount {
        font-size: 36px;
    }
    
    .transaction-item {
        flex-wrap: wrap;
    }
    
    .transaction-amount {
        width: 100%;
        text-align: left;
        margin-top: 10px;
        padding-left: 55px;
    }
}
