* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	background: #f5f5f5;
	color: #333;
	line-height: 1.6;
	overflow: hidden;
}

.navbar {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 100;
}

.navbar .container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.logo-img {
	width: 42px;
	height: 42px;
	border-radius: 8px;
	object-fit: cover;
}

.logo-text {
	font-size: 1.5rem;
	font-weight: 700;
	color: #4A90E2;
	text-decoration: none;
	transition: color 0.3s ease;
}

.logo-text:hover {
	color: #357ABD;
}

.page-indicator {
	color: #666;
	font-size: 0.95rem;
	font-weight: 500;
	padding: 0.5rem 1rem;
	background: #f8f9fa;
	border-radius: 6px;
}

.tour-container {
	display: grid;
	grid-template-columns: 700px 1fr;
	gap: 0;
	height: calc(100vh - 74px);
	background: #fff;
}


.sidebar {
	background: #ffffff;
	border-right: 1px solid #e0e0e0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.sidebar::-webkit-scrollbar {
	width: 8px;
}

.sidebar::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
	background: #a1a1a1;
}

.lesson-content {
	padding: 2rem;
	flex: 1;
}

.lesson-content h1 {
	font-size: 1.85rem;
	color: #1a1a1a;
	margin-bottom: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.lesson-content h2 {
	font-size: 1.3rem;
	color: #4A90E2;
	margin-top: 1.75rem;
	margin-bottom: 0.85rem;
	font-weight: 600;
}

.lesson-content p {
	line-height: 1.7;
	margin-bottom: 1rem;
	color: #4a4a4a;
	font-size: 1rem;
}

.lesson-content code {
	background: #f4f4f4;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	font-size: 0.9em;
	color: #d63384;
	border: 1px solid #e9ecef;
}

.lesson-content ul {
	margin-left: 1.75rem;
	margin-bottom: 1.25rem;
}

.lesson-content li {
	margin-bottom: 0.65rem;
	line-height: 1.7;
	color: #4a4a4a;
}


.navigation {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem 2rem;
	border-top: 1px solid #e0e0e0;
	background: #fafafa;
}

.btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
	white-space: nowrap;
}

.primary-btn {
	background: #4A90E2;
	color: white;
	box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.primary-btn:hover:not(:disabled) {
	background: #357ABD;
	box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
	transform: translateY(-1px);
}

.secondary-btn {
	background: #e9ecef;
	color: #495057;
}

.secondary-btn:hover:not(:disabled) {
	background: #dee2e6;
}

.btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none !important;
}


.editor-panel {
	display: flex;
	flex-direction: column;
	background: #f8f9fa;
	overflow: hidden;
}

.editor-header {
	background: #ffffff;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #dee2e6;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.editor-title {
	font-size: 1rem;
	color: #6c757d;
	font-weight: 500;
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.run-btn {
	background: #28a745;
	color: white;
	padding: 0.6rem 1.75rem;
	border: none;
	border-radius: 6px;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 600;
	box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.run-btn:hover {
	background: #218838;
	box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
	transform: translateY(-1px);
}

.run-btn:active {
	transform: translateY(0);
}


.editor-wrapper {
	flex: 1;
	padding: 1.5rem;
	overflow: auto;
	min-height: 0;
}

.editor-wrapper::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

.editor-wrapper::-webkit-scrollbar-track {
	background: #e9ecef;
}

.editor-wrapper::-webkit-scrollbar-thumb {
	background: #adb5bd;
	border-radius: 5px;
}

.editor-wrapper::-webkit-scrollbar-thumb:hover {
	background: #868e96;
}

.code-editor {
	width: 100%;
	height: 100%;
	min-height: 300px;
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	font-size: 14px;
	line-height: 1.6;
	padding: 1.25rem;
	border: 1px solid #ced4da;
	border-radius: 8px;
	background: #ffffff;
	resize: vertical;
	color: #212529;
	tab-size: 4;
}

.code-editor:focus {
	outline: none;
	border-color: #4A90E2;
	box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}


.output-section {
	background: #ffffff;
	border-top: 1px solid #dee2e6;
	padding: 1.5rem;
	max-height: 250px;
	overflow-y: auto;
}

.output-section::-webkit-scrollbar {
	width: 8px;
}

.output-section::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.output-section::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 4px;
}

.output-header {
	font-size: 0.9rem;
	color: #6c757d;
	margin-bottom: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.output-content {
	background: #1e1e1e;
	color: #d4d4d4;
	padding: 1.25rem;
	border-radius: 6px;
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	font-size: 14px;
	line-height: 1.6;
	min-height: 100px;
	white-space: pre-wrap;
	word-wrap: break-word;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.output-content:empty::before {
	content: "Нәтиже осында көрсетіледі...";
	color: #6c757d;
	font-style: italic;
}


@media (max-width: 1024px) {
	.tour-container {
		grid-template-columns: 700px 1fr;
	}
	.lesson-content {
		padding: 1.5rem;
	}
	.lesson-content h1 {
		font-size: 1.6rem;
	}
}

@media (max-width: 768px) {
	.tour-container {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
		height: auto;
	}
	.sidebar {
		border-right: none;
		border-bottom: 1px solid #e0e0e0;
		max-height: 50vh;
	}
	.editor-panel {
		min-height: 50vh;
	}
	.navbar .container {
		padding: 0 1rem;
	}
	.logo-text {
		font-size: 1.25rem;
	}
	.page-indicator {
		font-size: 0.85rem;
		padding: 0.4rem 0.8rem;
	}
}
