.vx-calendar-container {
	width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vx-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.vx-calendar-nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vx-calendar-nav-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	background-color: #0073aa;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.2s;
}

.vx-calendar-nav-button:hover {
	background-color: #005a87;
}

.vx-calendar-nav-button svg {
	width: 16px;
	height: 16px;
}

.vx-calendar-title {
	flex: 1;
	text-align: center;
}

.vx-calendar-month-year {
	font-size: 20px;
	font-weight: 600;
	color: #333;
}

.vx-calendar-view-switcher {
	display: flex;
	gap: 5px;
}

.vx-calendar-month-view,
.vx-calendar-list-view,
.vx-calendar-agenda-view {
	position: relative;
	min-height: 200px;
}

.vx-calendar-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background-color: transparent;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	color: #666;
	transition: all 0.2s;
}

.vx-calendar-view-btn:hover {
	background-color: #f5f5f5;
	border-color: #0073aa;
	color: #0073aa;
}

.vx-calendar-view-btn.active {
	background-color: #0073aa;
	border-color: #0073aa;
	color: white;
}

.vx-calendar-view-btn svg {
	width: 20px;
	height: 20px;
}

.vx-calendar-filters {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 20px;
	border-bottom: 1px solid #e0e0e0;
	background-color: #f9f9f9;
	flex-wrap: wrap;
}

.vx-calendar-search {
	flex: 1;
	min-width: 200px;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.vx-calendar-taxonomy-filter {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background-color: white;
}

.vx-calendar-clear-filters {
	padding: 8px 16px;
	background-color: #0073aa;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.2s;
}

.vx-calendar-clear-filters:hover {
	background-color: #005a87;
}

.vx-calendar-content {
	padding: 20px;
}

.vx-calendar-loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background-color: rgba(0, 0, 0, 0.05);
	color: #333;
	font-weight: 500;
	font-size: 15px;
	z-index: 10;
	text-align: center;
}

.vx-calendar-loading .vx-calendar-loader {
	width: 32px;
	height: 32px;
	border: 3px solid rgba(0, 0, 0, 0.15);
	border-top-color: #0073aa;
	border-radius: 50%;
	animation: vx-calendar-spin 0.8s linear infinite;
}

@keyframes vx-calendar-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Month View */
.vx-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
	background-color: #e0e0e0;
	margin-bottom: 1px;
}

.vx-calendar-day-header {
	padding: 10px;
	text-align: center;
	font-weight: 600;
	font-size: 14px;
	background-color: white;
	color: #333;
}

.vx-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
	background-color: #e0e0e0;
}

.vx-calendar-day-cell {
	min-height: 100px;
	padding: 8px;
	background-color: white;
	position: relative;
	display: flex;
	flex-direction: column;
}

.vx-calendar-day-cell.vx-calendar-other-month {
	background-color: #f9f9f9;
	color: #999;
}

.vx-calendar-day-number {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 5px;
	flex-shrink: 0;
}

.vx-calendar-day-cell > .vx-calendar-event-item {
	flex-shrink: 0;
}

.vx-calendar-event-item {
	display: flex;
	flex-direction: column;
	margin-bottom: 4px;
	padding: 4px 6px;
	background-color: #0073aa;
	color: white;
	border-radius: 3px;
	font-size: 12px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s;
	word-wrap: break-word;
	line-height: 1.4;
}

.vx-calendar-event-item:hover {
	background-color: #005a87;
	color: white;
	text-decoration: none;
}

.vx-calendar-event-time {
	display: block;
	font-weight: 600;
	margin-bottom: 2px;
	font-size: 11px;
}

.vx-calendar-event-title {
	display: block;
	font-weight: normal;
}

.vx-calendar-more-events {
	margin-top: 4px;
	font-size: 11px;
	color: #666;
	cursor: pointer;
	flex-shrink: 0;
	background: transparent;
	border: none;
	padding: 0;
	text-align: left;
}

.vx-calendar-more-events:hover,
.vx-calendar-more-events:focus {
	color: #0073aa;
	outline: none;
	text-decoration: underline;
}

/* List View */
.vx-calendar-list-date-header {
	padding: 15px 0 10px;
	border-bottom: 2px solid #e0e0e0;
	margin-bottom: 10px;
	font-size: 16px;
	color: #333;
}

