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

body {
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, sans-serif;
	height: 100vh;
	overflow: hidden;
}

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

/* Sidebar */
.sidebar {
	width: 250px;
	background-color: #f5f5f5;
	border-right: 1px solid #ddd;
	display: flex;
	flex-direction: column;
}

.sidebar.hidden {
	display: none;
}

.sidebar-header {
	padding: 12px;
	border-bottom: 1px solid #ddd;
	background-color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.sidebar-header h1 {
	font-size: 24px;
	color: #000;
}

.new-note-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 28px;
	font-weight: 300;
	color: #000;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s;
}

.new-note-btn:hover {
	opacity: 0.6;
}

.notes-list {
	flex: 1;
	overflow-y: auto;
	padding: 8px;
}

.note-item {
	padding: 8px;
	margin-bottom: 4px;
	background-color: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	transition: background-color 0.2s;
}

.note-item:hover {
	background-color: #f0f0f0;
}

.note-item.active {
	background-color: #e0e0e0;
}

.note-title {
	flex: 1;
	font-size: 14px;
	color: #000;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 8px;
}

.note-title.empty {
	color: #999;
	font-style: italic;
}

.delete-btn {
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	transition:
		background-color 0.2s,
		color 0.2s;
}

.delete-btn:hover {
	background-color: #e0e0e0;
	color: #000;
}

/* Toggle Sidebar Button */
.toggle-sidebar-btn {
	background: none;
	border: 1px solid transparent;
	cursor: pointer;
	font-size: 18px;
	color: #444;
	padding: 5px;
	margin-right: 10px;
	width: 28px;
	height: 24px;
	display: inline-block;
	vertical-align: top;
}

.toggle-sidebar-btn:hover {
	color: #06c;
}

.toggle-sidebar-btn:active {
	color: #444;
}

/* Editor */
.editor-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#editor {
	flex: 1;
	background-color: #fff;
}

/* Quill editor customization */
.ql-container {
	font-size: 16px;
	height: calc(100% - 42px) !important;
}

.ql-editor {
	padding: 20px;
	line-height: 2;
}

.ql-editor.ql-blank::before {
	font-style: italic;
	color: #aaa;
}

/* Scrollbar styling for notes list */
.notes-list::-webkit-scrollbar {
	width: 8px;
}

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

.notes-list::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

.notes-list::-webkit-scrollbar-thumb:hover {
	background: #999;
}
