/* Modern form styling for simple tool forms (Blogger XML Splitter, Reverse Image Search) */
.txf { padding: 22px 20px !important; font-family: 'Poppins', sans-serif; }
.txf .txf-title { display: block; text-align: center; font-size: 17px; font-weight: 600; color: #111827; margin: 0 0 14px; }
.txf .txf-label { display: block; font-size: 14.5px; font-weight: 600; color: #1f2937; margin: 0 0 8px; }
.txf .txf-label small { display: block; font-weight: 400; font-size: 12.5px; color: #6b7280; margin-top: 2px; }
.txf .txf-field { margin-bottom: 18px; }
.txf input[type="text"],
.txf input[type="url"],
.txf select {
	display: block;
	width: 100% !important;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 2px solid #e5e7eb !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #111827 !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	box-shadow: none !important;
	transition: border-color .15s, box-shadow .15s;
}
.txf select { appearance: auto; cursor: pointer; }
.txf input[type="text"]:focus,
.txf input[type="url"]:focus,
.txf select:focus { outline: none; border-color: #4f46e5 !important; box-shadow: 0 0 0 3px rgba(79, 70, 229, .14) !important; }
.txf input::placeholder { color: #9ca3af; }

/* File drop area */
.txf .txf-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0 0 18px;
	padding: 22px 16px;
	border: 2px dashed #c7d2fe;
	border-radius: 12px;
	background: #f8faff;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.txf .txf-drop:hover, .txf .txf-drop.is-drag { border-color: #4f46e5; background: #eef2ff; }
.txf .txf-drop .txf-drop-ic { font-size: 28px; color: #4f46e5; line-height: 1; }
.txf .txf-drop .txf-drop-text { font-size: 14.5px; font-weight: 600; color: #1f2937; }
.txf .txf-drop .txf-drop-hint { font-size: 12.5px; color: #6b7280; font-weight: 400; }
.txf .txf-drop input[type="file"] {
	max-width: 100%;
	margin: 4px auto 0;
	font-size: 13px;
	color: #4b5563;
	border: 0 !important;
	background: transparent !important;
}
.txf .txf-drop input[type="file"]::file-selector-button {
	margin-right: 10px;
	padding: 8px 16px;
	border: 0;
	border-radius: 8px;
	background: #4f46e5;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.txf .txf-captcha { display: flex; justify-content: center; margin: 4px 0 16px; min-height: 65px; }

/* Main action button */
.txf .btnx.btn-custom {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 52px;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
	color: #fff !important;
	font-size: 16.5px !important;
	font-weight: 600 !important;
	box-shadow: none !important;
	transition: transform .1s, opacity .15s, filter .15s;
}
.txf .btnx.btn-custom:hover { filter: brightness(1.06); box-shadow: none !important; }
.txf .btnx.btn-custom:active { transform: translateY(1px); }
.txf .btnx.btn-custom[disabled] { opacity: .7; }

/* URL row with Copy button (reverse image search) */
.txf .url-input-wrap { display: flex; gap: 8px; align-items: stretch; }
.txf .url-input-wrap input { flex: 1; }
.txf #copy-url-btn { flex-shrink: 0; height: 48px; padding: 0 14px; border-radius: 10px !important; }

/* Upload zone — same look as the AI image generator pages */
.txf .upload-section { margin: 14px 0 18px; }
.txf .upload-zone { position: relative; width: 100%; min-height: 170px; padding: 28px 20px 22px; border: 2px dashed #ff5ca8; border-radius: 12px; background: #fff5fa; text-align: center; cursor: pointer; box-sizing: border-box; transition: border-color .15s, background .15s; }
.txf .upload-zone:hover, .txf .upload-zone.dragover { border-color: #f04f9a; background: #fff0f7; }
.txf .upload-zone.has-files { padding: 20px 16px 18px; cursor: default; }
.txf .upload-placeholder { display: flex; flex-direction: column; align-items: center; }
.txf .upload-zone.has-files .upload-placeholder { display: none; }
.txf .upload-icon { font-size: 44px; color: #ff5ca8; margin-bottom: 16px; line-height: 1; }
.txf .upload-trigger-btn { border: none; background: #ff5ca8; color: #fff; font-weight: 700; font-size: 15px; padding: 11px 24px; border-radius: 8px; cursor: pointer; }
.txf .upload-trigger-btn:hover { background: #f04f9a; }
.txf .upload-hint { margin: 14px 0 0; color: #666; font-size: 14px; }
.txf .upload-zone input[type="file"] { display: none !important; }
.txf .preview-grid { display: none; flex-wrap: wrap; gap: 16px; justify-content: center; width: 100%; }
.txf .upload-zone.has-files .preview-grid { display: flex; }
.txf .preview-item { position: relative; width: 100px; height: 100px; }
.txf .preview-thumb { width: 100%; height: 100%; border-radius: 10px; overflow: hidden; border: 2px solid #ffb8d9; background: #fff; }
.txf .preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.txf .preview-file { position: relative; display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 12px 16px; border: 2px solid #ffb8d9; border-radius: 10px; background: #fff; font-size: 14px; color: #1f2937; }
.txf .preview-file i { font-size: 26px; color: #ff5ca8; }
.txf .preview-file .pf-name { font-weight: 600; word-break: break-all; text-align: left; }
.txf .preview-file .pf-size { display: block; font-weight: 400; color: #6b7280; font-size: 12.5px; }
.txf .preview-remove { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border: 2px solid #fff; border-radius: 50%; background: #ff5ca8; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; padding: 0; z-index: 2; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* Footer paste / clear button on #url — align inside the new inputs */
.txf .input-wrapper { display: block !important; width: 100% !important; position: relative !important; }
.txf .input-wrapper input[type="text"] { padding-right: 56px !important; }
.txf .paste-btn,
.txf .close-btn {
	top: 50% !important;
	right: 8px !important;
	transform: translateY(-50%) !important;
	height: 34px !important;
	min-width: 38px;
	padding: 0 10px !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 8px !important;
	background: #f9fafb !important;
	font-size: 15px !important;
	line-height: 1 !important;
	color: #4b5563;
}
.txf .paste-btn:hover,
.txf .close-btn:hover { background: #eef2ff !important; border-color: #c7d2fe !important; }
.txf .url-input-wrap .input-wrapper { flex: 1 1 auto !important; width: auto !important; min-width: 0; }
