
/* Modern Product Designer - Main CSS */
.mpd-designer-container {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.mpd-designer-interface {
	display: flex;
	flex-direction: column;
	height: 100vh;
	max-height: 800px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
}

.mpd-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 15px;
	background: #f8f9fa;
	border-bottom: 1px solid #ddd;
	flex-wrap: wrap;
	gap: 10px;
}

.mpd-toolbar-group {
	display: flex;
	align-items: center;
	gap: 5px;
}

.mpd-btn {
	background: #fff;
	border: 1px solid #ddd;
	color: #333;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
	transition: all .2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
}

.mpd-btn:hover {
	background: #667eea;
	color: white;
	border-color: #667eea;
}

.mpd-btn.active {
	background: #667eea;
	color: white;
	border-color: #667eea;
}

.mpd-main-content {
	display: flex;
	flex: 1;
	min-height: 0;
}

.mpd-sidebar {
	width: 250px;
	background: #f8f9fa;
	border-right: 1px solid #ddd;
	display: flex;
	flex-direction: column;
}

.mpd-canvas-area {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: #fff;
}

.mpd-canvas-container {
	position: relative;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.mpd-tool-tabs {
	display: flex;
	border-bottom: 1px solid #ddd;
}

.mpd-tab {
	flex: 1;
	padding: 12px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 11px;
	font-weight: 500;
	color: #666;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	transition: all .2s;
}

.mpd-tab:hover {
	background: rgba(102, 126, 234, .1);
	color: #667eea;
}

.mpd-tab.active {
	background: #667eea;
	color: white;
}

.mpd-tool-panels {
	flex: 1;
	overflow-y: auto;
}

.mpd-panel {
	display: none;
	padding: 15px;
}

.mpd-panel.active {
	display: block;
}

.mpd-form-group {
	margin-bottom: 15px;
}

.mpd-form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
	font-size: 12px;
	color: #333;
}

.mpd-form-group input, .mpd-form-group select, .mpd-form-group textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 12px;
}

.mpd-btn-primary {
	background: #667eea !important;
	color: white !important;
	border-color: #667eea !important;
}

.mpd-btn-primary:hover {
	background: #5a6fd8 !important;
}

.mpd-properties-panel {
	padding: 15px;
	border-top: 1px solid #ddd;
}

.mpd-property-section {
	margin-bottom: 20px;
}

.mpd-property-section h4 {
	margin: 0 0 10px 0;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}

.mpd-form-row {
	display: flex;
	gap: 10px;
}

.mpd-form-row .mpd-form-group {
	margin-bottom: 10px;
	flex: 1;
}

.mpd-button-group {
	display: flex;
	gap: 2px;
}

.mpd-button-group .mpd-btn {
	min-width: 32px;
	font-weight: bold;
}

.mpd-zoom-controls {
	display: flex;
	align-items: center;
	gap: 5px;
}

.mpd-zoom-controls #mpd-zoom-level {
	padding: 0 10px;
	font-size: 12px;
	font-weight: 500;
}

.mpd-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .5);
	z-index: 10000;
}

.mpd-modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	border-radius: 8px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.mpd-modal-header {
	padding: 20px 20px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.mpd-modal-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.mpd-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mpd-modal-close:hover {
	color: #333;
}

.mpd-modal-body {
	padding: 20px;
}

.mpd-modal-footer {
	padding: 0 20px 20px;
	text-align: right;
}

.mpd-modal-footer .mpd-btn {
	margin-left: 10px;
}

@media (max-width:768px) {
	.mpd-main-content {
		flex-direction: column;
	}
	
	.mpd-sidebar {
		width: 100%;
		max-height: 200px;
	}
	
	.mpd-tool-tabs {
		overflow-x: auto;
	}
	
	.mpd-canvas-area {
		padding: 10px;
	}
	
	.mpd-toolbar {
		padding: 8px;
		gap: 5px;
	}
	
	.mpd-btn {
		min-width: 32px;
		min-height: 32px;
		padding: 6px 8px;
		font-size: 11px;
	}
}
