:root {
	--primary: #4f46e5;
	--secondary: #22c55e;
	--bg: #f8fafc;
	--card: #ffffff;
	--text: #1e293b;
	--muted: #64748b;
}

* {
	box-sizing: border-box;
	font-family: "Tahoma", system-ui, sans-serif;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
}

.wait {
	cursor: wait;
	opacity: 0.6;
}

h1 {
	text-align: center;
	padding: 40px 20px 10px;
}

.form-data {
	max-width: 500px;
	margin: 30px auto;
	background: var(--card);
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,.08);
	display: flex;
	gap: 10px;
}

.form-data input {
	flex: 1;
	padding: 12px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	font-size: 15px;
}

.form-data button {
	padding: 12px 18px;
	border: none;
	background: var(--primary);
	color: #fff;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
}

.form-data button:hover {
	opacity: .9;
}

.pin-container {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 40px;
}

.code-input {
	width: 50px;
	height: 50px;
	font-size: 24px;
	text-align: center;
	border-radius: 8px;
	border: 2px solid #999;
}

.code-input:focus {
	border-color: #007bff;
	outline: none;
}

.pin-input::placeholder {
	color: #bbb;
	font-size: 24px;
	text-align: center;
}

.code-input.error {
	border-color: #e74c3c;
	animation: shake 0.25s;
}

@keyframes shake {
	0% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-6px);
	}
	50% {
		transform: translateX(6px);
	}
	75% {
		transform: translateX(-4px);
	}
	100% {
		transform: translateX(0);
	}
}

.timeline {
	position: relative;
	max-width: 900px;
	margin: 40px auto;
	padding: 20px 0;
}

.timeline::after {
	content: '';
	position: absolute;
	width: 4px;
	background: var(--primary);
	top: 0;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 2px;
}

.timeline-item {
	position: relative;
	width: 50%;
	padding: 20px 40px;
}

.timeline-item.left {
	left: 0;
	text-align: right;
}

.timeline-item.right {
	left: 50%;
	text-align: left;
}

.timeline-item::before {
	content: '';
	position: absolute;
	top: 30px;
	width: 16px;
	height: 16px;
	background: var(--secondary);
	border-radius: 50%;
	z-index: 1;
}

.timeline-item.left::before {
	right: -8px;
}

.timeline-item.right::before {
	left: -8px;
}

.timeline-card {
	background: var(--card);
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,.08);
	transition: transform .3s, box-shadow .3s;
}

.timeline-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 35px rgba(0,0,0,.12);
}

.timeline-date {
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 8px;
}

.timeline-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 6px;
}


.table-wrapper {
	overflow-x: auto;
	margin-top: 12px;
	border-radius: 8px;
}

.table-wrapper::-webkit-scrollbar {
	height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb {
	background: #c7d2fe;
	border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
	background: #a5b4fc;
}

.log-table {
	/*min-width: 650px;*/
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
	text-align: left;
}

.log-table th,
.log-table td {
	white-space: nowrap;
	padding: 8px;
}

.log-footer {
	margin-top: 10px;
}

@media (max-width: 768px) {
	.timeline::after {
		left: 20px;
	}

	.timeline-item {
		width: 100%;
		padding-left: 60px;
		padding-right: 20px;
		text-align: left;
	}

	.timeline-item.left,
	.timeline-item.right {
		left: 0;
		text-align: left;
	}

	.timeline-item::before,
	.timeline-item.right:before {
		left: 12px;
	}
}

