/* Payment History Responsive Styles */
.payment-history-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.payment-history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.payment-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-card-body {
    padding: 0;
}

/* Desktop Table View */
.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.payment-table th {
    padding: 1rem;
    text-align: center;
    color: #ffffff;
    border: none;
}

.payment-table td {
    padding: 1rem;
    text-align: center;
    vertical-align: middle;
}

.payment-table tbody tr {
    transition: background-color 0.15s ease-in-out;
}

.payment-table tbody tr:hover {
    background-color: #f9fafb;
}

.payment-activity-info {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 0.75rem;
    margin-left: 1rem;
}

.payment-activity-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #fc4c02 0%, #ff6b35 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.payment-activity-icon i {
    color: white;
    font-size: 1.5rem;
}

.payment-activity-details{
    margin-left: 1rem;;
}

.payment-activity-details h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
    text-align: left;
}

.payment-activity-location {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.payment-activity-stats {
    font-size: .875em;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 0.75rem;
}


/* Mobile Card View */
.payment-mobile {
    display: none;
}

.payment-mobile-card {
    border-left: 4px solid var(--strava-orange);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.15s ease-in-out;
    padding: 1.2rem;
}

.payment-mobile-card:hover{
    transform: translateX(4px);
}



.payment-mobile-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.payment-mobile-activity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.payment-mobile-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #fc4c02 0%, #ff6b35 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.payment-mobile-icon i {
    color: white;
    font-size: 1.125rem;
}

.payment-mobile-details h6 {
    margin: 0 0 0.25rem 0;
    color: #ffffff;
}

.payment-mobile-stats {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    gap: 0.75rem;
}

.payment-mobile-meta {
    text-align: right;
    flex-shrink: 0;
}

.payment-mobile-body {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.payment-mobile-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.payment-mobile-date .date {
    font-weight: 500;
    color: #111827;
}

/* Empty State */
.payment-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.payment-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    margin-bottom: 1.5rem;
}

.payment-empty-icon i {
    font-size: 3rem;
    color: #9ca3af;
}

.payment-empty-state h4 {
    color: #ffffff;
}


.payment-empty-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.payment-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.payment-empty-btn.primary {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
}

.payment-empty-btn.primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.payment-empty-btn.outline {
    background: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.payment-empty-btn.outline:hover {
    background: #3b82f6;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Info Section */
.payment-info-section {
    margin-top: 3rem;
}

.payment-info-card {
    background: var(--luxury-card);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--luxury-border);
    padding: 2rem;
    max-width: 48rem;
    margin: 0 auto;
    transition: all 0.3s ease;
    overflow: hidden;
}

.payment-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    /* border-color: rgba(252, 76, 2, 0.3); */
    border-color: var(--strava-orange-light);
}



.payment-info-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.payment-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.payment-info-item i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.payment-info-item .text-success {
    color: #059669;
}

.payment-info-item .text-info {
    color: #0891b2;
}

.payment-info-item .text-primary {
    color: #3b82f6;
}

.payment-info-item h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.payment-info-item small {
    color: #6b7280;
    line-height: 1.4;
}

/* Pagination */
.payment-pagination {
    margin-top: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    color: #6b7280;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    min-width: 2.5rem;
    height: 2.5rem;
}

.page-link:hover {
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
}

.page-item.active .page-link {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .payment-table {
        display: none;
    }
    
    .payment-mobile {
        display: block;
        padding: 1rem;
    }
    
    .payment-history-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .payment-header-content {
        text-align: center;
    }
    
    .payment-header-content h2 {
        font-size: 1.5rem;
    }
    
    .browse-routes-btn {
        justify-content: center;
        padding: 1rem;
    }
    
    .payment-card-header {
        padding: 1rem;
    }
    
    .payment-card-title {
        font-size: 1.125rem;
    }
    
    .payment-mobile-card {
        margin-bottom: 1rem;
    }
    
    .payment-mobile-header {
        padding: 0.75rem;
    }
    
    .payment-mobile-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .payment-mobile-icon i {
        font-size: 1rem;
    }
    
    .payment-mobile-stats {
        font-size: 0.7rem;
        gap: 0.5rem;
    }
    
    .payment-mobile-amount {
        font-size: 1rem;
    }
    
    .payment-mobile-body {
        padding: 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .payment-mobile-date {
        text-align: center;
        font-size: 0.8rem;
    }
    
    .payment-empty-state {
        padding: 2rem 1rem;
    }
    
    .payment-empty-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .payment-empty-icon i {
        font-size: 2rem;
    }
    
    .payment-empty-state h4 {
        font-size: 1.25rem;
    }
    
    .payment-empty-state p {
        font-size: 1rem;
    }
    
    .payment-empty-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .payment-empty-btn {
        justify-content: center;
        padding: 1rem;
    }
    
    .payment-info-section {
        margin-top: 2rem;
    }
    
    .payment-info-card {
        padding: 1.5rem;
    }
    
    .payment-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .payment-info-item i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .payment-history-container {
        padding: 0.5rem;
    }
    
    .payment-mobile-header,
    .payment-mobile-body {
        padding: 0.5rem;
    }
    
    .payment-mobile-stats {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
    
    .payment-info-card {
        padding: 1rem;
    }
    
    .pagination {
        gap: 0.125rem;
    }
    
    .page-link {
        padding: 0.375rem 0.5rem;
        min-width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}

/* Hover effects for better UX */
.payment-mobile-card:hover .payment-mobile-icon {
    transform: scale(1.05);
    transition: transform 0.15s ease-in-out;
}

.payment-status-badge:hover {
    transform: translateY(-1px);
    transition: transform 0.15s ease-in-out;
}