/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Roboto', Arial, sans-serif; color: #3c4043; background: #f5f7fa; }
a { text-decoration: none; color: #1a73e8; }
button, input, textarea, select { font-family: inherit; font-size: 14px; }
button { cursor: pointer; border: none; }

/* ── Login ── */
body.login {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e8f0fe;
}
.login-card {
	background: #fff;
	padding: 32px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	width: 100%;
	max-width: 360px;
}
.login-card h1 {
	font-size: 20px;
	margin-bottom: 20px;
	text-align: center;
}
.login-card label span {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 6px;
	color: #5f6368;
}
.login-card input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #dadce0;
	border-radius: 6px;
	margin-bottom: 16px;
	outline: none;
}
.login-card input:focus { border-color: #1a73e8; }
.login-card button {
	width: 100%;
	padding: 12px;
	background: #1a73e8;
	color: #fff;
	border-radius: 6px;
	font-weight: 500;
}
.login-card button:hover { background: #1557b0; }
.error {
	color: #d93025;
	font-size: 13px;
	margin-bottom: 12px;
	text-align: center;
}

/* ── Admin Layout ── */
body.admin, body.editor {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.admin-header {
	background: #fff;
	padding: 14px 24px;
	border-bottom: 1px solid #dadce0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.admin-header h1 { font-size: 18px; font-weight: 500; }
.admin-header a { color: #1a73e8; font-size: 14px; }
.logout { color: #d93025; }

.admin-main {
	flex: 1;
	display: flex;
	overflow: hidden;
}

.admin-sidebar {
	width: 240px;
	background: #fff;
	border-right: 1px solid #dadce0;
	padding: 20px 16px;
	overflow-y: auto;
}
.admin-sidebar h2 {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #5f6368;
	margin-bottom: 14px;
}
.nav-group { margin-bottom: 18px; }
.nav-group strong {
	display: block;
	font-size: 13px;
	color: #3c4043;
	margin-bottom: 6px;
}
.nav-group ul { list-style: none; }
.nav-group li a {
	display: block;
	padding: 6px 10px;
	font-size: 13px;
	color: #5f6368;
	border-radius: 4px;
}
.nav-group li a:hover { background: #f1f3f4; }
.nav-group li a.active { background: #e8f0fe; color: #1a73e8; font-weight: 500; }

.admin-content {
	flex: 1;
	padding: 24px;
	overflow-y: auto;
}
.content-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}
.content-header h2 { font-size: 20px; font-weight: 500; }

/* ── Buttons ── */
.btn, .btn-primary {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	background: #fff;
	color: #1a73e8;
	border: 1px solid #dadce0;
}
.btn-primary {
	background: #1a73e8;
	color: #fff;
	border-color: #1a73e8;
}
.btn-primary:hover { background: #1557b0; }
.btn-danger {
	background: #fff;
	color: #d93025;
	border-color: #fad2cf;
}
.btn-danger:hover { background: #fce8e6; }

/* ── Data Table ── */
.data-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.data-table th, .data-table td {
	padding: 12px 14px;
	text-align: left;
	font-size: 13px;
	border-bottom: 1px solid #f1f3f4;
}
.data-table th {
	background: #f8f9fa;
	font-weight: 500;
	color: #5f6368;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table .empty { text-align: center; color: #9aa0a6; }
.color-box {
	display: inline-block;
	width: 18px;
	height: 18px;
	border-radius: 4px;
	border: 1px solid #dadce0;
}

/* ── Editor ── */
.editor-layout {
	flex: 1;
	display: flex;
	overflow: hidden;
}
.editor-form {
	width: 360px;
	background: #fff;
	border-right: 1px solid #dadce0;
	padding: 20px;
	overflow-y: auto;
}
.editor-form label {
	display: block;
	margin-bottom: 14px;
}
.editor-form label span {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: #5f6368;
	margin-bottom: 6px;
}
.editor-form input,
.editor-form textarea,
.editor-form select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #dadce0;
	border-radius: 6px;
	outline: none;
}
.editor-form input:focus,
.editor-form textarea:focus { border-color: #1a73e8; }
.coords-box {
	background: #f8f9fa;
	padding: 12px;
	border-radius: 6px;
	margin-bottom: 16px;
}
.coords-box strong {
	display: block;
	font-size: 12px;
	margin-bottom: 6px;
}
.hint {
	font-size: 11px;
	color: #9aa0a6;
	margin-top: 6px;
	line-height: 1.4;
}
.form-actions {
	display: flex;
	gap: 10px;
}
.form-actions button, .form-actions a {
	flex: 1;
	text-align: center;
}
.editor-map {
	flex: 1;
	background: rgb(43, 164, 210);
}

@media (max-width: 800px) {
	.admin-main { flex-direction: column; }
	.admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #dadce0; }
	.editor-layout { flex-direction: column; }
	.editor-form { width: 100%; border-right: none; border-bottom: 1px solid #dadce0; }
	.editor-map { min-height: 400px; }
}
