/**
 * Hussain Digital Tools - Frontend Tool Interfaces Stylesheet
 * Scoped strictly to .hdt-tool-container to prevent conflicts with Astra Theme and Elementor.
 */

.hdt-tool-container {
	--hdt-primary: #6D45D9;
	--hdt-primary-hover: #5B37BF;
	--hdt-accent: #8B5CF6;
	--hdt-primary-light: #F5F3FF;
	--hdt-secondary: #6B7280;
	--hdt-bg-card: #ffffff;
	--hdt-border: #EAE8F0;
	--hdt-border-focus: #6D45D9;
	--hdt-text: #171923;
	--hdt-text-muted: #6B7280;
	--hdt-radius: 16px;
	--hdt-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);

	max-width: 1000px;
	margin: 0 auto;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--hdt-text);
	box-sizing: border-box;
}

.hdt-tool-container * {
	box-sizing: border-box;
}

/* Tool Header */
.hdt-tool-header {
	text-align: center;
	margin-bottom: 28px;
}

.hdt-tool-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #F5F3FF;
	color: #6D45D9;
	font-size: 13px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 20px;
	margin-bottom: 12px;
}

.hdt-tool-header h1, .hdt-tool-header h2 {
	font-size: 32px;
	font-weight: 800;
	color: var(--hdt-text);
	margin: 0 0 10px 0;
	line-height: 1.25;
}

.hdt-tool-header p {
	font-size: 16px;
	color: var(--hdt-text-muted);
	max-width: 640px;
	margin: 0 auto;
	line-height: 1.6;
}

/* Tool Card / Body */
.hdt-tool-card {
	background: var(--hdt-bg-card);
	border: 1px solid var(--hdt-border);
	border-radius: var(--hdt-radius);
	box-shadow: var(--hdt-shadow);
	padding: 30px;
	margin-bottom: 30px;
}

/* Drop Zone Upload Area */
.hdt-dropzone {
	border: 2px dashed #cbd5e1;
	border-radius: var(--hdt-radius);
	padding: 40px 20px;
	text-align: center;
	background: #f8fafc;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
}

.hdt-dropzone:hover, .hdt-dropzone.hdt-dragover {
	border-color: var(--hdt-primary);
	background: #F5F3FF;
}

.hdt-dropzone-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	background: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--hdt-primary);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.hdt-dropzone-icon .dashicons {
	font-size: 30px;
	width: 30px;
	height: 30px;
}

.hdt-dropzone h4 {
	font-size: 18px;
	margin: 0 0 6px 0;
	font-weight: 700;
	color: var(--hdt-text);
}

.hdt-dropzone p {
	font-size: 13px;
	color: var(--hdt-text-muted);
	margin: 0 0 16px 0;
}

.hdt-file-input {
	display: none !important;
}

/* Buttons */
.hdt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
	line-height: 1.4;
}

.hdt-btn-primary {
	background: var(--hdt-primary);
	color: #ffffff !important;
}

.hdt-btn-primary:hover {
	background: var(--hdt-primary-hover);
	transform: translateY(-1px);
}

.hdt-btn-secondary {
	background: #f1f5f9;
	color: var(--hdt-text) !important;
	border: 1px solid var(--hdt-border);
}

.hdt-btn-secondary:hover {
	background: #e2e8f0;
}

.hdt-btn-sm {
	font-size: 13px;
	padding: 6px 14px;
	border-radius: 6px;
}

.hdt-btn-lg {
	font-size: 16px;
	padding: 12px 28px;
	border-radius: 10px;
}

.hdt-btn-block {
	display: flex;
	width: 100%;
}

/* Form Controls */
.hdt-form-group {
	margin-bottom: 20px;
}

.hdt-form-group label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--hdt-text);
	margin-bottom: 8px;
}

.hdt-input, .hdt-select, .hdt-textarea {
	width: 100%;
	padding: 10px 14px;
	font-size: 15px;
	color: var(--hdt-text);
	background: #ffffff;
	border: 1px solid var(--hdt-border);
	border-radius: 8px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-family: inherit;
}

