/* ================== ImageKit Modal Styling ================== */

/* Modal Hierarchy System - Prevents z-index conflicts */
:root {
	--z-modal-backdrop: 900;
	--z-lesson-modal: 1000;
	--z-content-creator-modal: 1100;
	--z-image-picker-modal: 1200;
	--z-video-embed-modal: 1200;
	--z-imagekit-modal: 1300;
	--z-imagekit-toolbar: 1301;
	--z-notification-toast: 9999;
}

/* Base modal backdrop */
.modal-backdrop {
	z-index: var(--z-modal-backdrop);
}

/* Lesson view modal */
.lesson-modal {
	z-index: var(--z-lesson-modal) !important;
}

/* Content Creator Modal */
#content-creator-modal {
	z-index: var(--z-content-creator-modal) !important;
}

/* Image Picker Modal */
#image-picker-modal {
	z-index: var(--z-image-picker-modal) !important;
}

/* Video Embed Modal */
#video-modal {
	z-index: var(--z-video-embed-modal) !important;
}

/* Image Selection Overlay */
.image-selection-overlay {
	z-index: var(--z-image-picker-modal) !important;
}

.imagekit-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.95);
	backdrop-filter: blur(20px);
	z-index: var(--z-imagekit-modal);
	display: none;
	opacity: 0;
	transition: all 0.3s ease;
}

.imagekit-modal.active {
	display: flex;
	opacity: 1;
}

.imagekit-container {
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-columns: 420px 1fr;
	gap: 20px;
	padding: 20px;
	box-sizing: border-box;
}

