:root {
	--primary: #6366f1;
	--primary-dark: #4f46e5;
	--primary-light: #818cf8;
	--secondary: #8b5cf6;
	--accent: #06b6d4;
	--success: #10b981;
	--warning: #f59e0b;
	--danger: #ef4444;
	--surface: #0f172a;
	--surface-light: #1e293b;
	--surface-lighter: #334155;
	--text: #f8fafc;
	--text-muted: #94a3b8;
	--text-light: #cbd5e1;
	--border: #475569;
	--border-light: #64748b;
	--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
	--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
}

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

.footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	text-align: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(5px);
	z-index: 100;
	transform: translateY(100%);
	opacity: 0;
	transition: all 0.3s ease;
	animation: fadeIn 1s ease-out;
}

.footer.visible {
	transform: translateY(0);
	opacity: 1;
}

.footer p {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
}

.footer a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.footer-hover-area {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 30px;
	z-index: 99;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: var(--text);
	min-height: 100vh;
	line-height: 1.6;
	opacity: 1;
	transition: opacity 0.6s ease;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem;
}

.title {
	font-size: 3.5rem;
	font-weight: 900;
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 1rem;
	letter-spacing: -0.03em;
}

.subtitle {
	color: var(--text-muted);
	font-size: 1.25rem;
	margin-bottom: 2rem;
	font-weight: 400;
}

.session-info {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.session-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 1rem;
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	color: var(--text-light);
	box-shadow: var(--shadow);
}

.session-badge .icon {
	width: 1.25rem;
	height: 1.25rem;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
}

.nav-links {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

.nav-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text-muted);
	text-decoration: none;
	padding: 0.75rem 1.5rem;
	border-radius: 0.75rem;
	transition: all 0.3s ease;
	font-weight: 500;
	border: 1px solid transparent;
}

.nav-link:hover {
	color: var(--primary);
	background: rgba(99, 102, 241, 0.1);
	border-color: var(--primary);
	transform: translateY(-2px);
}

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

.converter-sidebar {
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 1rem;
	padding: 1.5rem;
	height: fit-content;
	position: sticky;
	top: 2rem;
}

.sidebar-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--text);
	text-align: center;
}

.converter-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.converter-option {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	border-radius: 0.75rem;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 1px solid transparent;
	position: relative;
	overflow: hidden;
}

.converter-option::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
	opacity: 0;
	transition: opacity 0.3s ease;
}

.converter-option:hover::before {
	opacity: 1;
}

.converter-option:hover {
	border-color: var(--primary);
	transform: translateX(4px);
}

.converter-option.active {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
	border-color: var(--primary);
	box-shadow: var(--shadow);
}

.converter-option.active::before {
	opacity: 1;
}

.option-icon {
	font-size: 1.5rem;
	z-index: 1;
	position: relative;
}

.option-content {
	z-index: 1;
	position: relative;
}

.option-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 0.25rem;
}

.option-description {
	font-size: 0.75rem;
	color: var(--text-muted);
	line-height: 1.4;
}

.converter-panel {
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 1rem;
	padding: 2rem;
	box-shadow: var(--shadow);
	min-height: 500px;
	transform-origin: top left;
}

.form-row {
	position: relative;
}

.form-row .button,
.form-row .button-download {
	min-height: 44px;
}

.panel-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border);
}

.panel-icon {
	font-size: 2rem;
}

.panel-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text);
}

.panel-subtitle {
	color: var(--text-muted);
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

.drop-zone {
	border: 2px dashed var(--border);
	border-radius: 1rem;
	padding: 3rem 2rem;
	text-align: center;
	background: var(--surface);
	transition: all 0.3s ease;
	cursor: pointer;
	margin-bottom: 1.5rem;
	position: relative;
	overflow: hidden;
}

.drop-zone::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
	border-radius: 1rem;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.drop-zone:hover::before {
	opacity: 1;
}

.drop-zone.dragover {
	border-color: var(--primary);
	background: rgba(99, 102, 241, 0.1);
	transform: scale(1.02);
}

.drop-zone-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
	opacity: 0.7;
}