.hdt-input:focus, .hdt-select:focus, .hdt-textarea:focus {
	outline: none;
	border-color: var(--hdt-border-focus);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.hdt-textarea {
	resize: vertical;
	min-height: 180px;
	line-height: 1.6;
}

/* Grid & Layouts */
.hdt-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.hdt-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.hdt-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

/* Metrics & Stat Counters (Word Counter) */
.hdt-metrics-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-bottom: 20px;
}

.hdt-metric-box {
	background: #f8fafc;
	border: 1px solid var(--hdt-border);
	border-radius: 10px;
	padding: 14px;
	text-align: center;
}

.hdt-metric-val {
	font-size: 24px;
	font-weight: 800;
	color: var(--hdt-primary);
	line-height: 1.2;
}

.hdt-metric-lbl {
	font-size: 12px;
	font-weight: 600;
	color: var(--hdt-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 4px;
}

.hdt-reading-stats {
	display: flex;
	gap: 20px;
	background: #f1f5f9;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 13px;
	color: var(--hdt-secondary);
	margin-bottom: 20px;
}

.hdt-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.hdt-toolbar-left, .hdt-toolbar-right {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Password Generator specific */
.hdt-pw-display-box {
	position: relative;
	background: #f8fafc;
	border: 2px solid var(--hdt-border);
	border-radius: 10px;
	padding: 16px 60px 16px 18px;
	margin-bottom: 20px;
}

.hdt-pw-output {
	font-family: monospace;
	font-size: 22px;
	font-weight: 700;
	color: var(--hdt-text);
	word-break: break-all;
	user-select: all;
}

.hdt-pw-copy-btn {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: #ffffff;
	border: 1px solid var(--hdt-border);
	border-radius: 6px;
	padding: 8px;
	cursor: pointer;
	color: var(--hdt-primary);
}

.hdt-pw-copy-btn:hover {
	background: #F5F3FF;
}

.hdt-pw-strength-bar {
	height: 6px;
	background: #e2e8f0;
	border-radius: 3px;
	overflow: hidden;
	margin-top: 10px;
}

.hdt-pw-strength-fill {
	height: 100%;
	width: 0%;
	transition: all 0.3s ease;
}

.hdt-pw-strength-label {
	font-size: 12px;
	font-weight: 600;
	margin-top: 6px;
	display: flex;
	justify-content: space-between;
}

.hdt-checkbox-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 16px 0;
}

.hdt-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}

/* QR Code Generator specific */
.hdt-qr-tabs {
	display: flex;
	gap: 6px;
	border-bottom: 1px solid var(--hdt-border);
	margin-bottom: 20px;
	overflow-x: auto;
}

.hdt-qr-tab {
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	border: none;
	background: none;
	color: var(--hdt-text-muted);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
}

.hdt-qr-tab.active {
	color: var(--hdt-primary);
	border-bottom-color: var(--hdt-primary);
}

.hdt-qr-preview-box {
	background: #f8fafc;
	border: 1px solid var(--hdt-border);
	border-radius: var(--hdt-radius);
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 320px;
}

#hdt-qr-render-area {
	padding: 16px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
}

/* Image Compressor & Resizer specific */
.hdt-preview-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 24px;
}

.hdt-preview-card {
	border: 1px solid var(--hdt-border);
	border-radius: 10px;
	padding: 16px;
	background: #f8fafc;
	text-align: center;
}

.hdt-preview-img-wrap {
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 12px;
}

.hdt-preview-img-wrap img, .hdt-preview-img-wrap canvas {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.hdt-checkerboard {
	background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e2e8f0 75%), linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
	background-size: 16px 16px;
	background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.hdt-saved-badge {
	display: inline-block;
	background: #dcfce7;
	color: #15803d;
	font-weight: 700;
	font-size: 13px;
	padding: 3px 10px;
	border-radius: 12px;
	margin-top: 6px;
}

/* PDF Tools specific */
.hdt-file-list {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hdt-file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #f8fafc;
	border: 1px solid var(--hdt-border);
	border-radius: 8px;
}

.hdt-file-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hdt-file-info .dashicons {
	font-size: 24px;
	color: var(--hdt-primary);
}

.hdt-file-name {
	font-weight: 600;
	font-size: 14px;
}

.hdt-file-size {
	font-size: 12px;
	color: var(--hdt-text-muted);
}

.hdt-file-actions {
	display: flex;
	gap: 6px;
}

/* Progress bar */
.hdt-progress-wrapper {
	margin: 20px 0;
	display: none;
}

.hdt-progress-bar {
	height: 8px;
	background: #e2e8f0;
	border-radius: 4px;
	overflow: hidden;
}

.hdt-progress-fill {
	height: 100%;
	width: 0%;
	background: var(--hdt-primary);
	transition: width 0.3s ease;
}

.hdt-progress-text {
	font-size: 13px;
	color: var(--hdt-text-muted);
	margin-top: 6px;
	text-align: center;
}

/* Toast Notification */
.hdt-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #0f172a;
	color: #ffffff;
	padding: 12px 20px;
	border-radius: 8px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
	font-size: 14px;
	font-weight: 500;
	z-index: 999999;
	display: none;
}

