/**
 * Appointments Booking Styles
 */

.tvb-appointments-container {
	max-width: 900px;
	margin: 20px auto;
	padding: 20px;
}

.tvb-appointments-header {
	margin-bottom: 30px;
	text-align: center;
}

.tvb-appointments-header h2 {
	margin-bottom: 10px;
}

.tvb-appointments-booking {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 5px;
	margin-bottom: 30px;
}

.tvb-date-selection {
	margin-bottom: 20px;
}

.tvb-date-selection label {
	display: block;
	margin-bottom: 10px;
	font-weight: bold;
}

.tvb-date-selection input[type="date"] {
	padding: 8px;
	font-size: 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	width: 100%;
	max-width: 300px;
}

.tvb-time-slots {
	margin-top: 20px;
}

.tvb-time-slots h3 {
	margin-bottom: 15px;
}

.tvb-slots-loading {
	text-align: center;
	padding: 20px;
	color: #666;
}

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

.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: 5px;
	cursor: pointer;
	text-align: center;
	transition: all 0.3s;
	background: #fff;
}

.tvb-slot-option label:hover {
	border-color: #0073aa;
	background: #f0f8ff;
}

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

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

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

.tvb-no-slots,
.tvb-error {
	padding: 15px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #856404;
}

.tvb-appointments-list {
	margin-top: 30px;
}

.tvb-appointments-list h3 {
	margin-bottom: 15px;
}

.tvb-appointments-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.tvb-appointments-table th,
.tvb-appointments-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

.tvb-appointments-table th {
	background: #f5f5f5;
	font-weight: bold;
}

.tvb-status-scheduled {
	color: #0073aa;
	font-weight: bold;
}

.tvb-status-confirmed {
	color: #46b450;
	font-weight: bold;
}

.tvb-status-completed {
	color: #666;
}

.tvb-status-cancelled {
	color: #dc3232;
}

.tvb-status-no-show {
	color: #ff9800;
}

.tvb-success {
	padding: 12px;
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 4px;
	color: #155724;
	margin-top: 15px;
}

.tvb-error {
	padding: 12px;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	color: #721c24;
	margin-top: 15px;
}

.tvb-loading {
	padding: 12px;
	text-align: center;
	color: #666;
}

.tvb-appointments-error {
	padding: 15px;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	color: #721c24;
	margin: 20px 0;
}

@media (max-width: 768px) {
	.tvb-slots-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
		gap: 10px;
	}
	
	.tvb-appointments-table {
		font-size: 14px;
	}
	
	.tvb-appointments-table th,
	.tvb-appointments-table td {
		padding: 8px;
	}
}