.drop-zone-text {
	color: var(--text);
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.drop-zone-subtext {
	color: var(--text-muted);
	font-size: 0.875rem;
}

.file-list {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 0.75rem;
	padding: 1rem;
	margin-bottom: 1.5rem;
	max-height: 200px;
	overflow-y: auto;
}

.file-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	border: 1px solid var(--border);
	border-radius: 0.75rem;
	margin-bottom: 0.75rem;
	background: var(--surface-light);
	transition: all 0.2s ease;
}

.file-item:hover {
	border-color: var(--primary-light);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transform: translateY(-1px);
}

.file-item:last-child {
	margin-bottom: 0;
}

.file-name {
	color: var(--text);
	font-size: 0.875rem;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 750px;
}

.file-format {
	margin-left: auto;
	margin-right: 1rem;
	flex-shrink: 0;
}

.file-format-select {
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	padding: 0.35rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	outline: none;
	transition: all 0.2s ease;
}

.file-format-select:focus,
.file-format-select:hover {
	border-color: var(--primary);
	box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.remove-file {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text-muted);
	padding: 0.5rem;
	border-radius: 0.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	width: 2.5rem;
	height: 2.5rem;
}

.remove-file:hover {
	background: var(--danger);
	border-color: var(--danger);
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

.remove-file:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.remove-file svg {
	width: 16px;
	height: 16px;
	stroke-width: 2;
	transition: all 0.2s ease;
}

.file-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.conversion-progress {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 0.75rem;
	padding: 1rem;
	margin-bottom: 1.5rem;
	max-height: 300px;
	overflow-y: auto;
}

.progress-item {
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	padding: 1rem;
	margin-bottom: 0.75rem;
	position: relative;
}

.progress-item:last-child {
	margin-bottom: 0;
}

.progress-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
}

.progress-filename {
	color: var(--text);
	font-size: 0.875rem;
	font-weight: 600;
	max-width: 60%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.progress-status {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.status-text {
	color: var(--text-muted);
	font-size: 0.75rem;
	font-weight: 500;
}

.status-cancel {
	background: var(--danger);
	border: none;
	color: white;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	transition: all 0.2s ease;
}

.status-cancel:hover {
	background: #dc2626;
	transform: scale(1.1);
}

.progress-bar-container {
	width: 100%;
	height: 4px;
	background: var(--border);
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--primary), var(--secondary));
	border-radius: 2px;
	transition: width 0.3s ease;
	width: 0%;
}

.progress-details {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.75rem;
	color: var(--text-muted);
}

.progress-speed {
	font-weight: 500;
}

.progress-time {
	font-weight: 500;
}

.progress-percentage {
	font-weight: 600;
	color: var(--primary);
}

.status-queued .status-text {
	color: var(--warning);
}

.status-converting .status-text {
	color: var(--primary);
}

.status-completed .status-text {
	color: var(--success);
}

.status-error .status-text {
	color: var(--danger);
}

.status-cancelled .status-text {
	color: var(--text-muted);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 1rem;
	align-items: end;
	margin-bottom: 1.5rem;
}

.form-row>.button,
.form-row>.button-download {
	grid-column: 2;
	grid-row: 1;
	justify-self: stretch;
}

.select {
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 0.5rem;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font-size: 0.875rem;
	font-weight: 500;
}

.select:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.button {
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	border: none;
	color: white;
	padding: 0.875rem 2rem;
	border-radius: 0.75rem;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.875rem;
	transition: all 0.3s ease;
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}

.button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.button:hover::before {
	left: 100%;
}

