body {
	font-family: 'Arial', sans-serif;
	margin: 0;
	padding: 0;
}
.container {
	max-width: 1000px;
	margin: 40px auto;
	padding: 2rem;
	background: #111;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.1);
	color: #fff;
}
h2 {
	text-align: center;
	margin-bottom: 1.5rem;
}
form {
	margin-bottom: 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}
input, select, button {
	padding: 0.5rem;
	border-radius: 5px;
	border: none;
	font-size: 1rem;
}
button {
	background-color: #007BFF;
	color: white;
	cursor: pointer;
	min-width: 120px;
}
button:hover {
	background-color: #0056b3;
}
button.close-button {
	background-color: #dc3545;
}

button.close-button:hover {
	background-color: #c82333;
}
button.reopen-button {
	background-color: #fd7e14;
}
button.reopen-button:hover {
	background-color: #e36a06;
}
.create-button {
	width: 100%;
	padding: 0.75rem;
	background: #007F00;
	border: none;
	border-radius: 8px;
	color: white;
	font-size: 1rem;
	cursor: pointer;
	margin-top: 1rem;
}
.create-button:hover {
	background: #006600;
}	
.table-container {
	overflow-x: auto;
	width: 100%;
}
table {
	width: 100%;
	border-collapse: collapse;
	background: #222;
	min-width: 600px;
}
th, td {
	padding: 0.75rem;
	border: 1px solid #444;
}
th {
	text-align: center;
	background: #333;
}
.actions form {
	display: flex;
	margin: 0;
	vertical-align: middle;  
	text-align: center;    
	height: 100%;
	white-space: nowrap; 
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.actions form button {
	min-width: 80px;
}
.form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	margin-bottom: 1rem;
}
.credit-info-container {
	display: flex;
	justify-content: center;
	gap: 2rem;
	padding: 2rem;
	background-color: #999;	/* #f9f9f9; */
	border-radius: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	margin-bottom: 2rem;
}
.credit-box-green {
	width: 200px;
	padding: 20px;
	border-radius: 15px;
	text-align: center;
	background-color: #4CAF50;
	color: white;
	border: none;
	font: inherit;
}
.credit-box-blue {
	width: 200px;
	padding: 20px;
	border-radius: 15px;
	text-align: center;
	background-color: #2196F3;
	color: white;
	cursor: pointer;
	transition: transform 0.2s ease;
	border: none;
	font: inherit;
}
.credit-box-blue:hover {
	transform: scale(1.03);
}
.credit-value {
	font-size: 36px;
	font-weight: bold;
}
.credit-label {
	font-size: 18px;
	margin-top: 10px;
}
.credit-note {
	font-size: 12px;
	margin-top: 10px;
}
.credit-link {
	color: #fff;
	text-decoration: underline;
	font-weight: bold;
}
.credit-link:hover {
	text-decoration: none;
}
.cart-link {
	position: fixed;
	top: 100px;
	right: 20px;
	text-decoration: none;
	z-index: 999;
	transition: transform 0.2s ease;
}
.cart-link:hover {
	transform: scale(1.1);
}
.cart-icon {
	position: relative;
	width: 60px;
	height: 60px;
	cursor: pointer;
}
.cart-icon img {
	width: 100%;
	height: auto;
}
.cart-count {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: red; /* You can change this color */
	font-size: 22px;
	font-weight: bold;
	padding: 0; /* Remove extra padding */
	min-width: 0; /* Remove min width */
	background: none; /* Remove background */
	border-radius: 0; /* No rounding */
	text-align: center;
	pointer-events: none;
	
	/* White outline */
	text-shadow:
		-1px -1px 0 white,
		 1px -1px 0 white,
		-1px  1px 0 white,
		 1px  1px 0 white;
}
.bounce {
	animation: bounce 1s infinite alternate;
}
@keyframes bounce {
	0%   { transform: translateY(0); }
	100% { transform: translateY(-5px); }
}

.toast {
		position: fixed;
		bottom: 20px;
		right: 20px;
		padding: 15px 20px;
		color: white;
		border-radius: 5px;
		z-index: 9999;
		animation: fadeOut 4s forwards;
}

.toast.success { background-color: #28a745; }
.toast.error   { background-color: #dc3545; }
.toast.info    { background-color: #17a2b8; }
.toast.warning { background-color: #ffc107; color: #212529; }

@keyframes fadeOut {
		0%   { opacity: 1; }
		80%  { opacity: 1; }
		100% { opacity: 0; display: none; }
}

.pagination {
	display: flex;
	justify-content: center;
	margin: 20px 0;
}

.pagination a {
	color: #666;
	background-color: #f0f0f0;
	border: 1px solid #ddd;
	margin: 0 4px;
	padding: 8px 14px;
	text-decoration: none;
	border-radius: 6px;
	transition: background-color 0.2s, color 0.2s;
	font-size: 14px;
}

.pagination a:hover:not(.active):not(.disabled) {
	background-color: #e0e0e0;
	color: #000;
}

.pagination a.active {
	background-color: #007bff;
	color: #fff;
	border-color: #007bff;
	font-weight: bold;
}

.pagination a.disabled {
	pointer-events: none;
	background-color: #e9e9e9;
	color: #aaa;
	border-color: #ddd;
}

.error-message {
	background: #ffe0e0;
	color: #b30000;
	padding: 0.75rem;
	border: 1px solid #ffb3b3;
	border-radius: 8px;
	margin-top: 1rem;
	margin-bottom: 1rem;
	text-align: center;
}

.warning-message {
		background: #fff8e1;  /* Light yellow background */
		color: #996600;       /* Dark golden text */
		padding: 0.75rem;
		border: 1px solid #ffdd99;  /* Soft orange-yellow border */
		border-radius: 8px;
		margin-top: 1rem;
		margin-bottom: 1rem;
		text-align: center;
}

.success-message {
		background: #e0ffe0;  /* Light green background */
		color: #006600;       /* Dark green text */
		padding: 0.75rem;
		border: 1px solid #b3ffb3;  /* Light green border */
		border-radius: 8px;
		margin-top: 1rem;
		margin-bottom: 1rem;
		text-align: center;
}