.hidden {
	display: none;
}

.calendar-rtl {
	  direction: rtl;
}

.calendar-container {
	max-width: 800px;
	margin: 0 auto;
	background-color: #111111;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	position: relative;
}

.calendar-overlay {
	position: absolute;
	top:0;
	left:0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.3);
}

.calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #d59b39;
}

.calendar-title {
	font-size: 28px;
	font-weight: bold;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #ffffff !important;
}

.calendar-nav {
	display: flex;
	gap: 15px;
}

.nav-btn {
	background-color: #d59b39;
	color: #000000;
	border: none;
	padding: 12px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: bold;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
}

.nav-btn:hover {
	background-color: #b8832f;
	transform: translateY(-2px);
}

.month-year {
	font-size: 24px;
	font-weight: bold;
	text-align: center;
	margin-bottom: 25px;
	color: #d59b39;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	background-color: #222222;
	padding: 2px;
	border-radius: 8px;
}

.day-header {
	background-color: #d59b39;
	color: #000000;
	padding: 15px 5px;
	text-align: center;
	font-weight: bold;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.day-cell {
	background-color: #111111;
	color: #ffffff;
	padding: 20px 5px;
	text-align: center;
	transition: all 0.3s ease;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.day-cell:hover {
	background-color: #333333;
	transform: scale(1.05);
}

.day-cell.other-month {
	color: #666666;
	background-color: #0a0a0a;
}

.day-cell.available {
	background-color: #1a1308;
	border: 2px solid #d59b39;
	color: #ffffff;
}

.day-cell.available:hover {
	background-color: #d59b39;
	color: #000000;
}

.day-cell.booked {
	background-color: #1a1a1a;
	border: 2px solid #666666;
	color: #666666;
	cursor: not-allowed;
}

.day-cell.booked:hover {
	transform: none;
	background-color: #1a1a1a;
}

.day-cell.today {
	background-color: #d59b39;
	color: #000000;
	font-weight: bold;
}

.day-cell.selected {
	background-color: #d59b39;
	color: #000000;
	font-weight: bold;
	border: 2px solid #ffffff;
}

.availability-legend {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #333333;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #ffffff;
}

.legend-color {
	width: 3em;
	aspect-ratio: 1 / 1;
	
	border-radius: 4px;
	display: flex;
  	justify-content: center; /* Horizontal centering */
  	align-items: center;     /* Vertical centering */
}

.legend-available {
	background-color: #1a1308;
	border: 2px solid #d59b39;
}

.legend-booked {
	background-color: #1a1a1a;
	border: 2px solid #666666;
    color: #666666;
}

.legend-today {
	background-color: #d59b39;
	border: 2px solid #ffffff;
}

@media ( max-width : 768px) {
	.calendar-container {
		padding: 20px;
	}
	.calendar-header {
		flex-direction: column;
		gap: 15px;
	}
	.calendar-title {
		font-size: 24px;
	}
	.day-cell {
		padding: 15px 5px;
		min-height: 50px;
		font-size: 14px;
	}
	.availability-legend {
		flex-direction: column;
		gap: 15px;
	}
}