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

body.wde-editor-body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	font-size: 14px;
	color: #2c3e50;
	background: #f5f5f5;
	overflow: hidden;
}

.wde-mobile-blocker {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #2c3e50;
	color: white;
	z-index: 9999;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 20px;
}

.wde-mobile-blocker-content h2 {
	font-size: 28px;
	margin-bottom: 16px;
}

.wde-mobile-blocker-content p {
	font-size: 16px;
	max-width: 500px;
	line-height: 1.6;
}

.wde-editor-container {
	display: flex;
	flex-direction: column;
	height: 100vh;
	width: 100vw;
}

.wde-top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 60px;
	background: #ffffff;
	border-bottom: 1px solid #e1e4e8;
	padding: 0 20px;
	flex-shrink: 0;
}

.wde-top-bar-left,
.wde-top-bar-center,
.wde-top-bar-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wde-top-bar-left {
	flex: 0 0 250px;
}

.wde-top-bar-center {
	flex: 1;
	justify-content: center;
}

.wde-top-bar-right {
	flex: 0 0 250px;
	justify-content: flex-end;
}

.wde-template-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


/* Layout Updates */
.wde-editor-main {
	display: flex;
	flex: 1;
	overflow: hidden;
    height: calc(100vh - 60px); /* Subtract top bar */
}

.wde-sidebar {
	width: 320px;
	background: #ffffff;
	border-right: 1px solid #e1e4e8;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
    z-index: 10;
}

.wde-right-sidebar {
    border-right: none;
    border-left: 1px solid #e1e4e8;
}

.wde-sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e1e4e8;
    background: #fafbfc;
}

.wde-sidebar-header .wde-panel-title {
    margin: 0;
}

/* Canvas Area */
.wde-canvas-area {
	flex: 1;
	background: #f5f5f5;
	position: relative;
	overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Property Panel Updates */
.wde-properties-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wde-property-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.wde-flex-grow {
    flex: 1;
}

/* Number Control [-] [Input] [+] */
.wde-number-control {
    display: flex;
    align-items: center;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
}

.wde-num-btn {
    width: 30px;
    height: 36px;
    border: none;
    background: #f8f9fa;
    color: #495057;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.wde-num-btn:hover {
    background: #e9ecef;
}

.wde-input-center {
    text-align: center;
    border: none;
    border-left: 1px solid #e1e4e8;
    border-right: 1px solid #e1e4e8;
    border-radius: 0;
    width: 50px;
    height: 36px;
    -moz-appearance: textfield;
}

.wde-input-center::-webkit-outer-spin-button,
.wde-input-center::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Color Picker (Square) */
.wde-color-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e1e4e8;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill-opacity="0.4"><rect width="5" height="5" fill="%23ccc"/><rect x="5" y="5" width="5" height="5" fill="%23ccc"/></svg>');
}

.wde-color-square {
    width: 200%;
    height: 200%;
    transform: translate(-25%, -25%);
    cursor: pointer;
    border: none;
    padding: 0;
}

/* Input Group with Suffix */
.wde-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.wde-input-suffix {
    position: absolute;
    right: 12px;
    color: #6c757d;
    font-size: 12px;
    pointer-events: none;
}

/* Button Groups */
.wde-btn-group-full {
    display: flex;
    width: 100%;
}

.wde-btn-group-full .wde-btn {
    flex: 1;
    justify-content: center;
}

/* Recent Colors */
.wde-recent-colors-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e4e8;
}

.wde-recent-colors-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.wde-color-swatch {
    width: 100%; /* Aspect ratio handled by padding or height */
    height: 30px;
    border-radius: 4px;
    border: 1px solid #e1e4e8;
    cursor: pointer;
    transition: transform 0.2s;
    background-size: cover;
}

.wde-color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Transliteration Dropdown */
.wde-transliteration-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    min-width: 150px;
}

.wde-transliteration-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.wde-transliteration-item:hover,
.wde-transliteration-item.active {
    background-color: #f0f7ff;
    color: #0066cc;
}

/* Layer Item Updates */
.wde-layer-item {
    padding: 8px 12px;
    margin-bottom: 8px;
}

/* Hide scrollbar for number input */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

/* Responsive */
@media (max-width: 1280px) {
    .wde-right-sidebar {
        width: 250px;
    }
    .wde-sidebar {
        width: 250px;
    }
}


.wde-sidebar-tabs {
	display: flex;
	border-bottom: 1px solid #e1e4e8;
	background: #fafbfc;
}

.wde-tab-btn {
	flex: 1;
	padding: 12px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	transition: all 0.2s;
	border-bottom: 2px solid transparent;
}

.wde-tab-btn:hover {
	background: #f3f4f6;
}

.wde-tab-btn.active {
	background: #ffffff;
	border-bottom-color: #3498db;
}

.wde-tab-icon {
	font-size: 20px;
	font-weight: bold;
}

.wde-tab-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wde-sidebar-content {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.wde-tab-panel {
	display: none;
}

.wde-tab-panel.active {
	display: block;
}

.wde-panel-title {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #6c757d;
	margin-bottom: 12px;
	margin-top: 24px;
}

.wde-panel-title:first-child {
	margin-top: 0;
}

.wde-btn {
	padding: 10px 16px;
	border: 1px solid #e1e4e8;
	border-radius: 6px;
	background: #ffffff;
	color: #2c3e50;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
}

.wde-btn:hover {
	background: #f3f4f6;
	border-color: #d1d5db;
}

.wde-btn:active {
	transform: scale(0.98);
}

.wde-btn-primary {
	background: #3498db;
	color: white;
	border-color: #3498db;
}

.wde-btn-primary:hover {
	background: #2980b9;
	border-color: #2980b9;
}

.wde-btn-secondary {
	background: #95a5a6;
	color: white;
	border-color: #95a5a6;
}

.wde-btn-secondary:hover {
	background: #7f8c8d;
	border-color: #7f8c8d;
}

.wde-btn-block {
	display: block;
	width: 100%;
}

.wde-btn-icon {
	padding: 8px 12px;
	min-width: 40px;
}

.wde-btn-group {
	display: flex;
	gap: 6px;
}

.wde-property-group {
	margin-bottom: 16px;
}

.wde-property-group label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 6px;
	color: #495057;
}

