* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
	color: #2e7d32;
	min-height: 100vh;
	padding: 20px;
	line-height: 1.6;
}

.container {
	max-width: 1000px;
	margin: 0 auto;
}

/* Header Styles */
header {
	text-align: center;
	margin-bottom: 40px;
	animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.header-icon {
	display: inline-block;
	color: #2e7d32;
	margin-bottom: 15px;
	padding: 15px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 20px;
	box-shadow: 0 4px 20px rgba(46, 125, 50, 0.15);
}

h1 {
	font-size: 2.8em;
	margin: 10px 0;
	color: #1b5e20;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.subtitle {
	font-size: 1.1em;
	color: #388e3c;
	margin-bottom: 20px;
	font-weight: 400;
}

.info-badges {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 20px;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 50px;
	font-size: 0.9em;
	color: #2e7d32;
	box-shadow: 0 2px 10px rgba(46, 125, 50, 0.1);
	font-weight: 500;
}

.badge svg {
	flex-shrink: 0;
}

/* Card Styles */
.card {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 8px 32px rgba(46, 125, 50, 0.12);
	margin-bottom: 25px;
	backdrop-filter: blur(10px);
	animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

h2 {
	font-size: 1.5em;
	color: #1b5e20;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-weight: 600;
}

/* Upload Area */
.upload-area {
	position: relative;
	margin: 20px 0;
}

input[type='file'] {
	position: absolute;
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	z-index: -1;
}

input[type='file'] + label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 50px 30px;
	border: 3px dashed #81c784;
	border-radius: 12px;
	background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
	cursor: pointer;
	transition: all 0.3s ease;
	color: #2e7d32;
}

input[type='file'] + label:hover {
	border-color: #4caf50;
	background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(76, 175, 80, 0.2);
}

input[type='file'] + label svg {
	margin-bottom: 15px;
	color: #4caf50;
}

.upload-text {
	font-size: 1.1em;
	font-weight: 600;
	color: #2e7d32;
	margin-bottom: 8px;
}

.upload-subtext {
	font-size: 0.9em;
	color: #66bb6a;
}

.upload-area.dragover label {
	border-color: #2e7d32;
	background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
	transform: scale(1.02);
}

.file-count {
	text-align: center;
	margin-top: 15px;
	font-size: 1em;
	color: #2e7d32;
	font-weight: 600;
}

/* Actions Section */
.actions-section {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 25px;
	animation: fadeInUp 0.6s ease-out 0.1s both;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border: none;
	border-radius: 12px;
	font-size: 1.05em;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
	font-family: inherit;
}

.btn svg {
	flex-shrink: 0;
}

.btn-primary {
	background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
	color: white;
}

.btn-primary:hover:not(:disabled) {
	background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(46, 125, 50, 0.3);
}

.btn-primary:active:not(:disabled) {
	transform: translateY(0);
}

.btn-secondary {
	background: linear-gradient(135deg, #66bb6a 0%, #81c784 100%);
	color: white;
}

.btn-secondary:hover:not(:disabled) {
	background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(76, 175, 80, 0.3);
}

.btn-secondary:active:not(:disabled) {
	transform: translateY(0);
}

.btn:disabled {
	background: linear-gradient(135deg, #c8e6c9 0%, #e0e0e0 100%);
	color: #9e9e9e;
	cursor: not-allowed;
	box-shadow: none;
}

/* Tooltip */
.tooltip-wrapper {
	position: relative;
	display: inline-block;
}

.tooltip-wrapper button[disabled][data-tooltip]::before {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 115%;
	left: 50%;
	transform: translateX(-50%);
	background: #1b5e20;
	color: white;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 0.85em;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: 1000;
	font-weight: 500;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip-wrapper button[disabled][data-tooltip]::after {
	content: '';
	position: absolute;
	bottom: 105%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #1b5e20;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.tooltip-wrapper button[disabled][data-tooltip]:hover::before,
.tooltip-wrapper button[disabled][data-tooltip]:hover::after {
	opacity: 1;
}

/* Progress Bar */
.progress-bar {
	display: none;
	position: relative;
	width: 100%;
	height: 50px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 25px;
	box-shadow: 0 4px 15px rgba(46, 125, 50, 0.1);
}

.progress-bar.active {
	display: block;
	animation: fadeInUp 0.4s ease-out;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #43a047 0%, #66bb6a 50%, #81c784 100%);
	border-radius: 12px;
	transition: width 0.3s ease;
	position: relative;
	overflow: hidden;
}

.progress-fill::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.3),
		transparent
	);
	animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(100%);
	}
}

.progress-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #1b5e20;
	font-weight: 700;
	font-size: 0.95em;
	z-index: 1;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Thumbnails Section */
.thumbnails-section {
	animation: fadeInUp 0.6s ease-out 0.2s both;
}

.thumbnails-section h2 {
	margin-bottom: 25px;
}

.thumbnail-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 12px;
	margin-bottom: 20px;
	box-shadow: 0 4px 20px rgba(46, 125, 50, 0.1);
	transition: all 0.3s ease;
	animation: fadeInUp 0.4s ease-out;
}

.thumbnail-container:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(46, 125, 50, 0.15);
}

.thumbnail-row {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 15px;
}

.thumbnail {
	max-height: 150px;
	max-width: 300px;
	width: auto;
	height: auto;
	object-fit: contain;
	border: 2px solid #c8e6c9;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(46, 125, 50, 0.1);
	transition: all 0.3s ease;
}

.thumbnail:hover {
	transform: scale(1.05);
	border-color: #81c784;
	box-shadow: 0 4px 20px rgba(46, 125, 50, 0.2);
}

.image-name {
	margin-top: 10px;
	font-size: 0.95em;
	color: #2e7d32;
	font-weight: 600;
	text-align: center;
}

.divider {
	width: 2px;
	height: 150px;
	background: linear-gradient(to bottom, transparent, #81c784, transparent);
	margin: 0 10px;
}

/* Footer */
footer {
	text-align: center;
	margin-top: 50px;
	padding: 30px;
	animation: fadeInUp 0.6s ease-out 0.3s both;
}

.footer-content {
	color: #2e7d32;
}

.footer-content p {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 0.95em;
	color: #388e3c;
}

.footer-content svg {
	flex-shrink: 0;
}

.copyright {
	font-size: 0.85em !important;
	color: #66bb6a !important;
	margin-top: 8px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
	h1 {
		font-size: 2em;
	}

	.card {
		padding: 20px;
	}

	.btn {
		padding: 12px 24px;
		font-size: 1em;
	}

	.thumbnail {
		max-height: 120px;
		max-width: 250px;
	}
	
	.info-badges {
		font-size: 0.85em;
	}
	
	.tooltip-wrapper button[disabled][data-tooltip]::before {
		white-space: normal;
		max-width: 200px;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 1.6em;
	}

	.subtitle {
		font-size: 0.95em;
	}

	.actions-section {
		flex-direction: column;
	}

	.btn {
		width: 100%;
		justify-content: center;
	}
}