:root {
	--primary-color: #FF6B35;
	--secondary-color: #F7931E;
	--accent-color: #C1121F;
	--text-dark: #2C3E50;
	--text-light: #7F8C8D;
	--bg-light: #FFF8F0;
	--bg-white: #FFFFFF;
	--border-color: #E8E8E8;
	--success-color: #27AE60;
	--error-color: #E74C3C;
}

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

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 100%);
	min-height: 100vh;
	padding: 20px;
	color: var(--text-dark);
}

.container {
	max-width: 800px;
	margin: 0 auto;
}

header {
	text-align: center;
	margin-bottom: 40px;
	padding: 30px 20px;
	background: var(--bg-white);
	border-radius: 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

header h1 {
	font-size: 2.5em;
	color: var(--primary-color);
	margin-bottom: 10px;
}

header p {
	color: var(--text-light);
	font-size: 1.1em;
}

.upload-section,
.questions-section,
.result-section {
	background: var(--bg-white);
	padding: 40px;
	border-radius: 20px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.upload-card {
	text-align: center;
}

.upload-icon {
	font-size: 4em;
	margin-bottom: 20px;
}

.upload-card h2 {
	color: var(--text-dark);
	margin-bottom: 10px;
	font-size: 2em;
}

.upload-card>p {
	color: var(--text-light);
	margin-bottom: 30px;
}

.upload-area {
	border: 3px dashed var(--border-color);
	border-radius: 15px;
	padding: 40px;
	margin: 30px 0;
	cursor: pointer;
	transition: all 0.3s ease;
	background: var(--bg-light);
}

.upload-area:hover {
	border-color: var(--primary-color);
	background: #FFF;
}

.upload-area.dragover {
	border-color: var(--primary-color);
	background: #FFF;
	transform: scale(1.02);
}

.upload-content {
	position: relative;
}

#previewImage {
	max-width: 100%;
	max-height: 400px;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#uploadPlaceholder svg {
	color: var(--primary-color);
	margin-bottom: 20px;
}

#uploadPlaceholder p {
	font-size: 1.2em;
	color: var(--text-dark);
	margin-bottom: 10px;
}

#uploadPlaceholder span {
	color: var(--text-light);
	font-size: 0.9em;
}

.btn-primary {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	border: none;
	padding: 15px 40px;
	font-size: 1.1em;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 600;
	box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.btn-secondary {
	background: var(--bg-light);
	color: var(--text-dark);
	border: 2px solid var(--border-color);
	padding: 12px 30px;
	font-size: 1em;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 600;
}

.btn-secondary:hover {
	border-color: var(--primary-color);
	background: white;
}

.status-message {
	margin-top: 20px;
	padding: 15px;
	border-radius: 10px;
	display: none;
}

.status-message.success {
	background: #d4edda;
	color: var(--success-color);
	display: block;
}

.status-message.error {
	background: #f8d7da;
	color: var(--error-color);
	display: block;
}

/* Questions Page */
.question-card {
	margin-bottom: 30px;
	padding: 25px;
	background: var(--bg-light);
	border-radius: 15px;
	border-left: 4px solid var(--primary-color);
}

.question-card label {
	display: block;
	font-size: 1.2em;
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 15px;
}

.question-card input[type="text"],
.question-card select {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid var(--border-color);
	border-radius: 10px;
	font-size: 1em;
	transition: all 0.3s ease;
}

.question-card input[type="text"]:focus,
.question-card select:focus {
	outline: none;
	border-color: var(--primary-color);
}

.radio-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.radio-option {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	background: white;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid var(--border-color);
}

.radio-option:hover {
	border-color: var(--primary-color);
	background: #FFF;
}

.radio-option input[type="radio"] {
	margin-right: 12px;
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.radio-option label {
	cursor: pointer;
	margin: 0;
	font-weight: normal;
	font-size: 1em;
}

.button-group {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-top: 30px;
}

/* Result Page */
.result-container {
	text-align: center;
}

.result-image {
	max-width: 100%;
	border-radius: 15px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
	margin: 30px 0;
}

.download-section {
	margin-top: 30px;
}

.loading-spinner {
	border: 4px solid var(--border-color);
	border-top: 4px solid var(--primary-color);
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
	margin: 30px auto;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.processing-message {
	text-align: center;
	padding: 40px;
}

.processing-message h3 {
	color: var(--primary-color);
	font-size: 1.5em;
	margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
	header h1 {
		font-size: 2em;
	}

	.upload-section,
	.questions-section,
	.result-section {
		padding: 25px;
	}

	.button-group {
		flex-direction: column;
	}

	.btn-primary,
	.btn-secondary {
		width: 100%;
	}
}