.button:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.button-download {
	background: linear-gradient(135deg, var(--success), #059669);
	border: 1px solid var(--success);
	color: white;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.form-row>.button-download {
	position: relative;
	z-index: 1;
}

.form-row .format-warning {
	grid-column: 1 / 3;
	grid-row: 2;
}

.button-download.hidden {
	visibility: hidden;
	display: inline-flex;
	position: absolute;
}

.button.hidden {
	visibility: hidden;
	display: inline-flex;
	position: absolute;
}

.button-download::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.button-download:hover::before {
	left: 100%;
}

.button-download:hover {
	background: linear-gradient(135deg, #059669, #047857);
	border-color: #059669;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.button-download:active {
	transform: translateY(0);
}

@keyframes buttonPulse {
	0% {
		transform: scale(1) translateY(-2px);
		box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
	}

	50% {
		transform: scale(1.05) translateY(-3px);
		box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
	}

	100% {
		transform: scale(1) translateY(-2px);
		box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
	}
}

.progress-bar.converting-animation {
	width: 100% !important;
	background: linear-gradient(90deg,
			var(--primary) 0%,
			var(--primary-light) 50%,
			var(--primary) 100%);
	background-size: 200% 100%;
	animation: convertingPulse 2s ease-in-out infinite;
}

.progress-bar.completed {
	background: var(--success);
	transition: width 0.3s ease;
}

.progress-bar.error {
	background: var(--danger);
	transition: width 0.3s ease;
}

.progress-bar.queued {
	background: var(--text-muted);
	transition: width 0.3s ease;
}

.progress-bar.uploading {
	background: linear-gradient(90deg, #3b82f6, #1d4ed8);
	transition: width 0.3s ease;
}

@keyframes convertingPulse {
	0% {
		background-position: 200% 0;
		opacity: 0.7;
	}

	50% {
		opacity: 1;
	}

	100% {
		background-position: -200% 0;
		opacity: 0.7;
	}
}

.helper {
	color: var(--text-muted);
	font-size: 0.75rem;
	margin-top: 0.5rem;
	text-align: center;
}

.format-warning {
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: white;
	padding: 0.75rem;
	border-radius: 0.5rem;
	margin: 0.5rem 0;
	font-size: 0.875rem;
	border: 1px solid #f59e0b;
	box-shadow: var(--shadow);
	opacity: 0;
	transform: translateY(-10px);
	pointer-events: none;
	will-change: opacity, transform;
}

.format-warning.hidden {
	display: none !important;
}

.notification-popup {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1000;
	max-width: 400px;
	min-width: 300px;
	opacity: 0;
	transform: translateX(100%);
	transition: all 0.3s ease-in-out;
}

.notification-popup.show {
	opacity: 1;
	transform: translateX(0);
}

.notification-popup.hidden {
	display: none;
}

.top-info-banner {
	position: fixed;
	top: -100px;
	left: 0;
	right: 0;
	z-index: 1001;
	background: rgba(30, 41, 59, 0.75);
	color: var(--text-light);
	border-bottom: 1px solid var(--border);
	box-shadow: var(--shadow);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	transition: top 0.35s ease-in-out, opacity 0.35s ease-in-out;
}

.top-info-banner::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
	opacity: 0.6;
}

.top-info-banner .top-info-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0.5rem 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	justify-content: center;
}

.top-info-banner .top-info-icon {
	font-size: 0.9rem;
	color: var(--text-muted);
	flex-shrink: 0;
}

.top-info-banner .top-info-text {
	font-size: 0.85rem;
	letter-spacing: 0.01em;
	font-weight: 500;
	color: var(--text-light);
	text-align: center;
}

.top-info-banner.show {
	top: 0;
	opacity: 1;
}

.notification-content {
	background: var(--surface-light);
	border-radius: 0.75rem;
	padding: 1rem;
	box-shadow: var(--shadow-xl);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 1rem;
	position: relative;
}

.notification-icon {
	font-size: 1.25rem;
	font-weight: bold;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.notification-success .notification-icon {
	background: var(--success);
	color: white;
}

.notification-warning .notification-icon {
	background: var(--warning);
	color: white;
}

.notification-error .notification-icon {
	background: var(--danger);
	color: white;
}

.notification-info .notification-icon {
	background: #3b82f6;
	color: white;
}

.notification-message {
	flex: 1;
	color: var(--text);
	font-size: 0.875rem;
	line-height: 1.4;
}

.notification-close {
	background: none;
	border: none;
	color: var(--text-muted);
	font-size: 1.25rem;
	cursor: pointer;
	padding: 0.25rem;
	border-radius: 0.25rem;
	transition: color 0.2s;
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 1.5rem;
	height: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.notification-close:hover {
	color: var(--text);
	background: var(--surface-lighter);
}

.format-support {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}

.format-panels {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.25rem;
}

.format-panel {
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 1rem;
	padding: 1.5rem;
	height: 400px;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow);
	transition: all 0.3s ease;
}

.format-panel:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.format-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
}

.format-icon {
	font-size: 1.5rem;
}

.format-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text);
}

