/* Nova Image & Speed Pro — Frontend Compressor Styles */

.nova-isp-compressor {
	max-width: 640px;
	margin: 30px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.nova-isp-dropzone {
	border: 2px dashed #cfcfcf;
	border-radius: 16px;
	padding: 46px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.25s ease, background 0.25s ease;
	background: #fafafa;
}

.nova-isp-dropzone.nova-isp-dragover {
	border-color: #ff6600;
	background: #fff6ef;
}

.nova-isp-upload-icon {
	color: #ff6600;
	margin-bottom: 10px;
	animation: novaIspFloat 2.4s ease-in-out infinite;
}

@keyframes novaIspFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

.nova-isp-dropzone-text {
	margin: 0;
	color: #666;
	font-size: 15px;
}

.nova-isp-controls {
	margin-top: 20px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 18px 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nova-isp-controls label {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	display: block;
	margin-bottom: 6px;
}

#nova-isp-quality-value {
	color: #005eb3;
	font-weight: 700;
}

.nova-isp-controls input[type="range"] {
	width: 100%;
	accent-color: #ff6600;
}

.nova-isp-dim-row {
	display: flex;
	gap: 16px;
	margin-top: 14px;
}

.nova-isp-dim-row > div {
	flex: 1;
}

.nova-isp-dim-row input[type="number"] {
	width: 100%;
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid #ddd;
}

.nova-isp-progress-wrap {
	margin-top: 22px;
}

.nova-isp-progress-bar {
	width: 100%;
	height: 14px;
	background: #f1f1f1;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nova-isp-progress-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(135deg, #ff6600, #ff9900, #005eb3);
	border-radius: 8px;
	transition: width 0.25s ease;
}

.nova-isp-status-text {
	margin-top: 8px;
	font-size: 13px;
	color: #666;
	text-align: center;
}

.nova-isp-result {
	margin-top: 26px;
	background: #fff;
	border-radius: 14px;
	border: 1px solid #eee;
	padding: 20px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	opacity: 0;
	transform: translateY(14px);
	animation: novaIspFadeUp 0.5s ease forwards;
}

@keyframes novaIspFadeUp {
	to { opacity: 1; transform: translateY(0); }
}

.nova-isp-preview {
	text-align: center;
	margin-bottom: 16px;
}

.nova-isp-preview img {
	max-width: 100%;
	max-height: 280px;
	border-radius: 10px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.nova-isp-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	text-align: center;
	margin-bottom: 18px;
}

.nova-isp-stat {
	background: #f8f8f8;
	border-radius: 10px;
	padding: 10px 6px;
}

.nova-isp-stat span {
	display: block;
	font-size: 11px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-bottom: 4px;
}

.nova-isp-stat strong {
	font-size: 15px;
	color: #1a1a1a;
}

.nova-isp-stat-saved strong {
	background: linear-gradient(135deg, #ff6600, #005eb3);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.nova-isp-download-btn {
	display: block;
	text-align: center;
	background: linear-gradient(135deg, #ff6600, #005eb3);
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	padding: 12px 20px;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(255, 102, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nova-isp-download-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(255, 102, 0, 0.32);
	color: #fff !important;
}

.nova-isp-error {
	margin-top: 16px;
	color: #b3261e;
	background: #fdecea;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	text-align: center;
}
