.admin_body { background: var(--fifth); }

.admin_main { padding: 40px 28px 80px; }

.admin_notice {
	background: var(--fourth);
	border-radius: 10px;
	padding: 14px 18px;
	font-size: 13px;
	color: var(--link-active);
	margin-bottom: 28px;
}

.admin_notice code {
	background: rgba(255, 255, 255, 0.6);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
}

.report_bar {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.report_status {
	font-size: 13px;
	color: var(--link);
	margin: 0;
}

.btn_whatsapp_report {
	background: #25D366;
	color: #fff;
	border: none;
	padding: 12px 20px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease;
}

.btn_whatsapp_report:hover {
	background: #1EBE5A;
	transform: translateY(-2px);
}

#sendReportBtn.report_not_sent {
	background: #c0392b;
	border-color: #c0392b;
	color: #fff;
}

#sendReportBtn.report_not_sent:hover {
	background: #a5321f;
	border-color: #a5321f;
}

#sendReportBtn.report_sent {
	background: #2f9e44;
	border-color: #2f9e44;
	color: #fff;
}

#sendReportBtn.report_sent:hover {
	background: #257a35;
	border-color: #257a35;
}

.calendar_page_header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-bottom: 16px;
}

.calendar_page_header h1 {
	font-family: var(--font-display);
	font-size: 26px;
	color: var(--link-active);
	margin: 0;
	min-width: 220px;
	text-align: center;
}

.calendar_legend {
	display: flex;
	justify-content: center;
	gap: 24px;
	font-size: 13px;
	color: var(--link);
	margin-bottom: 24px;
}

.legend_dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 6px;
	vertical-align: middle;
}

.legend_pending { background: #e0a800; }
.legend_confirmed { background: #2f9e44; }
.legend_completed { background: #1971c2; }

.admin_calendar_weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--secondary);
	margin-bottom: 8px;
}

.admin_calendar_grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
	margin-bottom: 56px;
}

.admin_day_cell {
	min-height: 110px;
	background: #fff;
	border-radius: 10px;
	padding: 8px;
	border: 1px solid var(--fourth);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.admin_day_cell.empty {
	background: transparent;
	border: none;
}

.admin_day_number {
	font-size: 12px;
	font-weight: 600;
	color: var(--secondary);
}

.admin_day_cell.today .admin_day_number {
	color: var(--primary);
}

.admin_booking_pill {
	font-size: 11px;
	padding: 3px 6px;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: transform 150ms ease;
}

.admin_booking_pill:hover { transform: scale(1.03); }

.admin_booking_pill.pending { background: #e0a800; }
.admin_booking_pill.confirmed { background: #2f9e44; }
.admin_booking_pill.completed { background: #1971c2; }

@media (max-width: 760px) {
	.admin_day_cell { min-height: 70px; padding: 4px; }
	.admin_booking_pill { font-size: 9px; padding: 2px 4px; }
	.admin_calendar_weekdays span:nth-child(n) { font-size: 10px; }
}

.booking_list_section h2 {
	font-family: var(--font-display);
	font-size: 22px;
	color: var(--link-active);
	margin: 0 0 18px;
}

.booking_list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.booking_list_empty {
	color: var(--secondary);
	font-size: 14px;
	font-style: italic;
}

.booking_list_item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #fff;
	border-radius: 10px;
	padding: 14px 18px;
	cursor: pointer;
	border-left: 4px solid var(--fourth);
	transition: transform 150ms ease, box-shadow 150ms ease;
}

.booking_list_item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(104, 74, 52, 0.12);
}

.booking_list_item.pending { border-left-color: #e0a800; }
.booking_list_item.confirmed { border-left-color: #2f9e44; }
.booking_list_item.completed { border-left-color: #1971c2; }

.booking_list_main strong { color: var(--link-active); font-size: 14px; }
.booking_list_main span { display: block; font-size: 12px; color: var(--link); margin-top: 2px; }

.booking_location_row { margin-top: 4px; }
.booking_location_link { color: var(--primary); font-weight: 600; text-decoration: none; }
.booking_location_link:hover { text-decoration: underline; }
.booking_location_missing { color: var(--secondary, #999); font-style: italic; }

.booking_list_status {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 10px;
	border-radius: 999px;
	color: #fff;
	flex-shrink: 0;
}

.booking_list_status.pending { background: #e0a800; }
.booking_list_status.confirmed { background: #2f9e44; }
.booking_list_status.completed { background: #1971c2; }

/* Booking detail modal */

.booking_detail_overlay {
	position: fixed;
	inset: 0;
	background: rgba(47, 33, 23, 0.6);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 200;
	padding: 20px;
}

.booking_detail_overlay.visible { display: flex; }

.booking_detail_card {
	position: relative;
	background: #fff;
	border-radius: 16px;
	max-width: 440px;
	width: 100%;
	padding: 32px;
	box-shadow: 0 30px 60px rgba(47, 33, 23, 0.35);
}

.booking_detail_card h3 {
	font-family: var(--font-display);
	font-size: 20px;
	color: var(--link-active);
	margin: 0 0 16px;
}

.booking_detail_row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 8px 0;
	border-bottom: 1px dotted var(--fourth);
}

.booking_detail_row span:first-child { color: var(--secondary); font-weight: 600; }
.booking_detail_row span:last-child { color: var(--link-active); text-align: right; }

.booking_detail_actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.btn_confirm, .btn_delete, .btn_ghost {
	flex: 1;
	padding: 12px;
	border-radius: 999px;
	border: none;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
}

.btn_confirm { background: #2f9e44; color: #fff; }
.btn_confirm:hover { background: #257a35; }

.btn_delete { background: var(--fourth); color: var(--link-active); }
.btn_delete:hover { background: var(--third); }

.btn_ghost { background: #fff; color: var(--link-active); border: 1px solid var(--fourth); }
.btn_ghost:hover { background: var(--fourth); }

/* ---------- Admin login gate ---------- */

.admin_protected_hidden { display: none; }

/* ---------- Tool switcher (Booking Calendar <-> Address Book) ---------- */

.tool_switcher {
	display: inline-flex;
	background: var(--fourth);
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}

.tool_switch_btn {
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--link);
	text-decoration: none;
	transition: background 150ms ease, color 150ms ease;
	white-space: nowrap;
}

.tool_switch_btn:hover { color: var(--link-active); }

.tool_switch_btn.is-active {
	background: var(--primary);
	color: #fff;
}

@media (max-width: 600px) {
	.tool_switch_btn { padding: 6px 12px; font-size: 12px; }
}

.admin_login_overlay {
	position: fixed;
	inset: 0;
	background: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 300;
	padding: 20px;
}

.admin_login_card {
	background: #fff;
	border-radius: 18px;
	padding: 40px;
	max-width: 360px;
	width: 100%;
	text-align: center;
	box-shadow: 0 24px 50px rgba(47, 33, 23, 0.3);
}

.admin_login_logo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	margin-bottom: 16px;
}

.admin_login_card h2 {
	font-family: var(--font-display);
	font-size: 22px;
	color: var(--link-active);
	margin: 0 0 4px;
}

.admin_login_subtitle {
	font-size: 13px;
	color: var(--secondary);
	margin: 0 0 24px;
}

.admin_login_card .field {
	text-align: left;
	margin-bottom: 16px;
}

.admin_login_submit {
	width: 100%;
	justify-content: center;
	margin-top: 4px;
}

.admin_login_error {
	display: none;
	color: #c0392b;
	font-size: 13px;
	margin-top: 14px;
}

.admin_login_error.visible { display: block; }
