/* Wallet System Custom CSS */

/* Wallet Stats Cards */
.wallet-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    border: none;
}

.wallet-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.wallet-stat-card.earned-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.wallet-stat-card.withdrawn-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.wallet-stat-card.pending-card {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.wallet-stat-card .card-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2.5rem;
    opacity: 0.3;
}

.wallet-stat-card .card-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.wallet-stat-card .card-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
    color: white;
}

/* Wallet Sidebar Styling */
.wallet-sidebar-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.wallet-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.wallet-balance-row:last-child {
    border-bottom: none;
}

.wallet-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.wallet-amount {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.wallet-actions-sidebar .btn {
    width: 100%;
    font-size: 12px;
    padding: 8px 12px;
    margin-bottom: 5px;
}

/* Transaction Styling */
.transaction-id {
    font-size: 0.8rem;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    font-family: 'Courier New', monospace;
}

.transaction-type.credit {
    color: #28a745;
    font-weight: 600;
}

.transaction-type.debit {
    color: #dc3545;
    font-weight: 600;
}

.amount-display {
    color: #495057;
    font-weight: 500;
    font-size: 1rem;
}

.amount-display.credit {
    color: #28a745;
    font-weight: 600;
    font-size: 1rem;
}

.amount-display.debit {
    color: #dc3545;
    font-weight: 600;
    font-size: 1rem;
}

.transaction-description {
    max-width: 200px;
    word-wrap: break-word;
}

.transaction-date {
    font-size: 0.9rem;
}

/* Withdrawal Styling - Basic fallback styles (main styles in blade file) */
.action-buttons {
    display: flex;
    gap: 5px;
}

.action-buttons .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* Withdrawal Form Styling */
.wallet-balance-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.balance-item {
    text-align: center;
    margin-bottom: 15px;
}

.balance-item h6 {
    margin-bottom: 8px;
    opacity: 0.9;
    color: white;
    font-size: 0.9rem;
}

.balance-item h4, .balance-item h5 {
    margin-bottom: 0;
    color: white;
    font-weight: 600;
}

.payment-details-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.fee-calculation .card {
    background: #e8f5e8;
    border: 1px solid #d4edda;
}

.wallet-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.wallet-actions .btn {
    flex: 1;
    min-width: 200px;
}

.withdrawal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Badge Colors */
.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.bg-info {
    background-color: #17a2b8 !important;
    color: white;
}

.bg-primary {
    background-color: #007bff !important;
    color: white;
}

.bg-success {
    background-color: #28a745 !important;
    color: white;
}

.bg-danger {
    background-color: #dc3545 !important;
    color: white;
}

.bg-secondary {
    background-color: #6c757d !important;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wallet-stat-card {
        margin-bottom: 15px;
    }
    
    .wallet-stat-card .card-icon {
        font-size: 2rem;
        right: 15px;
        top: 15px;
    }
    
    .wallet-stat-card .card-info h3 {
        font-size: 1.5rem;
    }
    
    .wallet-actions {
        flex-direction: column;
    }
    
    .wallet-actions .btn {
        width: 100%;
        margin-bottom: 10px;
        min-width: auto;
    }
    
    .withdrawal-actions {
        flex-direction: column;
    }
    
    .withdrawal-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 2px;
    }
    
    .transaction-description {
        max-width: 150px;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .wallet-stat-card {
        padding: 20px;
    }
    
    .wallet-stat-card .card-info h3 {
        font-size: 1.3rem;
    }
    
    .wallet-stat-card .card-info p {
        font-size: 0.8rem;
    }
    
    .balance-item h4 {
        font-size: 1.2rem;
    }
    
    .balance-item h5 {
        font-size: 1rem;
    }
}

/* Animation and transitions */
.wallet-stat-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Wallet Quick Action Button */
.wallet-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.wallet-btn:hover {
    background: linear-gradient(135deg, #e081e9 0%, #e3545a 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.3) !important;
    color: white !important;
}

/* Enhanced form styling */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Table enhancements */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.02);
}

.table th {
    border-top: none;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}

.table td {
    border-top: 1px solid #e9ecef;
    vertical-align: middle;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h5 {
    color: #6c757d;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 20px;
}
