body{
	overflow: hidden;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	margin: 0;
}

#outline-list, #outline-list1 {
	list-style: none;
	padding-left: 0;
}

#outline-list a {
	display: block;
	padding: 8px 12px;
	text-decoration: none;
	color: #333;
	transition: all 0.3s ease;
	border-radius: 8px;
	margin: 2px 0;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	user-select: none;
	position: relative;
}

.outline-list-vertical div {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e0f3fa;
	color: #008CBA;
	font-size: 16px;
	margin-left: 8px;
	cursor: pointer;
	transition: background 0.3s, color 0.3s, transform 0.3s;
	box-shadow: 0 2px 8px rgba(0,140,186,0.08);
	border: 1.5px solid #b2e0f7;
	user-select: none;
}

.outline-list-vertical li:hover div {
	background: linear-gradient(135deg, #008CBA, #0066cc);
	color: #fff;
	border-color: #008CBA;
	box-shadow: 0 4px 12px rgba(0,140,186,0.18);
	transform: scale(1.1) rotate(0deg);
}

#outline-list div{
	font-size: 14px;
	transition: transform 0.3s ease;
	color: #008CBA;
	flex-shrink: 0;
}

#outline-list a:hover {
	background: linear-gradient(135deg, #008CBA, #0066cc);
	color: white;
	transform: translateX(8px);
	box-shadow: 0 4px 12px rgba(0, 140, 186, 0.3);
}

.level-2 { padding-left: 20px !important; }
.level-3 { padding-left: 40px !important; }
.level-4 { padding-left: 60px !important; }

pre code {
	display: block;
	padding: 20px;
	border-radius: 12px;
	background: linear-gradient(135deg, #2c3e50, #34495e);
	color: #ecf0f1;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	font-family: 'Monaco', 'Consolas', monospace;
	font-size: 14px;
	line-height: 1.5;
}

.container {
	display: flex;
	height: 100dvh;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
}

#editor {
	flex: 1;
	padding: 25px;
	border-right: 1px solid rgba(224, 230, 237, 0.5);
	font-family: 'Monaco', 'Consolas', monospace;
	background: rgba(248, 249, 250, 0.8);
}

#preview {
	flex: 2;
	padding: 25px;
	overflow-y: auto;
	background: rgba(255, 255, 255, 0.9);
	box-sizing: border-box;
	width: 100%;
}

#outline, #outline-detail {
	background: linear-gradient(135deg, #f8f9fa, #e9ecef);
	border-left: 1px solid rgba(224, 230, 237, 0.5);
	padding: 25px;
	height: 100dvh;
	box-sizing: border-box;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	overflow: auto;
	visibility: hidden;
}

.back-button{
	display: inline-block;
	color: #666;
	text-align: center;
	width: 40px;
	height: 40px;
	text-decoration: none;
	margin: 0 5px;
	font-size: 30px;
	border-radius: 50%;
	position: absolute;
	left: 16px;
	top: 8px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	background: rgba(255, 255, 255, 0.9);
	z-index: 1000;
}

.back-button:hover {
	background: linear-gradient(135deg, #008CBA, #0066cc);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 140, 186, 0.3);
}

video{
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

th,td{
	padding: 8px 12px;
	border: 1px solid rgba(224, 230, 237, 0.5);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.8);
}

th {
	background: linear-gradient(135deg, #008CBA, #0066cc);
	color: white;
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.line1, .line2, .line3, .line4, .line5, .line6{
	width: 100%;
	display: flex;
	justify-content: space-around;
}
	
.outline-list-vertical {
	display: block;
}

.outline-list-horizontal {
	display: none !important;
}
	
#outline h3, #outline-detail h3 {
	margin: 0 0 15px 0;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	user-select: none;
	position: relative;
}

#outline h3::after, #outline-detail h3::after {
	content: '▼';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e0f3fa;
	color: #008CBA;
	font-size: 16px;
	margin-left: 8px;
	transition: background 0.3s, color 0.3s, transform 0.3s;
	box-shadow: 0 2px 8px rgba(0,140,186,0.08);
	border: 1.5px solid #b2e0f7;
}

#outline-toggle:checked ~ #outline-list, 
#outline-detail-toggle:checked ~ #outline-list {
	display: none !important;
	transform: translateY(-10px);
}

