.calendar-day-view {
	width: 100%;
	max-width: 800px;
	margin: 10px 0;
	font-family: Verdana, sans-serif;
}

.calendar-grid {
	display: flex;
	position: relative;
	border: 1px solid rgba(211, 212, 212, 0.2);
	border-radius: 8px;
	overflow: hidden;
	background-color: rgba(76, 76, 76, 0.2);
	box-sizing: border-box;
}

.calendar-time-column {
	width: 60px;
	flex-shrink: 0;
	border-right: 1px solid rgba(211, 212, 212, 0.2);
	background-color: rgba(3, 31, 48, 0.5);
	box-sizing: border-box;
}

.calendar-time-slot {
	height: 60px;
	display: flex;
	align-items: flex-start;
	padding: 2px 8px;
	border-bottom: 1px solid rgba(211, 212, 212, 0.1);
	box-sizing: border-box;
}

.calendar-time-label {
	font-size: 10pt;
	color: rgba(211, 212, 212, 0.7);
	font-weight: normal;
}

.calendar-events-column {
	flex: 1;
	position: relative;
	min-height: 1080px; /* 18 hours * 60px per hour (6:00-23:59) */
	box-sizing: border-box;
}

.calendar-hour-line {
	height: 60px;
	border-bottom: 1px solid rgba(211, 212, 212, 0.1);
	position: relative;
	box-sizing: border-box;
}

.calendar-event {
	position: absolute;
	left: 4px;
	right: 4px;
	border-radius: 4px;
	padding: 6px 8px;
	cursor: pointer;
	overflow: hidden;
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	border-left: 3px solid;
	min-height: 30px;
}

.calendar-event:hover {
	transform: scale(1.02);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
	z-index: 10;
}

.calendar-event-time {
	font-size: 9pt;
	font-weight: bold;
	margin-bottom: 2px;
	opacity: 0.9;
}

.calendar-event-title {
	font-size: 11pt;
	font-weight: 600;
	margin-bottom: 2px;
	line-height: 1.3;
}

.calendar-event-title a {
	color: inherit !important;
	text-decoration: none;
	font-weight: 600;
}

.calendar-event-title a:hover {
	text-decoration: underline;
}

.calendar-event-remarks {
	font-size: 9pt;
	opacity: 0.8;
	margin-top: 4px;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
}

.calendar-event-color-0 {
	background-color: rgba(66, 133, 244, 0.3);
	border-left-color: #4285f4;
	color: #e8f0fe;
}

.calendar-event-color-1 {
	background-color: rgba(234, 67, 53, 0.3);
	border-left-color: #ea4335;
	color: #fce8e6;
}

.calendar-event-color-2 {
	background-color: rgba(251, 188, 5, 0.3);
	border-left-color: #fbbc05;
	color: #fef7e0;
}

.calendar-event-color-3 {
	background-color: rgba(52, 168, 83, 0.3);
	border-left-color: #34a853;
	color: #e6f4ea;
}

.calendar-event-color-4 {
	background-color: rgba(156, 39, 176, 0.3);
	border-left-color: #9c27b0;
	color: #f3e5f5;
}

.calendar-event-color-5 {
	background-color: rgba(255, 109, 0, 0.3);
	border-left-color: #ff6d00;
	color: #fff3e0;
}

/* Plan Entry Widget Styles */
.plan-entry-widget {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
}

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

.plan-entry-widget-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(3, 31, 48, 0.95);
	border: 1px solid rgba(211, 212, 212, 0.3);
	border-radius: 8px;
	padding: 20px;
	min-width: 300px;
	max-width: 500px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.plan-entry-widget-content h3 {
	margin: 0 0 20px 0;
	color: rgba(211, 212, 212, 0.9);
	font-size: 18pt;
}

.plan-entry-widget-content label {
	display: block;
	margin-top: 15px;
	margin-bottom: 5px;
	color: rgba(211, 212, 212, 0.8);
	font-size: 10pt;
}

.plan-entry-widget-content input[type="text"],
.plan-entry-widget-content input[type="number"],
.plan-entry-widget-content textarea {
	width: 100%;
	padding: 8px;
	background-color: rgba(76, 76, 76, 0.5);
	border: 1px solid rgba(211, 212, 212, 0.2);
	border-radius: 4px;
	color: rgba(211, 212, 212, 0.9);
	font-size: 10pt;
	font-family: Verdana, sans-serif;
}

.plan-entry-widget-content textarea {
	min-height: 80px;
	resize: vertical;
}

.plan-entry-widget-content .time-inputs {
	display: flex;
	align-items: center;
	gap: 5px;
}

.plan-entry-widget-content .time-inputs input {
	width: 60px;
}

.plan-entry-widget-content .time-inputs span {
	color: rgba(211, 212, 212, 0.8);
	font-size: 12pt;
}

.plan-entry-widget-buttons {
	margin-top: 20px;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.plan-entry-widget-buttons button {
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 10pt;
	font-family: Verdana, sans-serif;
	transition: all 0.2s ease;
}

.plan-entry-save {
	background-color: #34a853;
	color: white;
}

.plan-entry-save:hover {
	background-color: #2d8f47;
}

.plan-entry-delete {
	background-color: #ea4335;
	color: white;
}

.plan-entry-delete:hover {
	background-color: #c53929;
}

.plan-entry-cancel {
	background-color: rgba(76, 76, 76, 0.7);
	color: rgba(211, 212, 212, 0.9);
}

.plan-entry-cancel:hover {
	background-color: rgba(76, 76, 76, 0.9);
}

.calendar-hour-line {
	height: 60px;
	border-bottom: 1px solid rgba(211, 212, 212, 0.1);
	position: relative;
	cursor: pointer;
	transition: background-color 0.2s ease;
	box-sizing: border-box;
}

.calendar-hour-line:hover {
	background-color: rgba(66, 133, 244, 0.1);
}

@media all and (max-width: 424px){
	.calendar-day-view {
		max-height: 1500px;
	}

	.calendar-time-column {
		width: 50px;
	}

	.calendar-time-label {
		font-size: 9pt;
	}

	.calendar-event {
		padding: 4px 6px;
	}

	.calendar-event-time {
		font-size: 8pt;
	}

	.calendar-event-title {
		font-size: 10pt;
	}

	.calendar-event-remarks {
		font-size: 8pt;
	}

	.plan-entry-widget-content {
		min-width: 90%;
		max-width: 90%;
	}

	.plan-entry-widget-buttons {
		flex-direction: column;
	}

	.plan-entry-widget-buttons button {
		width: 100%;
	}
}