* {
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Arial, sans-serif;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	min-height: 100vh;
	margin: 0;
	padding: 20px;
	color: #333;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	background: white;
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
#color
{
	padding:1px 3px!important;
}
h1 {
	text-align: center;
	color: #2c3e50;
	margin-bottom: 10px;
	font-size: 2.5em;
}

.subtitle {
	text-align: center;
	color: #7f8c8d;
	margin-bottom: 40px;
	font-size: 1.1em;
}

.main-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}

@media (max-width: 1100px) {
	.main-content {
		grid-template-columns: 1fr;
	}
}

.preview-section {
	background: #f8f9fa;
	border-radius: 15px;
	padding: 30px;
	text-align: center;
	box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

.figure-container {
	display: inline-block;
	padding: 30px;
	background: white;
	border-radius: 10px;
	margin: 20px 0;
	border: 3px dashed #ddd;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.controls-section {
	background: #f0f7ff;
	border-radius: 15px;
	padding: 30px;
}

.control-group {
	margin-bottom: 25px;
	
	border-bottom: 1px solid #ddd;
}

.control-group:last-child {
	border-bottom: none;
}

.control-group h3 {
	color: #3498db;
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 1.2em;
}

.control-row {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 15px;
	align-items: center;
}

.control-label {
	width: 180px;
	font-weight: 600;
	color: #555;
}

select, input[type="color"] {
	padding: 8px 12px;
	border: 2px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	min-width: 100px;
	background: white;
	transition: border-color 0.3s;
}

select:focus, input[type="color"]:focus {
	outline: none;
	border-color: #3498db;
}

.color-preview {
	display: inline-block;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	margin-left: 10px;
	vertical-align: middle;
	border: 2px solid #ddd;
}

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

.button {
	flex: 1;
	padding: 14px;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.generate-btn {
	background: #2ecc71;
	color: white;
}

.generate-btn:hover {
	background: #27ae60;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.random-btn {
	background: #e74c3c;
	color: white;
}

.random-btn:hover {
	background: #c0392b;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.code-section {
	background: #2c3e50;
	border-radius: 15px;
	padding: 30px;
	margin-top: 40px;
	color: white;
}

.code-section h3 {
	color: #ecf0f1;
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 1.3em;
}

.code-container {
	background: #1a252f;
	border-radius: 10px;
	padding: 20px;
	overflow-x: auto;
	font-family: 'Courier New', monospace;
	font-size: 14px;
	line-height: 1.5;
	max-height: 400px;
	overflow-y: auto;
}

.code-line {
	margin: 5px 0;
	white-space: pre;
}

.code-comment {
	color: #7f8c8d;
}

.code-string {
	color: #e74c3c;
}

.code-function {
	color: #3498db;
}

.code-variable {
	color: #f39c12;
}

.shape-info {
	background: #e8f4f8;
	border-radius: 10px;
	padding: 20px;
	margin-top: 20px;
	text-align: left;
}

.shape-info h4 {
	color: #2980b9;
	margin-top: 0;
}

.shape-stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
}

.stat-item {
	padding: 8px;
	background: white;
	border-radius: 6px;
	font-size: 14px;
}

.stat-label {
	font-weight: 600;
	color: #555;
}

.stat-value {
	color: #333;
	margin-left: 5px;
}

.copy-btn {
	background: #3498db;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	margin-top: 15px;
	font-size: 14px;
	transition: background 0.3s;
}

.copy-btn:hover {
	background: #2980b9;
}

.notification {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #2ecc71;
	color: white;
	padding: 15px 25px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
	opacity: 0;
	transform: translateY(-20px);
	transition: all 0.3s;
	z-index: 1000;
}

.notification.show {
	opacity: 1;
	transform: translateY(0);
}