/* SEO Description accordion / content */
.hdt-tool-seo-section {
	margin-top: 40px;
	border-top: 1px solid var(--hdt-border);
	padding-top: 30px;
}

.hdt-tool-seo-section h3 {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--hdt-text);
}

.hdt-tool-seo-section p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--hdt-secondary);
}

/* Responsive */
@media (max-width: 768px) {
	.hdt-tool-card {
		padding: 20px 16px;
	}
	.hdt-metrics-grid, .hdt-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
	.hdt-grid-2, .hdt-preview-grid, .hdt-checkbox-grid {
		grid-template-columns: 1fr;
	}
	.hdt-tool-header h1 {
		font-size: 26px;
	}
}


/* ====================================================
   HDT SEO SECTION, FAQ ACCORDION & RELATED TOOLS
   ==================================================== */
.hdt-tool-seo-section {
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	box-sizing: border-box;
}

.hdt-tool-about-card,
.hdt-tool-faq-card {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 14px !important;
	box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05) !important;
	padding: 30px !important;
	margin-bottom: 0 !important;
	box-sizing: border-box;
}

.hdt-seo-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f1f5f9;
}

.hdt-seo-header-icon {
	font-size: 24px !important;
	width: 24px !important;
	height: 24px !important;
	color: #6D45D9 !important;
}

.hdt-seo-card-title {
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 !important;
	line-height: 1.3 !important;
}

.hdt-prose {
	font-size: 15px;
	line-height: 1.75;
	color: #334155;
}

.hdt-prose p {
	margin-bottom: 14px;
}

.hdt-prose p:last-child {
	margin-bottom: 0;
}

/* FAQ Accordion */
.hdt-faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hdt-faq-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.hdt-faq-item:hover {
	border-color: #cbd5e1;
	background: #ffffff;
}

.hdt-faq-item[open] {
	background: #ffffff;
	border-color: #6D45D9;
	box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.08);
}

.hdt-faq-question {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	padding: 16px 20px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #1e293b !important;
	cursor: pointer !important;
	user-select: none !important;
	list-style: none !important;
	list-style-type: none !important;
}

.hdt-faq-question::-webkit-details-marker,
.hdt-faq-question::marker {
	display: none !important;
	content: "" !important;
}

.hdt-faq-q-text {
	flex: 1;
	padding-right: 14px;
	line-height: 1.4;
}

.hdt-faq-chevron {
	width: 28px;
	height: 28px;
	min-width: 28px;
	border-radius: 50%;
	background: #F5F3FF;
	color: #6D45D9;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: all 0.25s ease;
}

.hdt-faq-chevron::after {
	content: "+";
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
}

.hdt-faq-item[open] .hdt-faq-chevron {
	background: #6D45D9;
	color: #ffffff;
	transform: rotate(45deg);
}

.hdt-faq-answer {
	padding: 0 20px 18px 20px;
	color: #475569;
	font-size: 15px;
	line-height: 1.65;
	border-top: 1px solid #f1f5f9;
	padding-top: 14px;
}

.hdt-faq-answer p {
	margin: 0;
}

/* Related Tools Section */
.hdt-related-container {
	margin-top: 50px !important;
	box-sizing: border-box;
}

.hdt-related-tools-section {
	width: 100%;
	padding-top: 36px;
	border-top: 2px solid #f1f5f9;
}

.hdt-related-header {
	text-align: center;
	margin-bottom: 32px;
}

.hdt-related-header .hdt-tool-badge {
	margin-bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #F5F3FF;
	color: #6D45D9;
	font-size: 13px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 20px;
}

