/* Base layout */
body {
	font-family: sans-serif;
	background: #f0f0f0;
	padding: 20px;
}

.container {
	margin: auto;
	background: #fff;
	padding: 25px;
	border-radius: 10px;
	box-shadow: 0 0 10px #ccc;
}

/* Navbar */
.navbar {
	text-align: center;
	margin-bottom: 20px;
	background: #eee;
	padding: 10px;
	border-radius: 8px;
}

.navbar a {
	margin: 0 15px;
	text-decoration: none;
	color: #333;
	font-weight: bold;
}

.navbar a.active {
	color: #2d89ef;
	border-bottom: 2px solid #2d89ef;
}

.navbar a.logout {
	color: red;
}

/* Headings */
h2,
h3 {
	text-align: center;
	margin-bottom: 20px;
}

/* Forms */
form {
	margin: 15px 0;
}

input,
select {
	width: 100%;
	padding: 10px;
	margin: 6px 0;
	border: 1px solid #ccc;
	border-radius: 5px;
	box-sizing: border-box;
}

/* Buttons */
button {
	padding: 6px 10px;
	background: #2d89ef;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	line-height: 1.2;
}

button:hover {
	background: #1b5fa4;
}

.danger {
	background: #d9534f;
}

.muted {
	background: #777;
}

/* Tables */
table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

th,
td {
	border: 1px solid #ccc;
	padding: 8px;
}

th {
	background: #eee;
}

/* Button group (compact) */
.btn-group {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.btn-group button {
	padding: 4px 8px;
	font-size: 11px;
}

/* Modal */
.modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.modal.hidden {
	display: none;
}

.modal-content {
	background: #fff;
	width: 720px;
	max-width: 95vw;
	max-height: 80vh;
	overflow: auto;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
	padding: 14px 18px;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-title {
	margin: 0;
	font-size: 1.1rem;
}

.modal-close {
	background: transparent;
	color: #333;
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
}

.modal-body {
	padding: 18px;
}

.modal-footer {
	padding: 12px 18px;
	border-top: 1px solid #eee;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

/* Grid helpers */
.grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.grid label {
	display: block;
	font-size: 12px;
	margin-bottom: 4px;
}

.grid input,
.grid select,
.grid textarea {
	width: 100%;
}

/* Utility */
#qrArea {
	text-align: center;
	margin-top: 20px;
}

textarea {
	width: 100%;
	padding: 10px;
	margin: 6px 0;
	border: 1px solid #ccc;
	border-radius: 5px;
	box-sizing: border-box;
}