.format-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex: 1;
	overflow-y: auto;
}

.format-row {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.format-button {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	color: var(--text-light);
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	text-align: center;
	white-space: nowrap;
	width: fit-content;
	transition: all 0.2s ease;
	cursor: default;
}

.format-button:hover {
	background: var(--primary);
	border-color: var(--primary);
	color: white;
	transform: translateY(-1px);
}

.format-button:only-child {
	width: 100%;
}

.converter-panel {
	display: none;
}

.converter-panel.active {
	display: block;
}

.hidden {
	display: none;
}

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

	.converter-sidebar {
		position: static;
	}

	.converter-options {
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 0.5rem;
	}

	.converter-option {
		min-width: 200px;
		flex-shrink: 0;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 1rem;
		max-width: 100%;
	}

	.title {
		font-size: 2.5rem;
		margin-bottom: 0.5rem;
	}

	.subtitle {
		font-size: 1rem;
		margin-bottom: 1.5rem;
	}

	.session-info {
		flex-direction: column;
		gap: 0.75rem;
		margin-bottom: 1.5rem;
	}

	.session-badge {
		padding: 0.5rem 1rem;
		font-size: 0.8rem;
	}

	.nav-links {
		flex-direction: column;
		width: 100%;
	}

	.nav-link {
		justify-content: center;
		padding: 0.75rem;
	}

	.converter-sidebar {
		padding: 1rem;
		margin-bottom: 1rem;
	}

	.sidebar-title {
		font-size: 1rem;
		margin-bottom: 0.75rem;
	}

	.converter-options {
		flex-direction: column;
		gap: 0.5rem;
		overflow-x: visible;
	}

	.converter-option {
		min-width: auto;
		padding: 0.75rem;
		border-radius: 0.5rem;
	}

	.option-icon {
		font-size: 1.25rem;
	}

	.option-title {
		font-size: 0.9rem;
	}

	.option-description {
		font-size: 0.7rem;
		line-height: 1.3;
	}

	.converter-panel {
		padding: 1.5rem;
		min-height: auto;
	}

	.panel-header {
		margin-bottom: 1.5rem;
		padding-bottom: 0.75rem;
	}

	.panel-icon {
		font-size: 1.5rem;
	}

	.panel-title {
		font-size: 1.25rem;
	}

	.panel-subtitle {
		font-size: 0.8rem;
	}

	.drop-zone {
		padding: 2rem 1rem;
		border-radius: 0.75rem;
		margin-bottom: 1rem;
	}

	.drop-zone-icon {
		font-size: 2.5rem;
		margin-bottom: 0.75rem;
	}

	.drop-zone-text {
		font-size: 1rem;
		margin-bottom: 0.25rem;
	}

	.drop-zone-subtext {
		font-size: 0.8rem;
	}

	.form-row {
		grid-template-columns: 1fr;
		gap: 1rem;
		margin-bottom: 1rem;
	}

	.select {
		padding: 0.875rem 1rem;
		font-size: 1rem;
		border-radius: 0.75rem;
	}

	.button {
		padding: 1rem 1.5rem;
		font-size: 1rem;
		border-radius: 0.75rem;
		min-height: 48px;
		width: 100%;
	}

	.button-download {
		padding: 1rem 1.5rem;
		font-size: 1rem;
		border-radius: 0.75rem;
		min-height: 48px;
		width: 100%;
	}

	.file-list {
		max-height: 300px;
		padding: 0.75rem;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-behavior: smooth;
	}

	.file-item {
		padding: 0.75rem;
		margin-bottom: 0.5rem;
		border-radius: 0.5rem;
		width: 100%;
		box-sizing: border-box;
		flex-shrink: 0;
	}

	.file-name {
		font-size: 0.8rem;
		max-width: 250px;
	}

	.remove-file {
		width: 2rem;
		height: 2rem;
		padding: 0.375rem;
	}

	.remove-file svg {
		width: 14px;
		height: 14px;
	}

	.progress-panel {
		padding: 0.75rem;
		max-height: 400px;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-behavior: smooth;
	}

	.progress-item {
		padding: 0.75rem;
		margin-bottom: 0.5rem;
		width: 100%;
		box-sizing: border-box;
		flex-shrink: 0;
	}

	.progress-header {
		margin-bottom: 0.5rem;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.file-info {
		width: 100%;
	}

	.file-icon {
		font-size: 1.25rem;
	}

	.file-name {
		font-size: 0.8rem;
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
	}

	.file-size {
		font-size: 0.75rem;
	}

	.progress-status {
		width: 100%;
		justify-content: flex-start;
	}

	.status-text {
		font-size: 0.75rem;
	}

	.progress-bar-container {
		height: 6px;
		margin-bottom: 0.5rem;
	}

	.notification-popup {
		bottom: 10px;
		right: 10px;
		left: 10px;
		top: auto;
		max-width: none;
		transform: translateY(100%);
	}

	.notification-popup.show {
		transform: translateY(0);
	}

	.format-panels {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.format-panel {
		width: 100%;
		height: auto;
		min-height: 300px;
	}

	.format-buttons {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
		gap: 0.5rem;
	}

	.format-button {
		text-align: center;
		padding: 0.5rem;
		font-size: 0.8rem;
		width: 100%;
	}

	.format-row {
		display: contents;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0.75rem;
	}

	.title {
		font-size: 2rem;
	}

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

	.converter-option {
		min-width: auto;
	}

	.format-panels {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.format-panel {
		height: 320px;
		padding: 0.75rem;
	}

	.format-button {
		font-size: 0.75rem;
		padding: 0.4rem;
	}

	.file-item {
		padding: 0.5rem;
	}

	.file-info {
		gap: 0.5rem;
	}

	.file-icon {
		font-size: 1rem;
	}

	.file-name {
		font-size: 0.75rem;
		line-height: 1.3;
	}

	.file-size {
		font-size: 0.7rem;
	}

	.progress-item {
		padding: 0.5rem;
	}

	.progress-header {
		gap: 0.25rem;
	}

	.status-text {
		font-size: 0.7rem;
	}

	.format-panel {
		padding: 0.75rem;
	}

	.format-panel {
		font-size: 0.9rem;
	}

	.format-button {
		font-size: 0.7rem;
		padding: 0.35rem 0.5rem;
	}

	.button,
	.button-download {
		padding: 0.75rem 1rem;
		font-size: 0.9rem;
	}

	.drop-zone {
		padding: 1.5rem 0.75rem;
	}

	.drop-zone-icon {
		font-size: 2rem;
	}

	.drop-zone-text {
		font-size: 0.9rem;
	}

	.drop-zone-subtext {
		font-size: 0.75rem;
	}
}

.progress-panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 0.75rem;
	padding: 1rem;
	margin-bottom: 1.5rem;
}

.progress-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.progress-item {
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	padding: 1rem;
	position: relative;
}

.progress-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.file-info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
	min-width: 0;
}

.file-icon {
	font-size: 1.5rem;
	flex-shrink: 0;
}

.file-details {
	flex: 1;
	min-width: 0;
}

.file-name {
	font-weight: 600;
	color: var(--text);
	margin-bottom: 0.25rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.file-size {
	font-size: 0.875rem;
	color: var(--text-light);
}

.progress-actions {
	display: flex;
	gap: 0.5rem;
}

.cancel-btn {
	background: var(--danger);
	color: white;
	border: none;
	border-radius: 0.375rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.cancel-btn:hover {
	background: #dc2626;
}

.progress-content {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.progress-bar-container {
	background: var(--surface);
	border-radius: 0.25rem;
	height: 0.5rem;
	overflow: hidden;
	position: relative;
}

.progress-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--primary), var(--secondary));
	border-radius: 0.25rem;
	transition: width 0.5s ease-in-out, background 0.3s ease;
	width: 0%;
	position: relative;
}

.progress-bar::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: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
	0% {
		transform: translateX(-100%);
	}

	100% {
		transform: translateX(100%);
	}
}