.vx-calendar-list-event {
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
	gap: 15px;
}

.vx-calendar-list-event:last-child {
	border-bottom: none;
}

.vx-calendar-list-event .vx-calendar-event-time {
	color: #0073aa;
	font-weight: 600;
	min-width: 120px;
}

.vx-calendar-list-event .vx-calendar-event-title {
	color: #333;
	text-decoration: none;
	font-size: 15px;
}

.vx-calendar-list-event .vx-calendar-event-title:hover {
	color: #0073aa;
}

/* Agenda View */
.vx-calendar-agenda-event {
	display: flex;
	gap: 15px;
	padding: 15px 0;
	border-bottom: 1px solid #f0f0f0;
}

.vx-calendar-agenda-event:last-child {
	border-bottom: none;
}

.vx-calendar-agenda-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 60px;
	padding: 10px;
	background-color: #f5f5f5;
	border-radius: 4px;
}

.vx-calendar-agenda-day {
	font-size: 24px;
	font-weight: 700;
	color: #333;
	line-height: 1;
}

.vx-calendar-agenda-month {
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
	margin-top: 4px;
}

.vx-calendar-agenda-content {
	flex: 1;
}

.vx-calendar-agenda-time {
	font-size: 14px;
	color: #0073aa;
	font-weight: 600;
	margin-bottom: 5px;
}

.vx-calendar-agenda-title {
	font-size: 16px;
	color: #333;
	text-decoration: none;
	font-weight: 500;
}

.vx-calendar-agenda-title:hover {
	color: #0073aa;
}

.vx-calendar-no-events {
	padding: 40px;
	text-align: center;
	color: #999;
	font-size: 16px;
}

.vx-calendar-loading {
	padding: 40px;
	text-align: center;
	color: #0073aa;
	font-size: 16px;
}

.vx-calendar-loading:before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #0073aa;
	border-radius: 50%;
	animation: vx-calendar-spin 1s linear infinite;
	margin-right: 10px;
	vertical-align: middle;
}

@keyframes vx-calendar-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.vx-calendar-error {
	padding: 15px;
	margin: 20px;
	background-color: #fee;
	border: 1px solid #fcc;
	border-radius: 4px;
	color: #c33;
	text-align: center;
	font-size: 14px;
}

.vx-calendar-placeholder {
	padding: 40px;
	text-align: center;
	background-color: #f9f9f9;
	border: 2px dashed #ddd;
	border-radius: 4px;
	color: #666;
}

/* Modal */
.vx-calendar-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.vx-calendar-modal.is-active {
	display: flex;
}

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

.vx-calendar-modal-dialog {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 520px;
	width: calc(100% - 40px);
	max-height: 80vh;
	overflow: hidden;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
	z-index: 1;
	display: flex;
	flex-direction: column;
}

.vx-calendar-modal-header {
	padding: 20px;
	border-bottom: 1px solid #eee;
}

.vx-calendar-modal-date {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #333;
}

.vx-calendar-modal-body {
	padding: 20px;
	overflow-y: auto;
}

.vx-calendar-modal-event {
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.vx-calendar-modal-event:last-child {
	border-bottom: none;
}

.vx-calendar-modal-event-time {
	font-size: 13px;
	color: #0073aa;
	font-weight: 600;
	margin-bottom: 5px;
}

.vx-calendar-modal-event-title {
	font-size: 15px;
	color: #333;
	text-decoration: none;
	font-weight: 500;
	display: inline-block;
}

.vx-calendar-modal-event-title:hover {
	color: #0073aa;
}

.vx-calendar-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	border: none;
	background: transparent;
	font-size: 24px;
	cursor: pointer;
	color: #999;
}

.vx-calendar-modal-close:hover {
	color: #333;
}

body.vx-calendar-modal-open {
	overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
	.vx-calendar-header {
		flex-direction: column;
		gap: 15px;
	}

	.vx-calendar-nav {
		order: 1;
	}

	.vx-calendar-title {
		order: 2;
	}

	.vx-calendar-view-switcher {
		order: 3;
	}

	.vx-calendar-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.vx-calendar-search {
		width: 100%;
	}

	.vx-calendar-day-cell {
		min-height: 60px;
		padding: 4px;
	}

	.vx-calendar-event-item {
		font-size: 10px;
		padding: 2px 4px;
	}
}