.hdt-related-title {
	font-size: 26px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	margin: 0 0 8px 0 !important;
	line-height: 1.3 !important;
}

.hdt-related-subtitle {
	font-size: 15px !important;
	color: #64748b !important;
	margin: 0 auto !important;
	max-width: 500px !important;
}

/* Tool Cards Grid */
.hdt-tools-grid {
	display: grid;
	gap: 24px;
	align-items: stretch;
	box-sizing: border-box;
}

.hdt-cols-3 {
	grid-template-columns: repeat(3, 1fr) !important;
}

.hdt-cols-4 {
	grid-template-columns: repeat(4, 1fr) !important;
}

/* Tool Card Item Styling */
.hdt-tool-card-item {
	background: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 14px !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

.hdt-tool-card-item:hover {
	transform: translateY(-4px) !important;
	box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04) !important;
	border-color: #cbd5e1 !important;
}

.hdt-card-link {
	text-decoration: none !important;
	color: inherit !important;
	display: flex !important;
	flex-direction: column !important;
	flex-grow: 1 !important;
	padding: 24px 22px !important;
	height: 100% !important;
	box-sizing: border-box !important;
}

.hdt-card-top {
	display: flex !important;
	justify-content: space-between !important;
	align-items: flex-start !important;
	margin-bottom: 18px !important;
}

.hdt-card-icon-wrapper {
	width: 52px !important;
	height: 52px !important;
	border-radius: 12px !important;
	background: #F5F3FF !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #6D45D9 !important;
	flex-shrink: 0 !important;
	transition: background 0.2s ease, transform 0.2s ease !important;
}

.hdt-tool-card-item:hover .hdt-card-icon-wrapper {
	transform: scale(1.05) !important;
	background: #dbeafe !important;
}

.hdt-card-icon-wrapper .dashicons {
	font-size: 28px !important;
	width: 28px !important;
	height: 28px !important;
	line-height: 28px !important;
}

.hdt-card-icon-img {
	width: 32px !important;
	height: 32px !important;
	object-fit: contain !important;
}

.hdt-card-badges {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-end !important;
	gap: 6px !important;
}

.hdt-card-badge-featured {
	background: #fef3c7 !important;
	color: #b45309 !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	padding: 2px 8px !important;
	border-radius: 12px !important;
	border: 1px solid #fde68a !important;
	text-transform: uppercase !important;
	letter-spacing: 0.4px !important;
	white-space: nowrap !important;
}

.hdt-card-badge-cat {
	font-size: 11px !important;
	color: #64748b !important;
	background: #f1f5f9 !important;
	padding: 2px 7px !important;
	border-radius: 6px !important;
	font-weight: 500 !important;
	white-space: nowrap !important;
}

.hdt-card-content {
	flex-grow: 1 !important;
	margin-bottom: 20px !important;
}

.hdt-card-title {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 0 8px 0 !important;
	line-height: 1.35 !important;
	transition: color 0.15s ease !important;
}

.hdt-tool-card-item:hover .hdt-card-title {
	color: #6D45D9 !important;
}

.hdt-card-description {
	font-size: 14px !important;
	line-height: 1.55 !important;
	color: #64748b !important;
	margin: 0 !important;
}

.hdt-card-footer {
	margin-top: auto !important;
	padding-top: 14px !important;
	border-top: 1px solid #f1f5f9 !important;
}

.hdt-card-btn-text {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #6D45D9 !important;
	transition: gap 0.2s ease !important;
}

.hdt-tool-card-item:hover .hdt-card-btn-text {
	gap: 10px !important;
}

.hdt-arrow-icon {
	transition: transform 0.2s ease !important;
}

.hdt-tool-card-item:hover .hdt-arrow-icon {
	transform: translateX(3px) !important;
}

/* Responsive Grid for Related Tools */
@media (max-width: 900px) {
	.hdt-cols-3 {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	.hdt-cols-3 {
		grid-template-columns: 1fr !important;
	}
	.hdt-tool-about-card,
	.hdt-tool-faq-card {
		padding: 22px 18px !important;
	}
}

/* ====================================================
   IMAGE CROPPER TOOL STYLING
   ==================================================== */
.hdt-cropper-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	margin-bottom: 20px;
}