.progress-bar.completed {
	background: linear-gradient(90deg, var(--success), #059669);
}

.progress-bar.error {
	background: linear-gradient(90deg, var(--danger), #dc2626);
}

.progress-bar.cancelled {
	background: linear-gradient(90deg, var(--warning), #d97706);
}

.progress-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.875rem;
}

.status-text {
	color: var(--text-light);
	font-weight: 500;
}

.progress-text {
	color: var(--text-muted);
	font-weight: 600;
}

.speed-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0.5rem;
	font-size: 0.875rem;
}

.speed-text {
	color: var(--text-light);
}

.time-text {
	color: var(--text-muted);
	font-weight: 500;
}

@media (max-width: 768px) {
	.container {
		padding: 1rem;
	}

	.title {
		font-size: 2.5rem;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.drop-zone {
		padding: 2rem 1rem;
	}

	.converter-panel {
		padding: 1.5rem;
	}

	.session-info {
		flex-direction: column;
	}

	.format-panels {
		grid-template-columns: repeat(3, 1fr);
		gap: 1rem;
	}

	.format-panel {
		height: 350px;
		padding: 1rem;
	}

	.format-button {
		font-size: 0.8rem;
		padding: 0.4rem 0.6rem;
	}
}

@media (max-width: 480px) {
	.title {
		font-size: 2rem;
	}

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

	.converter-option {
		min-width: auto;
	}

	.format-panels {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.format-panel {
		height: 320px;
		padding: 0.75rem;
	}

	.format-button {
		font-size: 0.75rem;
		padding: 0.35rem 0.5rem;
	}
}

.progress-details {
	margin-top: 8px;
	padding: 8px 12px;
	background: var(--surface-lighter);
	border-radius: 6px;
	border: 1px solid var(--border);
	display: none;
}

.progress-detail {
	display: inline-block;
	margin-right: 16px;
	margin-bottom: 4px;
	font-size: 12px;
	color: var(--text-light);
}

.progress-detail strong {
	color: var(--text);
	font-weight: 600;
}

.progress-detail:last-child {
	margin-right: 0;
}

.progress-bar.updating {
	transition: width 0.3s ease-in-out;
}

.progress-bar.converting-animation {
	background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
	background-size: 200% 100%;
	animation: progressPulse 2s infinite;
}

@keyframes progressPulse {
	0% {
		background-position: 200% 0;
	}

	100% {
		background-position: -200% 0;
	}
}


/* Global Fade Animations */
@keyframes uiFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes uiFadeOut {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}



.fade-in {
	animation: uiFadeIn 1s ease forwards;
}

.fade-out {
	animation: uiFadeOut 0.6s ease forwards;
}

@media (prefers-reduced-motion: reduce) {

	.fade-in,
	.fade-out {
		animation: none !important;
	}
}

/* Page-level fade utility for transitions on links/navigation */
.page-fade-enter {
	opacity: 0;
}

.page-fade-enter-active {
	opacity: 1;
	transition: opacity 1000ms ease;
}

.page-fade-exit {
	opacity: 1;
}

.page-fade-exit-active {
	opacity: 0;
	transition: opacity 600ms ease;
}