/* Credits History Page Styles */
.aiinked-credits-history-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: "DM Sans Variable", sans-serif;
}

/* User Info Box */
#credits-history-user-info-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Header */
.credits-history-header {
    text-align: center;
    margin-bottom: 30px;
}

.credits-history-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.credits-history-subtitle {
    font-size: 16px;
    color: #666;
}

/* Table Container */
.credits-history-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    margin-bottom: 20px;
}

/* Table Styles */
.credits-history-table {
    width: 100%;
    border-collapse: collapse;
}

.credits-history-table thead {
    background-color: #464b46;
    color: white;
}

.credits-history-table th,
.credits-history-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.credits-history-table th {
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.credits-history-table td {
    font-size: 14px;
    color: #333;
}

.credits-history-table tbody tr:hover {
    background-color: #f5f5f5;
}

.loading-row td {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Status Badge */
.status-completed {
    color: #4CAF50;
    font-weight: bold;
}

.status-processing {
    color: #2196F3;
    font-weight: bold;
}

.status-refunded {
    color: #FF9800;
    font-weight: bold;
}

/* Pagination */
.credits-history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.pagination-btn:hover {
    background-color: #45a049;
}

.pagination-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

/* Empty State */
.credits-history-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .credits-history-table {
        font-size: 12px;
    }
    
    .credits-history-table th,
    .credits-history-table td {
        padding: 10px 8px;
    }
}