.hdt-toolbar-group {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.hdt-toolbar-label {
	font-size: 13px;
	color: #475569;
}

.hdt-ratio-btn-group,
.hdt-btn-group {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.hdt-btn-xs {
	padding: 5px 10px !important;
	font-size: 12px !important;
	border-radius: 6px !important;
}

.hdt-ratio-btn-group .hdt-btn.active {
	background: #6D45D9 !important;
	border-color: #5B37BF !important;
	color: #ffffff !important;
}

.hdt-cropper-stage-wrapper {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #0f172a;
	background-image: 
		linear-gradient(45deg, #1e293b 25%, transparent 25%), 
		linear-gradient(-45deg, #1e293b 25%, transparent 25%), 
		linear-gradient(45deg, transparent 75%, #1e293b 75%), 
		linear-gradient(-45deg, transparent 75%, #1e293b 75%);
	background-size: 20px 20px;
	background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
	border-radius: 12px;
	padding: 24px;
	box-sizing: border-box;
	overflow: hidden;
}

.hdt-cropper-stage {
	position: relative;
	display: inline-block;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	user-select: none;
	touch-action: none;
}

#hdt-crop-canvas {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Crop Box Overlay */
.hdt-crop-box {
	position: absolute;
	box-sizing: border-box;
	border: 2px dashed #ffffff;
	box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.65);
	cursor: move;
	touch-action: none;
}

/* Rule of Thirds Grid Lines */
.hdt-crop-box::before,
.hdt-crop-box::after {
	content: '';
	position: absolute;
	pointer-events: none;
}

.hdt-crop-box::before {
	top: 33.33%;
	bottom: 33.33%;
	left: 0;
	right: 0;
	border-top: 1px dotted rgba(255, 255, 255, 0.5);
	border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}

.hdt-crop-box::after {
	left: 33.33%;
	right: 33.33%;
	top: 0;
	bottom: 0;
	border-left: 1px dotted rgba(255, 255, 255, 0.5);
	border-right: 1px dotted rgba(255, 255, 255, 0.5);
}

/* Resize Handles */
.hdt-handle {
	position: absolute;
	width: 12px;
	height: 12px;
	background: #6D45D9;
	border: 2px solid #ffffff;
	border-radius: 2px;
	box-sizing: border-box;
	z-index: 10;
}

.hdt-handle-nw { top: -6px; left: -6px; cursor: nwse-resize; }
.hdt-handle-n  { top: -6px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.hdt-handle-ne { top: -6px; right: -6px; cursor: nesw-resize; }
.hdt-handle-e  { top: 50%; right: -6px; transform: translateY(-50%); cursor: ew-resize; }
.hdt-handle-se { bottom: -6px; right: -6px; cursor: nwse-resize; }
.hdt-handle-s  { bottom: -6px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.hdt-handle-sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.hdt-handle-w  { top: 50%; left: -6px; transform: translateY(-50%); cursor: ew-resize; }

.hdt-crop-dimension-badge {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(15, 23, 42, 0.85);
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	pointer-events: none;
	white-space: nowrap;
}

/* Cropper Adjustments */
.hdt-cropper-adjustments {
	display: flex;
	gap: 16px;
	align-items: flex-end;
	margin-top: 20px;
	flex-wrap: wrap;
}

.hdt-input-sm {
	padding: 6px 10px !important;
	font-size: 13px !important;
}

/* Result Preview Box */
.hdt-result-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
}

.hdt-result-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.hdt-result-preview-wrap {
	display: flex;
	justify-content: center;
	background: #ffffff;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	padding: 16px;
	max-height: 400px;
	overflow: hidden;
}

.hdt-result-preview-img {
	max-width: 100%;
	max-height: 360px;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* ====================================================
   ADVERTISEMENT MONETIZATION STYLES
   ==================================================== */
.hdt-ad-container {
	margin: 24px auto !important;
	text-align: center !important;
	max-width: 100% !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	display: block !important;
}

.hdt-ad-container iframe,
.hdt-ad-container ins {
	max-width: 100% !important;
	margin: 0 auto !important;
	display: block !important;
}

.hdt-ad-label {
	font-size: 11px !important;
	color: #94a3b8 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	margin-bottom: 6px !important;
	display: block !important;
}