/**
 * Calendar Component Styles
 */

.tvb-calendar-container {
	max-width: 600px;
	margin: 20px auto;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.tvb-calendar-header h3 {
	margin: 0;
	font-size: 20px;
	color: #333;
	font-weight: 600;
}

.tvb-calendar-nav {
	background: #667eea;
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	font-size: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.tvb-calendar-nav:hover {
	background: #5568d3;
	transform: scale(1.1);
}

.tvb-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
	margin-bottom: 10px;
}

.tvb-calendar-weekday {
	text-align: center;
	font-weight: 600;
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
	padding: 8px 0;
}

.tvb-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.tvb-calendar-day {
	aspect-ratio: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 2px solid #eee;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	background: #fff;
	padding: 5px;
}

.tvb-calendar-day:hover:not(.tvb-calendar-day-past):not(.tvb-calendar-day-empty) {
	border-color: #667eea;
	background: #f0f8ff;
	transform: translateY(-2px);
}

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

.tvb-calendar-day-past {
	cursor: not-allowed;
	opacity: 0.4;
	background: #f5f5f5;
}

.tvb-calendar-day-today {
	border-color: #667eea;
	background: #e6f3ff;
}

.tvb-calendar-day-available {
	border-color: #28a745;
}

.tvb-calendar-day-selected {
	background: #667eea;
	border-color: #667eea;
	color: #fff;
}

.tvb-calendar-day-selected .tvb-calendar-day-number {
	color: #fff;
	font-weight: bold;
}

.tvb-calendar-day-number {
	font-size: 16px;
	font-weight: 500;
	color: #333;
}

.tvb-calendar-day-slots {
	font-size: 10px;
	color: #28a745;
	font-weight: 600;
	margin-top: 2px;
}

.tvb-calendar-day-selected .tvb-calendar-day-slots {
	color: #fff;
}

/* Slots Display */
.tvb-slots-display {
	margin-top: 30px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
	display: none;
}

.tvb-slots-display.active {
	display: block;
}

.tvb-slots-display h3 {
	margin: 0 0 15px 0;
	font-size: 18px;
	color: #333;
}

.tvb-slots-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.tvb-slot-option {
	position: relative;
}

.tvb-slot-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.tvb-slot-option label {
	display: block;
	padding: 15px;
	border: 2px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	text-align: center;
	transition: all 0.3s;
	background: #fff;
}

.tvb-slot-option label:hover {
	border-color: #667eea;
	background: #f0f8ff;
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.tvb-slot-option input[type="radio"]:checked + label {
	border-color: #667eea;
	background: #667eea;
	color: #fff;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tvb-slot-time {
	display: block;
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 5px;
}

.tvb-slot-duration {
	display: block;
	font-size: 12px;
	opacity: 0.9;
}

.tvb-slot-price {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-top: 5px;
}

.tvb-slot-option input[type="radio"]:checked + label .tvb-slot-price {
	color: #fff;
}

/* Appointment Summary */
.tvb-appointment-summary {
	margin-top: 20px;
	padding: 15px;
	background: #fff;
	border: 2px solid #667eea;
	border-radius: 6px;
	display: none;
}

.tvb-appointment-summary.active {
	display: block;
}

.tvb-appointment-summary h4 {
	margin: 0 0 10px 0;
	color: #333;
}

.tvb-appointment-summary-item {
	display: flex;
	justify-content: space-between;
	margin: 8px 0;
	font-size: 14px;
}

.tvb-appointment-summary-label {
	color: #666;
}

.tvb-appointment-summary-value {
	font-weight: 600;
	color: #333;
}

.tvb-appointment-summary-total {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 2px solid #eee;
	font-size: 18px;
	font-weight: bold;
	color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
	.tvb-calendar-container {
		padding: 15px;
	}
	
	.tvb-calendar-header h3 {
		font-size: 18px;
	}
	
	.tvb-calendar-nav {
		width: 32px;
		height: 32px;
		font-size: 18px;
	}
	
	.tvb-calendar-day-number {
		font-size: 14px;
	}
	
	.tvb-slots-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 10px;
	}
	
	.tvb-slot-option label {
		padding: 12px;
	}
	
	.tvb-slot-time {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.tvb-calendar-container {
		padding: 10px;
	}
	
	.tvb-calendar-weekdays,
	.tvb-calendar-days {
		gap: 3px;
	}
	
	.tvb-calendar-day {
		padding: 3px;
	}
	
	.tvb-calendar-day-number {
		font-size: 12px;
	}
	
	.tvb-slots-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

