:root {
    --bg-color: #1e1e1e;
    --sidebar-bg: #252526;
    --activity-bar-bg: #333333;
    --text-color: #d4d4d4;
    --tab-active: #1e1e1e;
    --tab-inactive: #2d2d2d;
    --accent-color: #007acc;
    --keyword: #569cd6;
    --string: #ce9178;
    --border: #3c3c3c;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Consolas', 'Monaco', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

.activity-bar {
    width: 50px;
    background-color: var(--activity-bar-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15px;
}

.icon {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.6;
}

.icon.active {
    opacity: 1;
    border-left: 2px solid var(--accent-color);
}

.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border);
}

.sidebar-header {
    padding: 10px 20px;
    font-size: 11px;
    letter-spacing: 1px;
    color: #bbbbbb;
}

.file-list, .file-list ul {
    list-style: none;
    padding-left: 20px;
    margin: 5px 0;
}

.file, .file-group {
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

.file:hover {
    background-color: #2a2d2e;
}

.file.active {
    background-color: #37373d;
    color: white;
}

.editor {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tabs {
    display: flex;
    background-color: var(--sidebar-bg);
    height: 35px;
}

.tab {
    padding: 0 20px;
    display: flex;
    align-items: center;
    background-color: var(--tab-inactive);
    border-right: 1px solid var(--bg-color);
    font-size: 13px;
    cursor: pointer;
}

.tab.active {
    background-color: var(--tab-active);
    border-top: 1px solid var(--accent-color);
}

.content-area {
    display: flex;
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
}

.code-view {
	display: none;
    line-height: 1.6;
}

.code_view.active {
	display: block;
}

.keyword { color: var(--keyword); }
.string { color: var(--string); }

.editor, .content-area, .code_view {
	min-width: 0;
	min-height: 0;
}

h1, h2 {
    margin-top: 0;
    color: var(--keyword);
    font-size: 1.5rem;
}

a {
    color: #3794ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: #5aa9ff;
}

video, img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

@media (max-width: 768px) {
	.container {
		flex-direction: column;
	}

	.activity-bar {
		width: 100%;
		height: 50px;
		flex-direction: row;
		flex-shrink: 0;
		justify-content: flex-start;

		padding-top: 0;
	}

	.icon {
		width: 50px;
		height: 100%;
	}

	.sidebar {
		width: 100%;
		max-height: 220px;
		overflow-y: auto;
		flex-shrink: 0;
	}

	.editor {
		flex: 1;
		display: flex;
		flex-direction: column;

		scrollbar-width: none;
	}

	.tabs {
		overflow-x: auto;
		white-space: nowrap;

		scrollbar-width: none;
	}

	.content-area {
		padding: 15px;
		overflow-y: auto;
	}

	body, html {
		font-size: 13px;
	}
	h1, h2 {
		font-size: 1.3rem;
	}
}