.nbo-admin-panel,
.nbo-admin-panel * {
	box-sizing: border-box;
}

.nbo-admin-panel {
	max-width: 960px;
	margin: 2rem auto;
	padding: 0 1rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nbo-message {
	padding: 0.75rem 1rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.nbo-message--error {
	background: #fdecea;
	color: #611a15;
	border: 1px solid #f5c6cb;
}

.nbo-message--success {
	background: #dff5e3;
	color: #0d4f1a;
	border: 1px solid #46b450;
}

.nbo-login-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.nbo-login-form input[type="text"],
.nbo-login-form input[type="password"] {
	width: 100%;
	max-width: 320px;
	padding: 0.5rem;
	margin-bottom: 1rem;
}

/*
 * Alle Textfelder haben einen weißen (Browser-Standard-)Hintergrund. Ohne
 * eigene Farbdefinition übernehmen sie sonst die Textfarbe des jeweiligen
 * Themes (z. B. helle Schrift bei dunklen Themes), was auf Weiß praktisch
 * unlesbar wird. Deshalb hier fest schwarz auf weiß erzwingen.
 */
.nbo-admin-panel input[type="text"],
.nbo-admin-panel input[type="password"] {
	background: #fff;
	color: #1d2327;
}

.nbo-panel-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-bottom: 1.5rem;
}

.nbo-panel-user {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
	font-weight: 600;
	color: #50575e;
}

.nbo-panel-header form {
	margin: 0;
	flex: 0 0 auto;
}

.nbo-logout,
.nbo-toggle-password {
	background: transparent;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 0.4rem 0.9rem;
	cursor: pointer;
}

.nbo-password-box {
	max-width: 360px;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	color: #1d2327;
}

.nbo-password-box h2,
.nbo-password-box p,
.nbo-password-box label {
	color: #1d2327;
}

.nbo-password-box h2 {
	margin-top: 0;
	font-size: 1.1rem;
}

.nbo-password-box input[type="password"],
.nbo-password-box input[type="text"] {
	width: 100%;
	padding: 0.5rem;
	margin-bottom: 1rem;
}

.nbo-tile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1rem;
}

.nbo-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1.5rem 1rem;
	border-radius: 8px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	text-decoration: none;
	color: #1d2327;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.nbo-tile:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
	color: #1d2327;
}

.nbo-tile-icon {
	font-size: 32px;
	width: 32px;
	height: 32px;
}

.nbo-tile-label {
	font-weight: 600;
	text-align: center;
}

@media (max-width: 480px) {
	.nbo-admin-panel {
		margin: 1rem auto;
	}

	.nbo-panel-header {
		justify-content: center;
		text-align: center;
	}

	.nbo-panel-user {
		flex-basis: 100%;
		text-align: center;
	}

	.nbo-tile-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}
}
