/* Booking Page - Full-Width Calendar Layout */

.booking-page {
	max-width: 100%;
	min-height: 100vh;
	padding: 0;
	margin: 0;
	background: #f5f6fa;
}

/* Header */
.page-header {
	background: #fff;
	padding: 15px 30px;
	border-bottom: 1px solid #e0e0e0;
	text-align: center;
}

.page-header h1 {
	margin: 0;
	font-size: 22px;
	color: #333;
	font-weight: 600;
}

/* Main Content Layout */
.main-content {
	display: flex;
	height: calc(100vh - 70px);
	overflow: hidden;
}

/* Calendar Container - Primary */
.calendar-container {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	background: #fff;
}

.calendar-header {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-bottom: 15px;
}

.calendar-header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	min-width: 180px;
	text-align: center;
}

.nav-btn {
	background: #f0f0f0;
	border: none;
	padding: 10px 18px;
	font-size: 16px;
	cursor: pointer;
	border-radius: 6px;
	transition: background 0.2s;
}

.nav-btn:hover {
	background: #e0e0e0;
}

/* Calendar Weekdays */
.calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-weight: 600;
	font-size: 13px;
	color: #666;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

/* Calendar Grid */
.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	padding: 10px 0;
}

.calendar-day {
	aspect-ratio: 1.2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s;
	border: 2px solid transparent;
	background: #f8fff8;
	min-height: 70px;
}

.calendar-day:hover:not(.empty):not(.past) {
	transform: scale(1.02);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.calendar-day.empty {
	background: transparent;
	cursor: default;
}

.calendar-day.past {
	background: #f5f5f5;
	color: #bbb;
	cursor: not-allowed;
}

.calendar-day.available {
	background: #e8f5e9;
}

.calendar-day.booked {
	background: #ffebee;
}

.calendar-day.selected {
	border-color: #1976d2;
	background: #e3f2fd;
}

.calendar-day.today {
	border-color: #ff9800;
}

.calendar-day .day-num {
	font-size: 16px;
	font-weight: 600;
}

.calendar-day .booking-count {
	font-size: 11px;
	color: #666;
	margin-top: 4px;
}

/* Calendar Legend */
.calendar-legend {
	display: flex;
	justify-content: center;
	gap: 25px;
	padding: 15px;
	font-size: 13px;
	color: #555;
}

.calendar-legend .dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	margin-right: 6px;
}

.dot.green {
	background: #e8f5e9;
	border: 1px solid #4caf50;
}

.dot.red {
	background: #ffebee;
	border: 1px solid #e53935;
}

/* Side Panel */
.side-panel {
	width: 400px;
	background: #fff;
	border-left: 1px solid #e0e0e0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.panel-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #999;
	text-align: center;
	padding: 30px;
}

.panel-content {
	padding: 20px;
	flex: 1;
	overflow-y: auto;
}

.panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.panel-header h3 {
	margin: 0;
	font-size: 18px;
	color: #333;
}

.close-btn {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
}

.close-btn:hover {
	color: #333;
}

/* Existing Bookings */
#existing-bookings {
	margin-bottom: 25px;
}

.existing-title {
	font-size: 13px;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.booking-card {
	background: #f8f9fa;
	border-left: 3px solid #e53935;
	padding: 12px;
	margin-bottom: 10px;
	border-radius: 0 6px 6px 0;
}

.booking-card .time {
	font-weight: 600;
	color: #333;
}

.booking-card .name {
	color: #555;
	font-size: 14px;
}

.booking-card .type {
	font-size: 12px;
	color: #888;
	margin-top: 4px;
}

.booking-card .cancel-link {
	font-size: 12px;
	color: #999;
	cursor: pointer;
	text-decoration: underline;
	margin-top: 5px;
	display: inline-block;
}

.booking-card .cancel-link:hover {
	color: #e53935;
}

.no-bookings {
	background: #e8f5e9;
	color: #2e7d32;
	padding: 15px;
	border-radius: 6px;
	text-align: center;
	font-size: 14px;
}

/* Form */
.form-container h4 {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin: 0 0 15px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.form-group {
	margin-bottom: 12px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.form-group label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: #555;
	margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #1976d2;
}

.checkbox-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
	width: auto;
}

.btn-submit {
	width: 100%;
	padding: 12px;
	background: #1976d2;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	margin-top: 10px;
}

.btn-submit:hover {
	background: #1565c0;
}

/* Modal */
.modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal-box {
	background: white;
	padding: 25px;
	border-radius: 10px;
	width: 100%;
	max-width: 360px;
}

.modal-box h3 {
	margin: 0 0 10px;
	font-size: 18px;
}

.modal-box p {
	color: #555;
	margin-bottom: 15px;
	font-size: 14px;
}

.modal-box input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 15px;
	box-sizing: border-box;
}

.modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.btn-secondary {
	padding: 10px 20px;
	background: #f0f0f0;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.btn-danger {
	padding: 10px 20px;
	background: #e53935;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
	.main-content {
		flex-direction: column;
		height: auto;
	}

	.calendar-container {
		min-height: 50vh;
	}

	.side-panel {
		width: 100%;
		border-left: none;
		border-top: 1px solid #e0e0e0;
	}

	.calendar-day {
		min-height: 50px;
	}

	.calendar-day .day-num {
		font-size: 14px;
	}
}
