/* ==========================================================================
   SORIEL JEE MYUNG HYUN - MODERN SCHEDULE STYLES
   Theme Color: #3d85c6 | Design: Clean Editorial / Modern Calendar
   ========================================================================== */

/* --- Container & Reset --- */
.schedule_monthly {
	display: block;
	margin: 20px auto 40px;
	padding: 0;
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
	color: #334155;
	overflow: hidden;
	transition: all 0.3s ease;
}

.schedule_monthly a {
	position: relative;
	display: block;
	color: inherit;
	text-decoration: none;
}

/* --- Weekdays Header Bar --- */
.schedule_monthly_header {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	width: 100%;
	background-color: #f8fafc;
	border-bottom: 2px solid #e2e8f0;
	text-align: center;
	padding: 12px 0;
}

.schedule_monthly_header .weekday_col {
	font-size: 14px;
	font-weight: 700;
	color: #475569;
	letter-spacing: -0.02em;
}

.schedule_monthly_header .weekday_col small {
	display: block;
	font-size: 10px;
	font-weight: 600;
	color: #94a3b8;
	letter-spacing: 0.05em;
	margin-top: 1px;
}

.schedule_monthly_header .weekday_col.sunday {
	color: #e11d48;
}
.schedule_monthly_header .weekday_col.sunday small {
	color: #fda4af;
}

.schedule_monthly_header .weekday_col.saturday {
	color: #2563eb;
}
.schedule_monthly_header .weekday_col.saturday small {
	color: #93c5fd;
}

