/* Lesson Notes Panel */
.pcs-lesson-video-wrapper {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 1.5rem;
	align-items: start;
}

.pcs-video-section {
	grid-column: 1;
}

.pcs-notes-panel {
	grid-column: 2;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: 600px;
	position: sticky;
	top: 2rem;
}

.pcs-notes-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
	border-bottom: 1px solid #e5e7eb;
	background: #f9fafb;
}

.pcs-notes-header h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
}

.pcs-notes-header-actions {
	display: flex;
	gap: 0.5rem;
}

.pcs-notes-export-btn,
.pcs-notes-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	color: #6b7280;
	transition: color 0.2s ease;
	padding: 0;
	line-height: 1;
}

.pcs-notes-export-btn:hover,
.pcs-notes-toggle:hover {
	color: var(--pco-primary-color, #7A3FF2);
}

.pcs-notes-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	overflow: hidden;
}

/* Notes Form */
.pcs-notes-form {
	padding: 1rem;
	border-bottom: 1px solid #e5e7eb;
}

.pcs-notes-input {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	resize: vertical;
	transition: border-color 0.2s ease;
}

.pcs-notes-input:focus {
	outline: none;
	border-color: var(--pco-primary-color, #7A3FF2);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.pcs-notes-form-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.pcs-notes-save-btn,
.pcs-notes-timestamp-btn {
	flex: 1;
	padding: 0.5rem 0.75rem;
	background: var(--pco-primary-color, #7A3FF2);
	color: #fff;
	border: none;
	border-radius: 0.375rem;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
}

.pcs-notes-timestamp-btn {
	background: #6b7280;
	flex: 0 0 auto;
	padding: 0.5rem;
}

.pcs-notes-save-btn:hover {
	background: #5B1ED9;
}

.pcs-notes-timestamp-btn:hover {
	background: #4b5563;
}

.pcs-notes-timestamp-btn i {
	font-size: 0.875rem;
	line-height: 1;
}

/* Notes List */
.pcs-notes-list {
	flex: 1;
	overflow-y: auto;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.pcs-note-item {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 0.375rem;
	padding: 0.75rem;
	transition: border-color 0.2s ease;
}

.pcs-note-item:hover {
	border-color: var(--pco-primary-color, #7A3FF2);
}

.pcs-note-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.pcs-note-time {
	font-size: 0.75rem;
	color: #6b7280;
	font-weight: 600;
}

.pcs-note-seek {
	color: var(--pco-primary-color, #7A3FF2);
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

.pcs-note-seek:hover {
	color: #5B1ED9;
	text-decoration: underline;
}

.pcs-note-delete {
	width: 1.5rem;
	height: 1.5rem;
	background: transparent;
	border: none;
	cursor: pointer;
	color: #9ca3af;
	font-size: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
	line-height: 1;
	padding: 0;
}

.pcs-note-delete:hover {
	color: #ef4444;
}

.pcs-note-content {
	font-size: 0.875rem;
	color: #374151;
	line-height: 1.5;
}

.pcs-note-content p {
	margin: 0.25rem 0;
}

.pcs-note-content p:first-child {
	margin-top: 0;
}

.pcs-note-content p:last-child {
	margin-bottom: 0;
}

.pcs-notes-empty {
	text-align: center;
	color: #9ca3af;
	font-size: 0.875rem;
	padding: 1.5rem 0.75rem;
	margin: 0;
}

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

.pcs-notes-list::-webkit-scrollbar-track {
	background: transparent;
}

.pcs-notes-list::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 3px;
}

.pcs-notes-list::-webkit-scrollbar-thumb:hover {
	background: #9ca3af;
}

/* Responsive */
@media (max-width: 1024px) {
	.pcs-lesson-video-wrapper {
		grid-template-columns: 1fr;
	}

	.pcs-notes-panel {
		grid-column: 1;
		max-height: 400px;
		position: static;
	}
}

@media (max-width: 768px) {
	.pcs-lesson-video-wrapper {
		gap: 1rem;
	}

	.pcs-notes-panel {
		display: none;
	}

	.pcs-notes-panel.visible {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		top: auto;
		width: 100%;
		height: 50vh;
		max-height: 50vh;
		border-radius: 0;
		z-index: 100;
		border-top: 1px solid #e5e7eb;
	}

	.pcs-notes-toggle {
		display: flex;
	}
}
