/* ===== Credit Purchase History (credit-purchase-history.php) ===== */
.history-card {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 28px;
	padding: 40px;
	box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.5);
	animation: sidetalk-history-fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
	margin-bottom: 40px;
}

@keyframes sidetalk-history-fadeIn {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.history-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 14px;
	margin-top: 20px;
}

.history-table th {
	padding: 10px 24px 10px 24px;
	text-align: left;
	color: #64748b;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: -0.5px;
	border-bottom: 1px solid #f1f5f9;
}

.history-table tr.item-row {
	background: var(--st-bg-primary);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.history-table tr.item-row:hover {
	transform: translateY(-4px) scale(1.005);
	box-shadow: 0 10px 25px rgba(0, 176, 237, 0.1);
	z-index: 2;
}

.history-table td {
	padding: 24px;
	font-size: 15px;
	color: #2c3e50;
	border-top: 1px solid #f9f9f9;
	border-bottom: 1px solid #f9f9f9;
}

.history-table td:first-child {
	border-radius: 20px 0 0 20px;
	border-left: 1px solid #f9f9f9;
}

.history-table td:last-child {
	border-radius: 0 20px 20px 0;
	border-right: 1px solid #f9f9f9;
}

.history-table th.text-center,
.history-table td.text-center {
	text-align: center !important;
}

.history-table th.text-right,
.history-table td.text-right {
	text-align: right !important;
}

.history-table .flex-center {
	display: flex;
	justify-content: center;
	align-items: center;
}

.history-table .flex-right {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: var(--st-radius-xl);
	font-size: 12px;
	font-weight: 700;
}

.status-purchase {
	background: #e3f2fd;
	color: #007aff;
}

.status-bonus {
	background: var(--st-success-light);
	color: var(--st-success);
}

.status-expired {
	background: var(--st-danger-light);
	color: var(--st-danger);
}

.filter-btn {
	padding: 10px 20px;
	border-radius: 15px;
	background: var(--st-bg-primary);
	border: 1px solid var(--st-border-light);
	color: var(--st-text-light-gray);
	font-weight: 600;
	cursor: pointer;
	transition: all var(--st-transition-normal);
}

.filter-btn.active {
	background: var(--st-primary);
	color: var(--st-text-inverse);
	border-color: var(--st-primary);
}

/* Pagination */
.pagination-btn {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--st-bg-primary);
	border: 1px solid #e2e8f0;
	border-radius: var(--st-radius-xl);
	color: #64748b;
	font-weight: 600;
	text-decoration: none !important;
	transition: all var(--st-transition-normal);
}

.pagination-btn:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #0f172a;
	transform: translateY(-2px);
}

.pagination-btn.active {
	background: var(--st-primary);
	border-color: var(--st-primary);
	color: var(--st-text-inverse);
	box-shadow: 0 4px 12px rgba(0, 176, 237, 0.2);
}