/* --- Calendar Monthly Body --- */
.schedule_monthly_body {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.schedule_weekly {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	width: 100%;
	border-bottom: 1px solid #f1f5f9;
}

.schedule_weekly:last-child {
	border-bottom: none;
}

/* --- Calendar Day Cells --- */
.schedule_daily_wrapper {
	position: relative;
	min-height: 120px;
	border-right: 1px solid #f1f5f9;
	padding: 8px 6px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	transition: background-color 0.2s ease;
}

.schedule_daily_wrapper:nth-child(7n) {
	border-right: none;
}

.schedule_daily_wrapper.schedule_daily:hover {
	background-color: #f8fafc;
}

/* Empty days outside month */
.schedule_daily_wrapper.empty_day {
	background-color: #fafbfc;
	cursor: default;
}

/* Today highlight */
.schedule_daily_wrapper.this_day {
	background-color: rgba(61, 133, 198, 0.04);
}

.schedule_daily_wrapper.this_day .day_num_text {
	background: #3d85c6 !important;
	color: #ffffff !important;
	box-shadow: 0 3px 8px rgba(61, 133, 198, 0.35);
}

/* Day Header */
.schedule_daily_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.schedule_daily_header .day_number_wrap {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.schedule_daily_header .day_num_link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.schedule_daily_header .day_num_text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	transition: all 0.2s ease;
}

.schedule_daily_wrapper.schedule_daily:hover .day_num_text {
	background-color: #e2e8f0;
}

.schedule_daily_header .day_number_wrap.sunday .day_num_text {
	color: #e11d48;
}

.schedule_daily_header .day_number_wrap.saturday .day_num_text {
	color: #2563eb;
}

/* Special day badge (holiday/divisions) */
.schedule_daily_header .head_info {
	display: inline-flex;
	align-items: center;
	font-size: 10px;
	font-weight: 500;
	color: #64748b;
}

.schedule_daily_header .head_info .holiday_badge {
	color: #e11d48;
	font-weight: 600;
	background: #ffe4e6;
	padding: 1px 4px;
	border-radius: 3px;
}

/* Day Body & Events */
.schedule_daily_body {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.schedule_daily_body .schedule_day {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
}

/* --- Schedule Badges / Cards --- */
.schedule_list.schedule {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	border-radius: 6px;
	background-color: #f0f7ff;
	border: 1px solid #d0e3f7;
	border-left: 3px solid #3d85c6;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	cursor: pointer;
}

.schedule_list.schedule:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(61, 133, 198, 0.18);
	background-color: #e6f2fe;
	border-color: #b9daf6;
}

.schedule_list.schedule .sch_badge_link {
	display: flex;
	align-items: center;
	padding: 4px 6px;
	gap: 5px;
	text-decoration: none;
	width: 100%;
	box-sizing: border-box;
}

/* Time Pill */
.schedule_list.schedule .sch_badge_time {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 10px;
	font-weight: 700;
	color: #ffffff;
	background-color: #3d85c6;
	padding: 1px 5px;
	border-radius: 3px;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.schedule_list.schedule .sch_badge_time.allday {
	background-color: #0284c7;
}

/* Title / Location Text */
.schedule_list.schedule .sch_badge_title {
	flex: 1;
	font-size: 12px;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

/* Location Tag if available */
.schedule_list.schedule .sch_place_tag {
	display: none;
}

/* All-day variation */
.schedule_list.schedule.is_allday {
	background-color: #e0f2fe;
	border-left-color: #0284c7;
}

/* Custom color override support */
.schedule_list.schedule[data-has-color="true"] {
	border-left-color: var(--item-color, #3d85c6);
}

/* Holiday / Special day items */
.schedule_daily_body .schedule_list.holiday {
	background-color: #ffe4e6;
	border-left: 3px solid #e11d48;
	color: #9f1239;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 6px;
	border-radius: 4px;
	margin-bottom: 2px;
}

.schedule_daily_body .schedule_list.etc_day {
	background-color: #f1f5f9;
	border-left: 3px solid #94a3b8;
	color: #475569;
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 4px;
	margin-bottom: 2px;
}

/* ==========================================================================
   SCHEDULE HEADER & NAVIGATION CONTROLS
   ========================================================================== */
.sch_header_wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin: 20px 0 24px;
	padding: 16px 20px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

/* View Switcher */
.sch_view_toggle {
	display: inline-flex;
	align-items: center;
	background-color: #f1f5f9;
	padding: 3px;
	border-radius: 24px;
	border: 1px solid #e2e8f0;
}

.sch_toggle_btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	background: transparent;
	border: none;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
}

.sch_toggle_btn:hover {
	color: #1e293b;
}

.sch_toggle_btn.active {
	background-color: #ffffff;
	color: #3d85c6;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sch_toggle_btn i {
	font-size: 14px;
}

/* Center Month Navigation */
.sch_header_center {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sch_nav_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background-color: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 50%;
	color: #334155;
	font-size: 16px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.sch_nav_btn:hover {
	background-color: #3d85c6;
	border-color: #3d85c6;
	color: #ffffff;
	box-shadow: 0 4px 10px rgba(61, 133, 198, 0.25);
}

.sch_month_title {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	padding: 4px 14px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 10px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.sch_month_title:hover {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.sch_year_text {
	font-size: 17px;
	font-weight: 500;
	color: #64748b;
}

.sch_month_text {
	font-size: 26px;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.sch_picker_icon {
	font-size: 13px;
	color: #94a3b8;
}

/* Right Actions (Today, Write) */
.sch_header_right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sch_today_btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #3d85c6;
	background-color: rgba(61, 133, 198, 0.08);
	border: 1px solid rgba(61, 133, 198, 0.2);
	border-radius: 20px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.sch_today_btn:hover {
	background-color: #3d85c6;
	color: #ffffff;
}

.sch_write_btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	background-color: #1e293b;
	border-radius: 20px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.sch_write_btn:hover {
	background-color: #0f172a;
	box-shadow: 0 3px 8px rgba(15, 23, 42, 0.2);
}

/* ==========================================================================
   MONTHLY AGENDA / TIMELINE LIST VIEW
   ========================================================================== */
.sch_agenda_container {
	margin: 20px auto 40px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
	padding: 24px;
	box-sizing: border-box;
}

.sch_agenda_header_bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 18px;
	margin-bottom: 24px;
	border-bottom: 2px solid #f1f5f9;
}

.sch_agenda_heading {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 8px;
}

.sch_agenda_heading i {
	color: #3d85c6;
	font-size: 20px;
}

.sch_agenda_count_badge {
	font-size: 13px;
	font-weight: 600;
	color: #3d85c6;
	background: #e0f2fe;
	padding: 4px 12px;
	border-radius: 20px;
}

.sch_agenda_timeline {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sch_agenda_day_card {
	display: flex;
	gap: 20px;
	padding: 16px 20px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	transition: all 0.2s ease;
}

.sch_agenda_day_card:hover {
	background: #ffffff;
	border-color: #cbd5e1;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.sch_agenda_day_card.is_today {
	background: #f0f7ff;
	border-color: #bfdbfe;
}

/* Date Side */
.sch_agenda_date_side {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 68px;
	padding-right: 18px;
	border-right: 2px solid #e2e8f0;
	flex-shrink: 0;
}

.sch_agenda_day_num {
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	color: #1e293b;
}

.sch_agenda_date_side.sunday .sch_agenda_day_num {
	color: #e11d48;
}

.sch_agenda_date_side.saturday .sch_agenda_day_num {
	color: #2563eb;
}

.sch_agenda_day_meta {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	margin-top: 4px;
}

.sch_today_pill {
	display: inline-block;
	font-size: 9px;
	font-weight: 800;
	color: #ffffff;
	background: #3d85c6;
	padding: 2px 6px;
	border-radius: 4px;
	margin-top: 6px;
	letter-spacing: 0.04em;
}

/* Items Side */
.sch_agenda_items_side {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
}

.sch_agenda_item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 14px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
	transition: all 0.2s ease;
}

.sch_agenda_item:hover {
	border-color: #3d85c6;
	box-shadow: 0 3px 8px rgba(61, 133, 198, 0.12);
}

.sch_agenda_item_time {
	font-size: 13px;
	font-weight: 700;
	color: #3d85c6;
	background: #f0f7ff;
	padding: 4px 10px;
	border-radius: 6px;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
}

.sch_agenda_item_main {
	flex: 1;
}

.sch_agenda_item_title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.sch_agenda_item_place {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: #64748b;
	margin-top: 3px;
}

.sch_agenda_item_place i {
	color: #94a3b8;
}

.sch_agenda_detail_btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 6px 12px;
	border-radius: 6px;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.sch_agenda_detail_btn:hover {
	background: #3d85c6;
	border-color: #3d85c6;
	color: #ffffff;
}

/* Empty State */
.sch_agenda_empty {
	text-align: center;
	padding: 60px 20px;
}

.sch_empty_icon {
	font-size: 48px;
	color: #cbd5e1;
	margin-bottom: 14px;
}

.sch_empty_text {
	font-size: 16px;
	font-weight: 600;
	color: #334155;
	margin: 0 0 6px;
}

.sch_empty_sub {
	font-size: 14px;
	color: #64748b;
	margin: 0;
}

.sch_empty_sub a {
	color: #3d85c6;
	font-weight: 600;
	text-decoration: underline;
}

/* ==========================================================================
   QUICK POPUP MODAL FOR EVENTS
   ========================================================================== */
.sch_quick_modal_overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(4px);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.sch_quick_modal_box {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	padding: 28px 24px 20px;
	box-sizing: border-box;
	animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.sch_modal_close_btn {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f1f5f9;
	border: none;
	color: #64748b;
	font-size: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
}

.sch_modal_close_btn:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.sch_modal_header {
	margin-bottom: 20px;
	padding-right: 28px;
}

.sch_modal_date_badge {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: #3d85c6;
	background: #e0f2fe;
	padding: 4px 10px;
	border-radius: 6px;
	margin-bottom: 8px;
}

.sch_modal_title {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.4;
}

.sch_modal_body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px 0;
	border-top: 1px solid #f1f5f9;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 20px;
}

.sch_modal_row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.sch_modal_row > i {
	font-size: 18px;
	color: #3d85c6;
	margin-top: 2px;
	flex-shrink: 0;
}

.sch_modal_row_content {
	flex: 1;
}

.sch_modal_label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 2px;
}

.sch_modal_value {
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.4;
}

.sch_modal_desc {
	font-size: 14px;
	color: #475569;
	line-height: 1.6;
	margin-top: 4px;
	background: #f8fafc;
	padding: 10px 14px;
	border-radius: 8px;
}

.sch_modal_footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.sch_modal_action_btn {
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.2s ease;
}

.sch_modal_action_btn.primary {
	background: #3d85c6;
	color: #ffffff;
}

.sch_modal_action_btn.primary:hover {
	background: #2e6ea9;
}

.sch_modal_action_btn.secondary {
	background: #f1f5f9;
	color: #475569;
	border-color: #e2e8f0;
}

.sch_modal_action_btn.secondary:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* ==========================================================================
   RESPONSIVE MOBILE STYLES
   ========================================================================== */
@media only screen and (max-width: 768px) {
	.sch_header_wrap {
		flex-direction: column;
		align-items: stretch;
		padding: 14px;
	}

	.sch_header_center {
		justify-content: center;
		order: 1;
	}

	.sch_header_left {
		order: 2;
		display: flex;
		justify-content: center;
	}

	.sch_header_right {
		order: 3;
		justify-content: center;
	}

	.schedule_daily_wrapper {
		min-height: 76px;
		padding: 4px 2px;
	}

	.schedule_daily_header .day_num_text {
		width: 22px;
		height: 22px;
		font-size: 11px;
	}

	.schedule_list.schedule .sch_badge_link {
		padding: 2px 3px;
		gap: 3px;
	}

	.schedule_list.schedule .sch_badge_time {
		font-size: 9px;
		padding: 1px 3px;
	}

	.schedule_list.schedule .sch_badge_title {
		font-size: 10px;
	}

	.sch_agenda_day_card {
		flex-direction: column;
		gap: 12px;
		padding: 14px;
	}

	.sch_agenda_date_side {
		flex-direction: row;
		justify-content: flex-start;
		gap: 10px;
		padding-right: 0;
		padding-bottom: 10px;
		border-right: none;
		border-bottom: 2px solid #e2e8f0;
		min-width: unset;
	}

	.sch_agenda_day_num {
		font-size: 20px;
	}

	.sch_agenda_item {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.sch_agenda_item_action {
		width: 100%;
	}

	.sch_agenda_detail_btn {
		width: 100%;
		justify-content: center;
		box-sizing: border-box;
	}
}

@media only screen and (max-width: 480px) {
	.schedule_monthly_header .weekday_col small {
		display: none;
	}

	.schedule_daily_wrapper {
		min-height: 64px;
	}

	.schedule_list.schedule {
		border-radius: 4px;
	}

	.schedule_list.schedule .sch_badge_time {
		display: none; /* Hide time inside tiny cell on smallest screens, show title */
	}

	.schedule_list.schedule .sch_badge_title {
		font-size: 10px;
		font-weight: 700;
	}
}