/* Xavi Wallets Frontend Styles */

/* Loading states */
.xavi-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Badges */
.xavi-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.xavi-badge-credit {
    background: #d4edda;
    color: #155724;
}

.xavi-badge-debit {
    background: #f8d7da;
    color: #721c24;
}

/* Forms */
.xavi-form-group {
    margin-bottom: 20px;
}

.xavi-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.xavi-form-group input,
.xavi-form-group select,
.xavi-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.xavi-form-group input:focus,
.xavi-form-group select:focus,
.xavi-form-group textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Buttons */
.xavi-button {
    display: inline-block;
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.xavi-button:hover {
    background: #45a049;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.xavi-button-secondary {
    background: #6c757d;
}

.xavi-button-secondary:hover {
    background: #5a6268;
}

.xavi-button-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Tables */
.xavi-transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.xavi-transactions-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.xavi-transactions-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.xavi-transactions-table tr:hover {
    background: #f8f9fa;
}

.xavi-transactions-table tr:last-child td {
    border-bottom: none;
}

/* Credit/Debit colors */
.credit {
    color: #28a745;
    font-weight: bold;
}

.debit {
    color: #dc3545;
    font-weight: bold;
}

/* Pagination */
.xavi-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.xavi-pagination .button {
    padding: 8px 16px;
    min-width: 100px;
}

.xavi-pagination .page-info {
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #666;
}

/* Wallet Dashboard */
.xavi-wallet-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.xavi-wallet-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.xavi-wallet-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: white;
}

.xavi-wallet-header .subtitle {
    opacity: 0.9;
    font-size: 18px;
}

.xavi-balance-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.balance-amount .amount {
    font-size: 48px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 10px;
}

.balance-amount .label {
    font-size: 16px;
    color: #666;
}

.xavi-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.xavi-stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.xavi-stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content .stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-content .stat-label {
    color: #666;
    font-size: 14px;
}

/* Quick Actions */
.xavi-quick-actions {
    margin-bottom: 40px;
}

.xavi-quick-actions h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    text-align: center;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    color: #333;
    border-color: #4CAF50;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.action-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.action-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.action-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Recent Transactions */
.xavi-recent-transactions {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.xavi-recent-transactions h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.view-all {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.view-all a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.view-all a:hover {
    text-decoration: underline;
}

/* Filters */
.xavi-filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.xavi-filters select,
.xavi-filters input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 10px;
    min-width: 150px;
}

.xavi-filters .button {
    padding: 10px 20px;
    height: auto;
}

/* Refer & Earn Page */
.xavi-refer-earn {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.refer-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 10px;
}

.refer-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: white;
}

.refer-header .subtitle {
    opacity: 0.9;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.refer-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 10px;
}

.stat-card .stat-label {
    color: #666;
    font-size: 14px;
}

/* Share Section */
.refer-share-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.share-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.share-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.code-display,
.link-display {
    display: flex;
    gap: 10px;
}

.code-display input,
.link-display input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    background: #f8f9fa;
}

.copy-btn {
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #45a049;
}

/* Share Buttons */
.share-buttons {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.share-buttons h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.social-share {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px,