/* Wallet Dashboard Styles */

.lsm-wallet-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lsm-wallet-header {
    margin-bottom: 30px;
}

.lsm-wallet-header h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    color: #333;
}

/* Balance Cards */
.lsm-wallet-balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lsm-balance-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lsm-balance-card.lsm-balance-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.lsm-balance-card.lsm-balance-primary .lsm-balance-label {
    color: rgba(255,255,255,0.9);
}

.lsm-balance-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 8px;
}

.lsm-balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.lsm-balance-card small {
    font-size: 11px;
    opacity: 0.7;
}

/* Wallet Actions */
.lsm-wallet-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.lsm-wallet-actions .lsm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Modal Styles */
.lsm-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lsm-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lsm-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.lsm-modal-close:hover,
.lsm-modal-close:focus {
    color: #000;
}

.lsm-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.lsm-form-group {
    margin-bottom: 20px;
}

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

.lsm-form-group input[type="number"],
.lsm-form-group input[type="text"],
.lsm-form-group select,
.lsm-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.lsm-form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.lsm-form-group small strong {
    color: #667eea;
}

.lsm-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.lsm-modal-actions .lsm-btn {
    flex: 1;
}

/* Transaction History */
.lsm-wallet-transactions {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
}

.lsm-wallet-transactions h3 {
    margin: 0 0 20px 0;
    color: #333;
}

.lsm-table-container {
    overflow-x: auto;
}

.lsm-transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.lsm-transactions-table thead {
    background: #f8f9fa;
}

.lsm-transactions-table th,
.lsm-transactions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.lsm-transactions-table th {
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lsm-transactions-table td {
    font-size: 14px;
}

.lsm-amount-positive {
    color: #28a745;
    font-weight: 600;
}

.lsm-amount-negative {
    color: #dc3545;
    font-weight: 600;
}

.lsm-status-pending {
    color: #ffc107;
    font-weight: 600;
}

.lsm-status-completed {
    color: #28a745;
    font-weight: 600;
}

.lsm-status-failed {
    color: #dc3545;
    font-weight: 600;
}

.lsm-status-locked {
    color: #6c757d;
    font-weight: 600;
}

.lsm-txn-notes {
    color: #666;
    font-style: italic;
}

.lsm-no-data {
    text-align: center;
    padding: 40px 20px !important;
    color: #999;
}

.lsm-pagination {
    margin-top: 20px;
    text-align: center;
}

/* Messages */
.lsm-message {
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.lsm-message.lsm-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lsm-message.lsm-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.lsm-message.lsm-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .lsm-wallet-balance-cards {
        grid-template-columns: 1fr;
    }
    
    .lsm-balance-amount {
        font-size: 24px;
    }
    
    .lsm-wallet-actions {
        flex-direction: column;
    }
    
    .lsm-transactions-table {
        font-size: 12px;
    }
    
    .lsm-transactions-table th,
    .lsm-transactions-table td {
        padding: 8px;
    }
}
