﻿.heic-to-jpg-client {
	--hj-bg: #f7f8fb;
	--hj-card: #ffffff;
	--hj-border: #d9dee7;
	--hj-text: #17202a;
	--hj-muted: #5f6b7a;
	--hj-accent: #0d6efd;
	--hj-danger: #b42318;
	--hj-danger-bg: #fef3f2;
	--hj-progress-bg: #e8edf4;
	--hj-radius: 12px;
	max-width: 900px;
	margin: 1rem 0;
	color: var(--hj-text);
	font-family: "Segoe UI", Tahoma, sans-serif;
}

.heic-to-jpg-banner {
	border: 1px solid var(--hj-danger);
	background: var(--hj-danger-bg);
	color: var(--hj-danger);
	padding: 12px 14px;
	border-radius: 10px;
	margin-bottom: 12px;
	line-height: 1.5;
}

.heic-to-jpg-card {
	background: var(--hj-card);
	border: 1px solid var(--hj-border);
	border-radius: var(--hj-radius);
	padding: 16px;
	box-shadow: 0 4px 18px rgba(17, 24, 39, 0.06);
}

.heic-to-jpg-dropzone {
	position: relative;
	background: linear-gradient(180deg, #fbfdff 0%, var(--hj-bg) 100%);
	border: 2px dashed var(--hj-border);
	border-radius: var(--hj-radius);
	padding: 28px 18px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.heic-to-jpg-dropzone.is-dragover,
.heic-to-jpg-dropzone:hover,
.heic-to-jpg-dropzone:focus {
	border-color: var(--hj-accent);
	outline: none;
}

.heic-to-jpg-file-input {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	width: 1px;
	height: 1px;
}

.heic-to-jpg-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 6px;
}

.heic-to-jpg-subtitle {
	margin: 0 0 6px;
	color: var(--hj-muted);
}

.heic-to-jpg-help {
	margin: 0;
	color: var(--hj-muted);
	font-size: 0.92rem;
}

.heic-to-jpg-actions {
	display: flex;
	gap: 10px;
	margin: 14px 0 12px;
}

.heic-to-jpg-list {
	border: 1px solid var(--hj-border);
	border-radius: 10px;
	overflow: hidden;
}

.heic-to-jpg-list-head,
.heic-to-jpg-row {
	display: grid;
	grid-template-columns: minmax(200px, 2.5fr) 1fr 2fr 1.5fr;
	gap: 10px;
	align-items: center;
	padding: 10px 12px;
}

.heic-to-jpg-list-head {
	background: #f3f6fa;
	font-weight: 600;
	font-size: 0.9rem;
}

.heic-to-jpg-row {
	border-top: 1px solid #eef1f5;
	font-size: 0.92rem;
}

.heic-to-jpg-file {
	word-break: break-word;
}

.heic-to-jpg-size {
	color: var(--hj-muted);
}

.heic-to-jpg-status {
	color: var(--hj-text);
}

.heic-to-jpg-progress-wrap {
	display: block;
	height: 8px;
	background: var(--hj-progress-bg);
	border-radius: 999px;
	overflow: hidden;
	position: relative;
}

.heic-to-jpg-progress-bar {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #4c8dff, var(--hj-accent));
	transition: width 0.2s ease;
}

.heic-to-jpg-progress-wrap.is-indeterminate .heic-to-jpg-progress-bar {
	position: absolute;
	animation: hj-indeterminate 1.1s infinite ease-in-out;
}

@keyframes hj-indeterminate {
	0% {
		left: -40%;
	}
	100% {
		left: 100%;
	}
}

@media (max-width: 700px) {
	.heic-to-jpg-list-head {
		display: none;
	}

	.heic-to-jpg-row {
		grid-template-columns: 1fr;
		gap: 6px;
	}
}
