/* Compress PDF Tool - front-end styles */

.pdfct-wrapper {
	max-width: 520px;
	margin: 2em auto;
	padding: 2em;
	background: #ffffff;
	border: 1px solid #e2e4e8;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pdfct-title {
	margin: 0 0 1em;
	font-size: 1.4em;
	text-align: center;
	color: #1d2327;
}

.pdfct-form {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

.pdfct-dropzone {
	border: 2px dashed #c3c8d1;
	border-radius: 8px;
	padding: 2em 1em;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
	background: #fafbfc;
}

.pdfct-dropzone:hover,
.pdfct-dropzone.pdfct-dragover {
	border-color: #2271b1;
	background: #f0f6fc;
}

.pdfct-dropzone-text {
	margin: 0;
	color: #50575e;
	font-size: 0.95em;
}

.pdfct-file-name {
	margin: 0.5em 0 0;
	font-weight: 600;
	color: #1d2327;
	word-break: break-all;
}

.pdfct-options {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
}

.pdfct-options label {
	font-size: 0.9em;
	font-weight: 600;
	color: #1d2327;
}

.pdfct-options select {
	padding: 0.5em;
	border-radius: 6px;
	border: 1px solid #c3c8d1;
	font-size: 0.95em;
}

.pdfct-button {
	display: inline-block;
	padding: 0.75em 1.2em;
	background: #2271b1;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.pdfct-button:hover:not(:disabled) {
	background: #135e96;
}

.pdfct-button:disabled {
	background: #a7aaad;
	cursor: not-allowed;
}

.pdfct-progress {
	margin-top: 1.5em;
}

.pdfct-progress-bar {
	width: 100%;
	height: 10px;
	background: #eaecef;
	border-radius: 999px;
	overflow: hidden;
}

.pdfct-progress-bar-fill {
	height: 100%;
	width: 0%;
	background: #2271b1;
	transition: width 0.2s ease;
}

.pdfct-progress-text {
	margin: 0.5em 0 0;
	font-size: 0.9em;
	color: #50575e;
	text-align: center;
}

.pdfct-result {
	margin-top: 1.5em;
	text-align: center;
	padding: 1.2em;
	background: #f0f9f1;
	border: 1px solid #b7e3bc;
	border-radius: 8px;
}

.pdfct-result-stats {
	margin: 0 0 1em;
	color: #1d2327;
	font-size: 0.95em;
}

.pdfct-download {
	background: #1a7f37;
}

.pdfct-download:hover {
	background: #146c2e;
}

.pdfct-error {
	margin-top: 1.5em;
	padding: 1em;
	background: #fcf0f1;
	border: 1px solid #f5c2c7;
	border-radius: 8px;
	color: #8a1f2b;
	font-size: 0.9em;
	text-align: center;
}

@media (max-width: 480px) {
	.pdfct-wrapper {
		margin: 1em;
		padding: 1.2em;
	}
}
