/* ============ Password Protect PDF ============ */

.uth-ppp-dropzone {
	border: 2px dashed var(--uth-border, #d1d5db);
	border-radius: 12px;
	padding: 44px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.uth-ppp-dropzone:hover,
.uth-ppp-dropzone.is-dragover {
	border-color: var(--uth-primary, #2563eb);
	background: rgba(37, 99, 235, 0.04);
}

.uth-ppp-dropzone.is-disabled {
	pointer-events: none;
	opacity: 0.55;
}

.uth-ppp-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.uth-ppp-dropzone__icon {
	display: flex;
	justify-content: center;
	margin-bottom: 14px;
}

.uth-ppp-dropzone__svg {
	width: 46px;
	height: 46px;
	color: var(--uth-primary, #2563eb);
}

.uth-ppp-dropzone__title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 600;
	color: var(--uth-heading, #111827);
}

.uth-ppp-dropzone__title strong {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.uth-ppp-dropzone__hint {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--uth-muted, #6b7280);
}

.uth-ppp-dropzone__privacy {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-size: 13px;
	color: var(--uth-muted, #6b7280);
}

.uth-ppp-privacy__lock {
	width: 14px;
	height: 14px;
	flex: none;
}

/* ---------- File bar ---------- */

.uth-ppp-file {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 13px 16px;
	margin-top: 18px;
	border: 1px solid var(--uth-border, #e5e7eb);
	border-radius: 10px;
	background: var(--uth-surface, #f9fafb);
}

.uth-ppp-file__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.uth-ppp-file__name {
	font-weight: 600;
	font-size: 14px;
	color: var(--uth-heading, #111827);
	word-break: break-all;
}

.uth-ppp-file__meta {
	font-size: 13px;
	color: var(--uth-muted, #6b7280);
}

.uth-ppp-file__remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--uth-border, #d1d5db);
	background: var(--uth-surface, #fff);
	color: var(--uth-muted, #4b5563);
	border-radius: 8px;
	padding: 7px 12px;
	font-size: 13px;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.uth-ppp-file__remove:hover {
	border-color: var(--uth-danger, #dc2626);
	color: var(--uth-danger, #dc2626);
}

/* ---------- Editor / form ---------- */

.uth-ppp-editor {
	margin-top: 18px;
}

.uth-ppp-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid var(--uth-border, #e5e7eb);
	border-radius: 10px;
	background: var(--uth-surface, #f9fafb);
}

.uth-ppp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.uth-ppp-field__label {
	font-weight: 600;
	font-size: 14px;
	color: var(--uth-heading, #111827);
}

.uth-ppp-field__input {
	max-width: 360px;
	min-height: 42px;
	border: 1px solid var(--uth-border, #d1d5db);
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 14px;
	background: var(--uth-surface, #fff);
	color: var(--uth-heading, #111827);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.uth-ppp-field__input:focus {
	outline: none;
	border-color: var(--uth-primary, #2563eb);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.uth-ppp-strength {
	display: flex;
	flex-direction: column;
	gap: 5px;
	max-width: 360px;
}

.uth-ppp-strength__bar {
	height: 6px;
	border-radius: 999px;
	background: var(--uth-border, #e5e7eb);
	overflow: hidden;
}

.uth-ppp-strength__fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: var(--uth-primary, #2563eb);
	transition: width 0.2s ease, background-color 0.2s ease;
}

.uth-ppp-strength__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--uth-muted, #6b7280);
}

.uth-ppp-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	width: fit-content;
}

.uth-ppp-check__input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.uth-ppp-check__box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex: none;
	border: 1px solid var(--uth-border, #d1d5db);
	border-radius: 6px;
	background: var(--uth-surface, #fff);
	color: transparent;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.uth-ppp-check__input:checked + .uth-ppp-check__box {
	background: var(--uth-primary, #2563eb);
	border-color: var(--uth-primary, #2563eb);
	color: #fff;
}

.uth-ppp-check__input:focus-visible + .uth-ppp-check__box {
	outline: 2px solid var(--uth-primary, #2563eb);
	outline-offset: 2px;
}

.uth-ppp-check__label {
	font-size: 14px;
	color: var(--uth-heading, #111827);
}

.uth-ppp-hint {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 12px 14px;
	border-radius: 8px;
	background: rgba(37, 99, 235, 0.06);
	font-size: 13px;
	color: var(--uth-muted, #374151);
	line-height: 1.5;
}

.uth-ppp-hint__icon {
	flex: none;
	margin-top: 2px;
	color: var(--uth-primary, #2563eb);
}

/* ---------- Actions / notes / progress / result ---------- */

.uth-ppp-actions {
	margin-top: 18px;
	text-align: center;
}

.uth-ppp-actions .uth-button {
	min-width: 200px;
}

.uth-ppp-note {
	margin: 12px 0 0;
	text-align: center;
	font-size: 14px;
	color: var(--uth-danger, #dc2626);
}

.uth-ppp-progress {
	margin-top: 20px;
}

.uth-ppp-progress__bar {
	height: 8px;
	border-radius: 999px;
	background: var(--uth-border, #e5e7eb);
	overflow: hidden;
}

.uth-ppp-progress__fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: var(--uth-primary, #2563eb);
	transition: width 0.2s ease;
}

.uth-ppp-progress__text {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--uth-muted, #6b7280);
	text-align: center;
}

.uth-ppp-result {
	margin-top: 18px;
}

.uth-ppp-result__heading {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	color: var(--uth-heading, #111827);
}

.uth-ppp-result__summary {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--uth-muted, #6b7280);
}