/**
 * Lesson Booking Calendar Styles
 * Integrato con Hello Elementor theme
 *
 * @package LessonBooking
 */

/* Calendar Wrapper */
.lesson-booking-calendar-wrapper {
	margin: 20px 0;
	padding: 0;
}

#lesson-booking-calendar {
	max-width: 100%;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* FullCalendar Override - Match Theme Colors */
.fc {
	--fc-border-color: #cccccc;
	--fc-button-bg-color: #CC3366;
	--fc-button-border-color: #CC3366;
	--fc-button-hover-bg-color: #333366;
	--fc-button-hover-border-color: #333366;
	--fc-button-active-bg-color: #333366;
	--fc-button-active-border-color: #333366;
	--fc-event-bg-color: #CC3366;
	--fc-event-border-color: #CC3366;
	--fc-today-bg-color: rgba(204, 51, 102, 0.1);
}

.fc .fc-button {
	border-radius: 3px;
	padding: 0.5rem 1rem;
	font-size: 1rem;
	font-weight: 400;
	transition: all 0.3s;
}

.fc .fc-button:hover {
	background-color: #333366;
	border-color: #333366;
}

.fc .fc-event {
	cursor: pointer;
	transition: all 0.3s;
}

.fc .fc-event:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

/* Modal Styles */
.lb-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
}

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

.lb-modal-content {
	position: relative;
	width: 90%;
	max-width: 600px;
	max-height: 90vh;
	margin: 5vh auto;
	background-color: #ffffff;
	border-radius: 3px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	overflow-y: auto;
	z-index: 1000000;
	padding: 30px;
}

.lb-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 30px;
	line-height: 1;
	color: #666666;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	transition: all 0.3s;
}

.lb-modal-close:hover {
	color: #CC3366;
	transform: rotate(90deg);
}

/* Lesson Details */
.lb-lesson-details {
	margin: 20px 0;
}

.lb-detail-row {
	display: flex;
	padding: 8px 0;
	border-bottom: 1px solid #eeeeee;
}

.lb-detail-row:last-child {
	border-bottom: none;
}

.lb-detail-row strong {
	min-width: 150px;
	color: #333333;
	font-weight: 600;
}

.lb-detail-row span {
	color: #666666;
}

/* Booking Form */
.lb-booking-form {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 2px solid #eeeeee;
}

.lb-booking-form h3 {
	margin: 0 0 20px 0;
	font-size: 1.5rem;
	font-weight: 500;
	color: #333333;
}

.lb-form-group {
	margin-bottom: 1rem;
}

.lb-form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: #333333;
}

.lb-form-group input,
.lb-form-group textarea,
.lb-form-group select {
	width: 100%;
	border: 1px solid #666666;
	border-radius: 3px;
	padding: 0.5rem 1rem;
	font-size: 1rem;
	font-family: inherit;
	transition: all 0.3s;
}

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

.lb-form-actions {
	margin-top: 20px;
}

.lb-btn {
	display: inline-block;
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
	user-select: none;
	border: 1px solid transparent;
	padding: 0.5rem 1rem;
	font-size: 1rem;
	border-radius: 3px;
	transition: all 0.3s;
	cursor: pointer;
	text-decoration: none;
}

.lb-btn-primary {
	color: #CC3366;
	background-color: transparent;
	border-color: #CC3366;
}

.lb-btn-primary:hover,
.lb-btn-primary:focus {
	color: #ffffff;
	background-color: #CC3366;
}

.lb-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Form Messages */
.lb-form-message {
	margin-top: 15px;
	padding: 10px 15px;
	border-radius: 3px;
	font-size: 0.9rem;
}

.lb-form-message-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.lb-form-message-error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 767px) {
	.lb-modal-content {
		width: 95%;
		margin: 2.5vh auto;
		max-height: 95vh;
		padding: 20px;
	}

	.lb-detail-row {
		flex-direction: column;
	}

	.lb-detail-row strong {
		min-width: auto;
		margin-bottom: 3px;
	}

	.fc .fc-toolbar {
		flex-direction: column;
		gap: 10px;
	}

	.fc .fc-toolbar-chunk {
		display: flex;
		justify-content: center;
	}
}

@media (max-width: 575px) {
	.lb-modal-content {
		padding: 15px;
	}

	.lb-booking-form h3 {
		font-size: 1.25rem;
	}
}

/* Print Styles */
@media print {
	.lb-modal {
		display: none !important;
	}
}