#outline label:hover h3::after, #outline-detail label:hover h3::after {
	background: linear-gradient(135deg, #008CBA, #0066cc);
	color: #fff;
	border-color: #008CBA;
	box-shadow: 0 4px 12px rgba(0,140,186,0.18);
	transform: scale(1.1) rotate(0deg);
}

#outline-toggle:checked ~ label h3::after, 
#outline-detail-toggle:checked ~ label h3::after {
	transform: rotate(90deg);
}

#outline h3, #outline-detail h3 {
	margin: 0 0 15px 0;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	user-select: none;
	position: relative;
}

#outline-list {
	transition: all 0.3s ease;
}
	
.hover{
	background: linear-gradient(135deg, #008CBA, #0066cc);
	color: white !important;
	box-shadow: 0 4px 12px rgba(0, 140, 186, 0.3);
}
.resizer {
	width: 3px;
	cursor: col-resize;
	background: transparent;
	border-radius: 6px;
	margin: 0;
	height: 100%;
	align-self: stretch;
	position: relative;
	z-index: 10;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: background 0.2s;
	flex-shrink: 0;
}
.resizer:hover {
	background: linear-gradient(135deg, #008CBA 60%, #0066cc 100%);
}

@media (max-width: 768px) {
	body {
		overflow: auto;
	}
	
	.container {
		flex-direction: column;
		height: auto;
		min-height: 100vh;
	}
	
	#outline, #outline-detail {
		width: 100% !important;
		height: auto;
		padding: 15px;
		border-left: none;
		border-bottom: 1px solid rgba(224, 230, 237, 0.5);
		position: relative;
	}
	
	#outline { order: 1; }
	#outline-detail { order: 2; }
	
	#outline label, #outline-detail label {
		display: block;
		cursor: pointer;
		margin: 0;
	}
	
	#outline-list a {
		padding: 10px 12px;
		font-size: 14px;
		text-align: center;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	
	#outline-list a:hover {
		transform: translateY(-2px);
	}
	
	#preview {
		flex: none;
		padding: 15px;
		order: 3;
	}
	
	.back-button {
		left: 10px;
		top: 10px;
		width: 35px;
		height: 35px;
		font-size: 24px;
	}
	
	pre code {
		padding: 15px;
		font-size: 12px;
		overflow-x: auto;
	}
	
	video {
		max-width: 100%;
		height: auto;
	}
	
	th, td {
		padding: 6px 8px;
		font-size: 14px;
	}
	
	.outline-list-vertical {
		display: none !important;
	}
	
	.outline-list-horizontal {
		display: block !important;
	}
	
	#outline #outline-list{
		width: 100%;
		display: flex;
		justify-content: space-around;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0;
	}
	
	#outline, #outline-detail {
		padding: 10px;
	}
	
	#outline h3, #outline-detail h3 {
		font-size: 16px;
		padding: 8px 0;
	}
	
	#outline h3::after, #outline-detail h3::after {
		font-size: 12px;
	}
	
	#outline-list {
		flex-direction: column;
	}
	
	#outline-list li {
		min-width: auto;
	}
	
	#outline-list a {
		text-align: left;
		padding: 12px;
		font-size: 16px;
	}
	
	#preview {
		padding: 10px;
	}
	
	pre code {
		padding: 10px;
		font-size: 11px;
	}
	
	.back-button {
		left: 8px;
		top: 8px;
		width: 32px;
		height: 32px;
		font-size: 20px;
	}
	
	th, td {
		padding: 4px 6px;
		font-size: 12px;
	}
	
	.outline-list-vertical {
		display: flex !important;
	}
	
	.outline-list-horizontal {
		display: none !important;
	}
}