* { margin: 0; padding: 0; box-sizing: border-box; }
body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	padding: 20px;
}
.container {
	max-width: 900px;
	margin: 0 auto;
	background: white;
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
h1 {
	color: #333;
	margin-bottom: 10px;
	font-size: 28px;
}
.subtitle {
	color: #666;
	margin-bottom: 30px;
	font-size: 14px;
}
.upload-area {
	border: 3px dashed #667eea;
	border-radius: 15px;
	padding: 40px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s;
	background: #f8f9ff;
}
.upload-area:hover {
	background: #eef1ff;
	border-color: #764ba2;
}
.upload-area.dragover {
	background: #e0e7ff;
	border-color: #4c51bf;
}
input[type="file"] { display: none; }
.upload-icon {
	font-size: 48px;
	margin-bottom: 15px;
}
.controls {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin: 25px 0;
}
.control-group {
	display: flex;
	flex-direction: column;
}
label {
	font-weight: 600;
	margin-bottom: 5px;
	color: #555;
	font-size: 13px;
}
input[type="number"], input[type="text"], select {
	padding: 10px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	transition: border 0.3s;
}
input:focus, select:focus {
	outline: none;
	border-color: #667eea;
}
.checkbox-group {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 25px;
}
input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}
button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 15px 30px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	margin-top: 20px;
	width: 100%;
}
button:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}
button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.info {
	background: #f0f4ff;
	padding: 15px;
	border-radius: 10px;
	margin: 20px 0;
	font-size: 14px;
	color: #555;
}
.preview {
	margin-top: 30px;
	text-align: center;
}
.preview img {
	max-width: 100%;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.2);
	background: repeating-conic-gradient(#e0e0e0 0% 25%, #f5f5f5 0% 50%) 50% / 20px 20px;
}
.download-btn {
	background: #10b981;
	margin-top: 15px;
}
.download-btn:hover {
	background: #059669;
}
.copy-btn {
	background: #f59e0b;
	margin-top: 15px;
}
.copy-btn:hover {
	background: #d97706;
}
.script-output {
	margin-top: 20px;
	text-align: left;
}
.script-output h4 {
	color: #333;
	margin-bottom: 10px;
	font-size: 16px;
}
.script-output textarea {
	width: 100%;
	font-family: 'Courier New', monospace;
	font-size: 13px;
	padding: 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	background: #f9fafb;
	resize: vertical;
	min-height: 150px;
}
.script-output textarea:focus {
	outline: none;
	border-color: #667eea;
}
.error {
	background: #fee;
	color: #c33;
	padding: 15px;
	border-radius: 10px;
	margin: 15px 0;
}
.loading {
	text-align: center;
	padding: 20px;
	color: #667eea;
	font-weight: 600;
}
a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

a:visited {
  color: #e6c200;
}

a:active {
  color: #ffed4e;
}

a:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}