/* ================== Control Panel ================== */
.imagekit-panel {
	background: rgba(11, 18, 32, 0.9);
	border: 1px solid rgba(59, 130, 246, 0.3);
	border-radius: 16px;
	padding: 20px;
	height: calc(100vh - 40px);
	overflow-y: auto;
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.imagekit-panel::-webkit-scrollbar {
	width: 8px;
}

.imagekit-panel::-webkit-scrollbar-track {
	background: rgba(30, 41, 59, 0.3);
	border-radius: 4px;
}

.imagekit-panel::-webkit-scrollbar-thumb {
	background: rgba(59, 130, 246, 0.5);
	border-radius: 4px;
}

.imagekit-panel h2 {
	margin: 0 0 16px 0;
	color: #e2e8f0;
	font-size: 18px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.imagekit-panel h3 {
	margin: 20px 0 12px 0;
	color: #cbd5e1;
	font-size: 16px;
	font-weight: 500;
}

/* ================== Canvas Container ================== */
.imagekit-canvas-container {
	background: rgba(15, 23, 42, 0.8);
	border: 1px solid rgba(71, 85, 105, 0.4);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.imagekit-canvas {
	max-width: 100%;
	max-height: 100%;
	display: block;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	cursor: crosshair;
	transition: transform 0.2s ease;
}

/* Removed hover animation for better UX */

/* ================== Form Controls ================== */
.imagekit-form-group {
	margin-bottom: 16px;
}

.imagekit-label {
	display: block;
	margin-bottom: 6px;
	color: #cbd5e1;
	font-size: 13px;
	font-weight: 500;
}

.imagekit-input,
.imagekit-select {
	width: 100%;
	background: rgba(15, 23, 42, 0.8);
	border: 1px solid rgba(71, 85, 105, 0.5);
	color: #e2e8f0;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.imagekit-input:focus,
.imagekit-select:focus {
	outline: none;
	border-color: rgba(59, 130, 246, 0.8);
	background: rgba(15, 23, 42, 0.9);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.imagekit-input[type="number"] {
	text-align: center;
}

.imagekit-input[type="color"] {
	height: 40px;
	padding: 4px;
	cursor: pointer;
}

.imagekit-input[type="file"] {
	font-size: 12px;
	padding: 8px;
}

/* ================== Grid Layouts ================== */
.imagekit-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 12px;
}

.imagekit-row-3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 8px;
	margin-bottom: 12px;
}

.imagekit-row-4 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 8px;
	margin-bottom: 12px;
}

/* ================== Buttons ================== */
.imagekit-btn {
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	border: none;
	padding: 10px 16px;
	border-radius: 10px;
	color: #ffffff;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.imagekit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.imagekit-btn:active {
	transform: translateY(0);
}

.imagekit-btn.secondary {
	background: linear-gradient(135deg, #64748b 0%, #475569 100%);
	box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.imagekit-btn.secondary:hover {
	box-shadow: 0 4px 16px rgba(100, 116, 139, 0.4);
}

.imagekit-btn.danger {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.imagekit-btn.danger:hover {
	box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.imagekit-btn.success {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.imagekit-btn.success:hover {
	box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.imagekit-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none !important;
}

/* ================== Tool Palette ================== */
.imagekit-tools {
	display: grid;
	grid-template-columns: repeat(auto-fit, 48px);
	gap: 8px;
	margin-bottom: 20px;
}

.imagekit-tool {
	width: 48px;
	height: 48px;
	background: rgba(30, 41, 59, 0.6);
	border: 2px solid rgba(71, 85, 105, 0.4);
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	transition: all 0.2s ease;
	position: relative;
}

.imagekit-tool:hover {
	border-color: rgba(59, 130, 246, 0.6);
	background: rgba(59, 130, 246, 0.1);
	transform: translateY(-2px);
}

.imagekit-tool.active {
	border-color: #3b82f6;
	background: rgba(59, 130, 246, 0.2);
	box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.imagekit-tool::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: -30px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.imagekit-tool:hover::after {
	opacity: 1;
}

/* ================== Calibration Points ================== */
.imagekit-calibration {
	background: rgba(30, 41, 59, 0.6);
	border: 1px solid rgba(71, 85, 105, 0.4);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 20px;
}

.imagekit-points-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 12px;
}

.imagekit-point-input {
	background: rgba(15, 23, 42, 0.8);
	border: 1px solid rgba(71, 85, 105, 0.5);
	color: #e2e8f0;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 13px;
	text-align: center;
}

.imagekit-point-input::placeholder {
	color: #64748b;
}

.imagekit-calibration-hint {
	font-size: 11px;
	color: #94a3b8;
	margin-bottom: 12px;
	line-height: 1.4;
}

.imagekit-calibration-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.imagekit-pill {
	display: inline-block;
	padding: 4px 8px;
	background: rgba(59, 130, 246, 0.2);
	border: 1px solid rgba(59, 130, 246, 0.4);
	border-radius: 999px;
	font-size: 11px;
	color: #93c5fd;
}

/* ================== Element Lists ================== */
.imagekit-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
}

.imagekit-card {
	background: rgba(30, 41, 59, 0.6);
	border: 1px solid rgba(71, 85, 105, 0.4);
	border-radius: 12px;
	padding: 14px;
	transition: all 0.2s ease;
}

.imagekit-card:hover {
	border-color: rgba(59, 130, 246, 0.4);
	background: rgba(30, 41, 59, 0.8);
}

.imagekit-card h4 {
	margin: 0 0 10px 0;
	color: #e2e8f0;
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.imagekit-card-content {
	display: grid;
	gap: 10px;
}

.imagekit-mini-label {
	font-size: 11px;
	color: #94a3b8;
	margin-top: 4px;
}

/* ================== Separators ================== */
.imagekit-separator {
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(71, 85, 105, 0.4) 50%, transparent 100%);
	margin: 24px 0;
}

/* ================== Status Indicators ================== */
.imagekit-status {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: rgba(16, 185, 129, 0.1);
	border: 1px solid rgba(16, 185, 129, 0.3);
	border-radius: 8px;
	color: #6ee7b7;
	font-size: 13px;
	margin-bottom: 16px;
}

.imagekit-status.warning {
	background: rgba(245, 158, 11, 0.1);
	border-color: rgba(245, 158, 11, 0.3);
	color: #fbbf24;
}

.imagekit-status.error {
	background: rgba(239, 68, 68, 0.1);
	border-color: rgba(239, 68, 68, 0.3);
	color: #fca5a5;
}

/* ================== Header Actions ================== */
.imagekit-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.imagekit-header h1 {
	margin: 0;
	color: #e2e8f0;
	font-size: 24px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
}

.imagekit-header-actions {
	display: flex;
	gap: 10px;
}

/* ================== Progress Indicator ================== */
.imagekit-progress {
	width: 100%;
	height: 4px;
	background: rgba(71, 85, 105, 0.3);
	border-radius: 2px;
	overflow: hidden;
	margin: 12px 0;
}

.imagekit-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
	border-radius: 2px;
	transition: width 0.3s ease;
	width: 0%;
}

/* ================== Collapsible Sections ================== */
.imagekit-section {
	margin-bottom: 20px;
	border: 1px solid rgba(71, 85, 105, 0.3);
	border-radius: 12px;
	overflow: hidden;
	background: rgba(15, 23, 42, 0.5);
}

.imagekit-section-header {
	padding: 12px 16px;
	background: rgba(30, 41, 59, 0.6);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #e2e8f0;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.2s ease;
}

.imagekit-section-header:hover {
	background: rgba(30, 41, 59, 0.8);
}

.imagekit-section-header .toggle-icon {
	transition: transform 0.2s ease;
	font-size: 12px;
}

.imagekit-section.collapsed .toggle-icon {
	transform: rotate(-90deg);
}

.imagekit-section-content {
	padding: 16px;
	transition: all 0.3s ease;
	max-height: 1000px;
	overflow: hidden;
}

.imagekit-section.collapsed .imagekit-section-content {
	max-height: 0;
	padding: 0 16px;
}

/* ================== Improved Element List ================== */
.imagekit-elements-container {
	max-height: 300px;
	overflow-y: auto;
}

.imagekit-element-item {
	background: rgba(30, 41, 59, 0.4);
	border: 1px solid rgba(71, 85, 105, 0.3);
	border-radius: 8px;
	margin-bottom: 8px;
	padding: 12px;
	transition: all 0.2s ease;
}

.imagekit-element-item:hover {
	background: rgba(30, 41, 59, 0.6);
	border-color: rgba(59, 130, 246, 0.5);
}

.imagekit-element-item.selected {
	border-color: rgba(59, 130, 246, 0.8);
	background: rgba(59, 130, 246, 0.1);
}

.imagekit-element-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.imagekit-element-title {
	font-weight: 600;
	color: #e2e8f0;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.imagekit-element-controls {
	display: flex;
	gap: 4px;
}

.imagekit-mini-btn {
	background: rgba(59, 130, 246, 0.2);
	border: 1px solid rgba(59, 130, 246, 0.4);
	color: #93c5fd;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.imagekit-mini-btn:hover {
	background: rgba(59, 130, 246, 0.3);
	border-color: rgba(59, 130, 246, 0.6);
}

.imagekit-mini-btn.danger {
	background: rgba(239, 68, 68, 0.2);
	border-color: rgba(239, 68, 68, 0.4);
	color: #fca5a5;
}

.imagekit-mini-btn.danger:hover {
	background: rgba(239, 68, 68, 0.3);
	border-color: rgba(239, 68, 68, 0.6);
}

.imagekit-element-props {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	font-size: 12px;
}

.imagekit-element-prop {
	display: flex;
	align-items: center;
	gap: 4px;
}

.imagekit-element-prop label {
	color: #94a3b8;
	font-size: 11px;
	min-width: 20px;
}

.imagekit-element-prop input {
	background: rgba(15, 23, 42, 0.6);
	border: 1px solid rgba(71, 85, 105, 0.4);
	color: #e2e8f0;
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 11px;
	width: 60px;
}

.imagekit-element-prop input:focus {
	outline: none;
	border-color: rgba(59, 130, 246, 0.6);
}

.imagekit-element-prop input[type="color"] {
	width: 24px;
	height: 20px;
	padding: 0;
	cursor: pointer;
}

/* ================== Compact Forms ================== */
.imagekit-compact-form {
	background: rgba(15, 23, 42, 0.4);
	border: 1px solid rgba(71, 85, 105, 0.3);
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 12px;
}

.imagekit-compact-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
	gap: 8px;
	margin-bottom: 8px;
}

.imagekit-compact-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.imagekit-compact-label {
	color: #94a3b8;
	font-size: 11px;
	font-weight: 500;
}

.imagekit-compact-input {
	background: rgba(15, 23, 42, 0.6);
	border: 1px solid rgba(71, 85, 105, 0.4);
	color: #e2e8f0;
	border-radius: 6px;
	padding: 6px 8px;
	font-size: 12px;
}

.imagekit-compact-input:focus {
	outline: none;
	border-color: rgba(59, 130, 246, 0.6);
}

/* ================== Responsive Design ================== */
@media (max-width: 1024px) {
	.imagekit-container {
		grid-template-columns: 320px 1fr;
		gap: 16px;
		padding: 16px;
	}
  
	.imagekit-panel {
		padding: 16px;
	}
}

@media (max-width: 768px) {
	.imagekit-container {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
		gap: 12px;
		padding: 12px;
	}
  
	.imagekit-panel {
		height: auto;
		max-height: 40vh;
		overflow-y: auto;
	}
  
	.imagekit-canvas-container {
		min-height: 50vh;
	}
  
	.imagekit-row,
	.imagekit-row-3,
	.imagekit-row-4 {
		grid-template-columns: 1fr;
		gap: 8px;
	}
  
	.imagekit-tools {
		grid-template-columns: repeat(auto-fit, 44px);
		gap: 6px;
	}
  
	.imagekit-tool {
		width: 44px;
		height: 44px;
		font-size: 18px;
	}
}

/* ================== Animations ================== */
@keyframes imagekit-fade-in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes imagekit-scale-in {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.imagekit-panel,
.imagekit-canvas-container {
	animation: imagekit-fade-in 0.4s ease-out;
}

.imagekit-card {
	animation: imagekit-scale-in 0.3s ease-out;
}

/* ================== Loading States ================== */
.imagekit-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 16px;
	color: #cbd5e1;
}

.imagekit-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid rgba(59, 130, 246, 0.3);
	border-top: 3px solid #3b82f6;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ================== Content Creation Modal Styles ================== */
.content-modal-container {
	background: #0f172a;
	color: white;
}

/* Rich Editor Styles for main project */
.rich-editor-container {
	border: 1px solid #374151;
	border-radius: 0.5rem;
	background: #1f2937;
	overflow: hidden;
}

/* ================== Content Creator Modal Specific Styles ================== */
.content-editor-wrapper {
	background: #1f2937;
	border: 1px solid #374151;
	border-radius: 12px;
	overflow: hidden;
	height: calc(100vh - 40px);
	display: flex;
	flex-direction: column;
}

.editor-toolbar {
	background: #374151;
	padding: 8px 12px;
	border-bottom: 1px solid #4b5563;
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	flex-shrink: 0;
}

.media-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
	margin-top: 12px;
}

/* Breadcrumb Navigation */
.images-breadcrumb {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 12px;
	background: rgba(30, 41, 59, 0.6);
	border: 1px solid rgba(71, 85, 105, 0.4);
	border-radius: 6px;
	font-size: 12px;
	color: #cbd5e1;
	margin-bottom: 8px;
}

.images-breadcrumb .crumb {
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 2px 6px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.images-breadcrumb .crumb:hover {
	background: rgba(59, 130, 246, 0.2);
	color: #60a5fa;
}

.images-breadcrumb .sep {
	color: #64748b;
	margin: 0 2px;
}

.media-item {
	background: rgba(30, 41, 59, 0.6);
	border: 1px solid rgba(71, 85, 105, 0.4);
	border-radius: 8px;
	padding: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

/* Folder styling */
.media-item.folder {
	background: rgba(59, 130, 246, 0.1);
	border-color: rgba(59, 130, 246, 0.3);
}

.media-item.folder:hover {
	background: rgba(59, 130, 246, 0.2);
	border-color: rgba(59, 130, 246, 0.5);
}

.folder-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 80px;
	text-align: center;
}

.folder-card i {
	margin-bottom: 8px;
}

.media-item:hover {
	border-color: rgba(59, 130, 246, 0.6);
	background: rgba(59, 130, 246, 0.1);
}

.media-item img {
	width: 100%;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.media-info {
	margin-top: 6px;
}

.media-name {
	font-size: 11px;
	color: #cbd5e1;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Image Selection Modal */
.image-selection-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: var(--z-image-picker-modal);
	display: flex;
	align-items: center;
	justify-content: center;
}

.image-selection-container {
	background: #1f2937;
	border: 1px solid #374151;
	border-radius: 12px;
	width: 90%;
	max-width: 800px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.image-selection-header {
	background: #374151;
	padding: 16px 20px;
	border-bottom: 1px solid #4b5563;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.image-selection-header h3 {
	margin: 0;
	color: #e2e8f0;
	font-size: 18px;
	font-weight: 600;
}

.image-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
	padding: 20px;
	overflow-y: auto;
	max-height: 60vh;
}

.image-selection-item {
	background: rgba(30, 41, 59, 0.6);
	border: 1px solid rgba(71, 85, 105, 0.4);
	border-radius: 8px;
	padding: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.image-selection-item:hover {
	border-color: rgba(59, 130, 246, 0.6);
	background: rgba(59, 130, 246, 0.1);
	transform: translateY(-2px);
}

.image-selection-item img {
	width: 100%;
	height: 100px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.image-name {
	font-size: 12px;
	color: #cbd5e1;
	display: block;
	margin-top: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rich-editor-container.full {
	display: flex;
	flex-direction: column;
}

.rich-toolbar {
	background: #374151;
	padding: 8px 12px;
	border-bottom: 1px solid #4b5563;
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}

.toolbar-group {
	display: flex;
	align-items: center;
	gap: 2px;
}

.toolbar-btn {
	padding: 6px 8px;
	background: transparent;
	border: none;
	border-radius: 4px;
	color: #d1d5db;
	cursor: pointer;
	transition: all 0.15s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.toolbar-btn:hover {
	background: #4b5563;
	color: #ffffff;
}

.toolbar-btn.active {
	background: #3b82f6;
	color: #ffffff;
}

.toolbar-separator {
	width: 1px;
	height: 20px;
	background: #4b5563;
	margin: 0 6px;
}

.toolbar-select {
	padding: 4px 8px;
	background: #1f2937;
	border: 1px solid #4b5563;
	border-radius: 4px;
	color: #d1d5db;
	font-size: 14px;
	min-width: 120px;
}

.toolbar-select:focus {
	outline: none;
	border-color: #3b82f6;
}

.rich-editor {
	min-height: 200px;
	max-height: 400px;
	overflow-y: auto;
	padding: 1rem;
	background: #1f2937;
	color: white;
	font-size: 14px;
	line-height: 1.6;
}

.rich-editor.full {
	min-height: 0;
	max-height: none;
	height: auto;
	flex: 1 1 auto;
	overflow-y: auto;
}

.rich-editor.small {
	min-height: 80px;
	max-height: 150px;
}

.rich-editor:focus {
	outline: none;
}

.rich-editor[data-placeholder]:empty:before {
	content: attr(data-placeholder);
	color: #6b7280;
	font-style: italic;
}

/* Rich Editor Content Styles */
.rich-editor h2 {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 1rem 0 0.5rem 0;
	color: #ffffff;
}

.rich-editor h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0.875rem 0 0.5rem 0;
	color: #ffffff;
}

.rich-editor h4 {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0.75rem 0 0.5rem 0;
	color: #ffffff;
}

.rich-editor p {
	margin: 0.5rem 0;
}

.rich-editor ul, .rich-editor ol {
	margin: 0.5rem 0;
	padding-left: 1.5rem;
}

.rich-editor li {
	margin: 0.25rem 0;
}

.rich-editor a {
	color: #3b82f6;
	text-decoration: underline;
}

.rich-editor img {
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
	margin: 0.5rem 0;
	display: block;
}

.rich-editor .video-container {
	margin: 1rem 0;
	text-align: center;
}

.rich-editor .video-container iframe {
	border-radius: 0.5rem;
	border: none;
}