.wde-input,
.wde-select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #e1e4e8;
	border-radius: 6px;
	font-size: 14px;
	background: #ffffff;
	transition: border-color 0.2s;
}

.wde-input:focus,
.wde-select:focus {
	outline: none;
	border-color: #3498db;
}

.wde-color-input {
	width: 100%;
	height: 40px;
	border: 1px solid #e1e4e8;
	border-radius: 6px;
	cursor: pointer;
}

.wde-range {
	width: calc(100% - 50px);
	margin-right: 8px;
}

#wde-opacity-value {
	display: inline-block;
	min-width: 40px;
	text-align: right;
	font-size: 13px;
	color: #6c757d;
}

.wde-text-properties {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #e1e4e8;
}

.wde-elements-library {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.wde-element-item {
	aspect-ratio: 1;
	border: 2px solid #e1e4e8;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.2s;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
}

.wde-element-item:hover {
	border-color: #3498db;
	transform: scale(1.05);
}

.wde-element-item img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.wde-loading {
	text-align: center;
	padding: 20px;
	color: #6c757d;
	font-style: italic;
}

.wde-shapes-library {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wde-shape-btn {
	width: 100%;
	padding: 12px;
	border: 1px solid #e1e4e8;
	border-radius: 6px;
	background: #ffffff;
	cursor: pointer;
	transition: all 0.2s;
	text-align: left;
}

.wde-shape-btn:hover {
	background: #f3f4f6;
	border-color: #3498db;
}

.wde-qr-generator {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wde-layers-panel {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wde-layer-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px;
	background: #ffffff;
	border: 1px solid #e1e4e8;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
}

.wde-layer-item:hover {
	background: #f8f9fa;
	border-color: #3498db;
}

.wde-layer-item.active {
	background: #e3f2fd;
	border-color: #3498db;
}

.wde-layer-item.dragging {
	opacity: 0.5;
}

.wde-layer-name {
	flex: 1;
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wde-layer-controls {
	display: flex;
	gap: 6px;
}

.wde-layer-btn {
	padding: 4px 8px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 16px;
	opacity: 0.6;
	transition: opacity 0.2s;
}

.wde-layer-btn:hover {
	opacity: 1;
}

.wde-layer-btn.inactive {
	opacity: 0.3;
}

.wde-layer-btn.active {
	opacity: 1;
}

.wde-layer-delete:hover {
	color: #e74c3c;
}

.wde-no-layers {
	text-align: center;
	padding: 40px 20px;
	color: #6c757d;
	font-style: italic;
}

.wde-canvas-area {
	flex: 1;
	background: #f5f5f5;
	position: relative;
	overflow: hidden;
}

.wde-canvas-wrapper {
	width: 100%;
	height: 100%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

#wde-canvas {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	background: white;
}

@media (max-width: 1600px) {
	.wde-sidebar {
		width: 280px;
	}
	
	.wde-top-bar-left,
	.wde-top-bar-right {
		flex: 0 0 200px;
	}
}

@media (max-width: 1280px) {
	.wde-mobile-blocker {
		display: flex !important;
	}
	
	.wde-editor-container {
		display: none !important;
	}
}

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

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

::-webkit-scrollbar-thumb {
	background: #cbd5e0;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #a0aec0;
}

.wde-notification {
	position: fixed;
	top: 80px;
	right: 20px;
	background: #fff;
	padding: 16px 24px;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 10000;
	opacity: 0;
	transform: translateX(400px);
	transition: all 0.3s ease-in-out;
	font-size: 14px;
	min-width: 250px;
	max-width: 400px;
	word-wrap: break-word;
}

.wde-notification-show {
	opacity: 1;
	transform: translateX(0);
}

.wde-notification-success {
	border-left: 4px solid #10b981;
	color: #065f46;
}

.wde-notification-error {
	border-left: 4px solid #ef4444;
	color: #991b1b;
}

.wde-notification-info {
	border-left: 4px solid #3b82f6;
	color: #1e40af;
}

.wde-customize-section {
	margin: 20px 0;
	padding: 20px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.wde-customize-button {
	display: inline-block;
	padding: 12px 24px;
	background: #3b82f6;
	color: white !important;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.3s;
}

.wde-customize-button:hover {
	background: #2563eb;
}

.wde-purchase-options,
.wde-printed-options {
	padding: 15px;
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.wde-purchase-options h4,
.wde-printed-options h4 {
	margin-bottom: 12px;
	font-size: 16px;
	color: #2c3e50;
}

.wde-purchase-options label,
.wde-printed-options label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
}

.wde-purchase-options input[type="radio"] {
	margin-right: 8px;
}

.wde-printed-options input[type="number"],
.wde-printed-options select {
	width: 100%;
	padding: 8px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	margin-top: 4px;
}

.wde-design-preview {
	padding: 15px;
	background: #e8f5e9;
	border: 1px solid #81c784;
	border-radius: 4px;
}

.wde-design-status {
	margin: 0;
	color: #2e7d32;
	font-weight: 500;
}

.wde-btn-success {
	background: #10b981 !important;
	color: white !important;
}

.wde-btn-success:hover {
	background: #059669 !important;
}
