.container {
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
}

.header {
	background: linear-gradient(135deg, #4a6ee0 0%, #2d55cc 100%);
	color: white;
	padding: 25px;
	text-align: center;
}

.header h1 {
	font-size: 28px;
	margin-bottom: 8px;
}

.content {
	padding: 30px;
}

.upload-area {
	border: 2px dashed #4a6ee0;
	border-radius: 8px;
	padding: 40px 20px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s;
	margin-bottom: 25px;
	background: #f8faff;
}

.upload-area:hover {
	background: #eef2ff;
}

.upload-icon {
	font-size: 48px;
	color: #4a6ee0;
	margin-bottom: 15px;
}

.upload-text {
	font-size: 18px;
	color: #4a6ee0;
	margin-bottom: 10px;
}

.file-input {
	display: none;
}

.size-options {
	background: #f8faff;
	padding: 25px;
	border-radius: 8px;
	margin-bottom: 25px;
}

.option-title {
	font-size: 20px;
	margin-bottom: 20px;
	color: #333;
	font-weight: 600;
	text-align: center;
}

.size-presets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin-bottom: 25px;
}

.size-preset {
	padding: 15px;
	background: white;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s;
	font-size: 14px;
}

.size-preset:hover {
	border-color: #4a6ee0;
	background: #f0f4ff;
}

.size-preset.active {
	border-color: #4a6ee0;
	background: #4a6ee0;
	color: white;
}

.size-details {
	font-size: 12px;
	color: #666;
	margin-top: 5px;
}

.custom-size-section {
	background: white;
	padding: 20px;
	border-radius: 8px;
	border: 2px solid #e0e0e0;
}

.custom-title {
	font-size: 16px;
	margin-bottom: 15px;
	color: #333;
	font-weight: 600;
}

.size-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-bottom: 15px;
}

.input-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.input-label {
	font-size: 14px;
	font-weight: 500;
	color: #555;
}

.size-input {
	padding: 12px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	font-size: 16px;
	transition: all 0.3s;
}

.size-input:focus {
	outline: none;
	border-color: #4a6ee0;
	box-shadow: 0 0 0 3px rgba(74, 110, 224, 0.1);
}

.unit-select {
	padding: 12px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	font-size: 16px;
	background: white;
}

.orientation-options {
	display: flex;
	gap: 15px;
	margin-top: 15px;
}

.orientation-btn {
	flex: 1;
	padding: 12px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	background: white;
	cursor: pointer;
	text-align: center;
	transition: all 0.3s;
}

.orientation-btn.active {
	border-color: #4a6ee0;
	background: #4a6ee0;
	color: white;
}

.action-buttons {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
}

.btn {
	flex: 1;
	padding: 16px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
}

.btn-primary {
	background: linear-gradient(135deg, #4a6ee0 0%, #2d55cc 100%);
	color: white;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(74, 110, 224, 0.3);
}

.btn-secondary {
	background: #f0f0f0;
	color: #333;
}

.btn-secondary:hover {
	background: #e0e0e0;
}

.btn:disabled {
	background: #cccccc;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.loading {
	display: none;
	text-align: center;
	padding: 30px;
}

.spinner {
	border: 4px solid rgba(0, 0, 0, 0.1);
	border-left-color: #4a6ee0;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.result-area {
	margin-top: 30px;
	display: none;
}

.result-title {
	font-size: 20px;
	margin-bottom: 20px;
	color: #333;
	font-weight: 600;
	text-align: center;
}

.download-btn {
	display: block;
	width: 100%;
	padding: 18px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: white;
	text-align: center;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 18px;
	border: none;
	cursor: pointer;
	transition: all 0.3s;
}

.download-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.error-message {
	color: #e53e3e;
	text-align: center;
	padding: 15px;
	background: #fed7d7;
	border-radius: 6px;
	margin-top: 15px;
	display: none;
}

.info-message {
	color: #2d55cc;
	text-align: center;
	padding: 15px;
	background: #e1e8ff;
	border-radius: 6px;
	margin-top: 15px;
	margin-bottom: 25px;
}

.footer {
	text-align: center;
	padding: 20px;
	color: #777;
	font-size: 14px;
	border-top: 1px solid #eee;
}

@media (max-width: 600px) {
	.content {
		padding: 20px;
	}

	.action-buttons {
		flex-direction: column;
	}

	.size-inputs {
		grid-template-columns: 1fr;
	}

	.orientation-options {
		flex-direction: column;
	}
}