* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	padding: 20px;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	padding: 30px;
}

h1 {
	color: #333;
	margin-bottom: 30px;
	text-align: center;
	font-size: 2em;
}

.controls {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr auto;
	gap: 15px;
	margin-bottom: 25px;
}

.reset-btn {
	padding: 12px 20px;
	white-space: nowrap;
}

.search-box, .filter-box {
	position: relative;
}

input, select {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.3s;
}

input:focus, select:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.table-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding: 10px 15px;
	background: #f8f9ff;
	border-radius: 8px;
}

.info-left {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.entries-select {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666;
}

.entries-select select {
	width: auto;
	padding: 6px 10px;
	font-size: 14px;
}

.pagination-info {
	color: #666;
	font-size: 14px;
}

.table-container {
	overflow-x: auto;
	margin-bottom: 20px;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

table {
	width: 100%;
	border-collapse: collapse;
	background: white;
}

thead {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

th {
	padding: 15px;
	text-align: left;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.5px;
}

td {
	padding: 12px 15px;
	border-bottom: 1px solid #f0f0f0;
}

tbody tr {
	transition: background 0.2s;
}

tbody tr:hover {
	background: #f8f9ff;
}

tbody tr:last-child td {
	border-bottom: none;
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
}

.pagination-info {
	color: #666;
	font-size: 14px;
}

.pagination-buttons {
	display: flex;
	gap: 10px;
}

button {
	padding: 10px 20px;
	border: none;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s;
	font-size: 14px;
}

button:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:disabled {
	background: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

.page-numbers {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	justify-content: center;
}

.page-btn {
	padding: 8px 12px;
	min-width: 40px;
	font-size: 13px;
}

.page-btn.active {
	background: #764ba2;
	box-shadow: 0 3px 10px rgba(118, 75, 162, 0.4);
}

.loading {
	text-align: center;
	padding: 40px;
	color: #667eea;
	font-size: 18px;
}

.error {
	background: #fee;
	border: 1px solid #fcc;
	color: #c33;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.no-data {
	text-align: center;
	padding: 40px;
	color: #999;
	font-size: 16px;
}

.card-container {
	display: none;
}

.card {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 15px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.card-row:last-child {
	border-bottom: none;
}

.card-label {
	font-weight: 600;
	color: #667eea;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.card-value {
	color: #333;
	font-size: 14px;
	text-align: right;
}

@media (max-width: 768px) {
	.controls {
		grid-template-columns: 1fr;
	}

	.table-container {
		display: none;
	}

	.card-container {
		display: block;
	}

	.pagination-buttons {
		flex-wrap: wrap;
		gap: 8px;
	}

	.pagination-buttons > button {
		font-size: 12px;
		padding: 8px 12px;
	}

	.page-numbers {
		gap: 4px;
	}

	.page-btn {
		padding: 6px 10px;
		min-width: 32px;
		font-size: 12px;
	}

	.page-numbers span {
		padding: 6px 4px !important;
		font-size: 12px;
	}

	.table-info {
		flex-direction: column;
		gap: 10px;
	}

	.info-left {
		flex-direction: column;
		width: 100%;
		gap: 10px;
	}
}