.btn::after,
.nav-item::after,
header::before {
	position: absolute;
	content: ''
}

.btn,
.controls,
.stat-item,
.stats-bar,
header {
	display: flex
}

.btn,
.line-numbers,
.text-container,
.text-wrapper,
header {
	overflow: hidden
}

.result-section h3,
.text-header h3 {
	margin: 0;
	font-size: .95rem
}

.result-section h3,
.text-header h3,
body {
	color: var(--text-color)
}

.btn.secondary,
.modal {
	backdrop-filter: blur(5px)
}

.download-btn,
.footer-link,
.nav-link {
	text-decoration: none
}

:root {
	--primary-color: #6366f1;
	--primary-color-dark: #4f46e5;
	--secondary-color: #8b5cf6;
	--background-color: #f9fafb;
	--text-color: #1f2937;
	--border-color: #e5e7eb;
	--success-color: #10b981;
	--danger-color: #ef4444;
	--warning-color: #f59e0b;
	--light-gray: #f3f4f6;
	--dark-gray: #4b5563;
	--card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: var(--background-color);
	line-height: 1.6
}

.container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 1rem
}

.btn,
.nav-item {
	padding: .5rem 1rem;
	transition: .3s;
	position: relative;
	cursor: pointer
}

header {
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	padding: 1rem 1.5rem;
	border-radius: 1rem;
	box-shadow: var(--card-shadow);
	position: relative
}

.result-section h3,
text-header {
	padding: .75rem 1rem;
	border-bottom: 1px solid var(--border-color)
}

header::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at top right, rgba(255, 255, 255, .1), transparent 70%);
	pointer-events: none
}

.nav-item {
	color: rgba(255, 255, 255, .8);
	border-radius: .5rem
}

.nav-item:hover {
	color: #fff;
	background-color: rgba(255, 255, 255, .1)
}

.nav-item.active {
	color: #fff;
	background-color: rgba(255, 255, 255, .2)
}

.nav-item::after {
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background-color: #fff;
	transition: .3s;
	transform: translateX(-50%)
}

.nav-item.active::after,
.nav-item:hover::after {
	width: 80%
}

h1 {
	color: #fff;
	font-size: 1.75rem;
	font-weight: 600;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, .2)
}

.controls {
	gap: .5rem
}

.btn {
	border: none;
	border-radius: .5rem;
	font-weight: 500;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
	font-size: .875rem;
	align-items: center;
	gap: .5rem
}

.btn::after {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: linear-gradient(rgba(255, 255, 255, .2), transparent);
	opacity: 0;
	transition: opacity .3s
}

.btn:hover::after,
.text-wrapper.has-content .line-numbers {
	opacity: 1
}

.btn.primary {
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	color: #fff
}

.btn.secondary {
	background: rgb(62 21 225 / 68%);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .1)
}

.btn.accent {
	background: linear-gradient(135deg, #8b5cf6, #7c3aed);
	color: #fff
}

.btn.success {
	background: linear-gradient(135deg, #10b981, #059669);
	color: #fff
}

.btn.danger {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	color: #fff
}

.btn#clearBtn,
.btn#compareBtn,
.btn#compareImagesBtn {
	padding: .75rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: .5px;
	transform: scale(1.05);
	box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
	transition: .3s cubic-bezier(.68, -.55, .27, 1.55);
	text-align: center;
	justify-content: center
}

.btn#compareImagesBtn,
.compareImagesBtn,
.btn#compareBtn {
	background: linear-gradient(135deg, #4f46e5, #2563eb);
	color: #fff;
	border: none
}

.stats-bar,
.text-container {
	background: #fff;
	box-shadow: var(--card-shadow)
}

.stat-label,
footer {
	color: var(--dark-gray)
}

.btn#clearBtn {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	color: #fff;
	border: none
}

.btn#clearBtn:hover,
.btn#compareBtn:hover,
.btn#compareImagesBtn:hover {
	transform: scale(1.1) translateY(-3px);
	box-shadow: 0 6px 15px rgba(0, 0, 0, .2)
}

.btn#clearBtn:active,
.btn#compareBtn:active,
.btn#compareImagesBtn:active {
	transform: scale(1.02) translateY(-1px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, .15)
}

.compare-button-container {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1rem;
	width: 100%
}

.compare-button-container .btn {
	font-size: 1.1rem;
	padding: .75rem 2rem;
	min-width: 180px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
	transition: .3s
}

.compare-button-container .btn:hover,
.download-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, .15)
}

.btn.small {
	padding: .35rem .75rem;
	font-size: .8rem
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, .15)
}

.btn:active,
.tool-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 3px rgba(0, 0, 0, .1)
}

.btn .ripple {
	position: absolute;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, .4);
	transform: scale(0);
	animation: .6s linear ripple;
	pointer-events: none
}

.result-section h3,
.stat-item:hover,
text-header {
	background-color: var(--light-gray)
}

@keyframes ripple {
	to {
		transform: scale(2.5);
		opacity: 0
	}
}

@keyframes subtle-pulse {

	0%,
	100% {
		box-shadow: 0 4px 10px rgba(0, 0, 0, .15)
	}

	50% {
		box-shadow: 0 6px 15px rgba(0, 0, 0, .25)
	}
}

.btn#compareBtn {
	animation: 2s infinite subtle-pulse
}

.stats-bar {
	justify-content: space-between;
	padding: .4rem;
	border-radius: 1rem;
	margin-bottom: 1.5rem
}

.stat-item {
	flex-direction: column;
	align-items: center;
	padding: .5rem 1rem;
	border-radius: .5rem;
	transition: .2s
}

.stat-label {
	font-size: .75rem;
	margin-bottom: .25rem
}

.comparison-container,
.result-container {
	margin-bottom: 1.5rem;
	grid-template-columns: 1fr 1fr
}

.stat-value {
	font-weight: 600;
	color: var(--primary-color);
	font-size: 1rem
}

.comparison-container {
	display: grid;
	gap: 20px;
	max-width: 100%;
	width: 100%
}

.result-section:hover,
.text-container:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05)
}

.text-container {
	border-radius: 1rem;
	max-width: 100%;
	width: 100%;
	transition: .3s
}

text-header {
	display: flex;
	justify-content: space-between;
	align-items: center
}

.text-header h3 {
	display: flex;
	align-items: center;
	gap: .5rem;
	flex-direction: column
}

.text-actions {
	display: flex;
	gap: .25rem
}

.text-wrapper {
	display: flex;
	height: 500px;
	width: 100%
}

.line-numbers,
.text-area {
	height: 100%;
	font-family: Consolas, monospace
}

.line-numbers {
	width: 40px;
	padding: .75rem .25rem;
	background-color: transparent;
	border-right: none;
	color: #6c757d;
	text-align: right;
	user-select: none;
	position: relative;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transition: opacity .3s
}

.central-area,
.diff-arrow-container {
	position: absolute;
	transform: translateX(-50%);
	left: 50%
}

.text-area {
	flex: 1;
	padding: .75rem;
	border: none;
	resize: none;
	overflow-y: auto;
	overflow-x: auto;
	white-space: pre;
	width: 100%
}

.line-numbers,
.text-area {
	padding-top: .75rem;
	line-height: 1.5;
	font-size: 12px
}

.central-area {
	top: 0;
	bottom: 0;
	width: 40px;
	z-index: 90;
	pointer-events: none;
	overflow: hidden
}

.diff-arrow-container {
	z-index: 100;
	cursor: pointer;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--primary-color, #6366f1);
	color: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
	transition: .2s;
	pointer-events: auto
}

.scrollbar-indicator {
	background-color: var(--primary-color);
	box-shadow: 0 2px 4px rgba(0, 0, 0, .2)
}

.result-column,
.result-section {
	background: #fff;
	overflow: hidden
}

.result-container {
	display: none;
	gap: 1.5rem;
	width: 100%
}

.result-section {
	border-radius: 1rem;
	box-shadow: var(--card-shadow);
	transition: .3s
}

.diff-container,
.differences-container,
.result-column {
	box-shadow: 0 2px 4px rgba(0, 0, 0, .1)
}

.result-content {
	padding: .75rem;
	width: 100%
}

.result-container h3 {
	font-size: .95rem;
	margin-bottom: .5rem;
	display: flex;
	align-items: center;
	gap: .5rem
}

.comparison-result {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .75rem;
	margin-top: .75rem
}

.contact-methods,
.tutorial-steps {
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
}

.result-column {
	border-radius: 8px
}

.result-column h4 {
	padding: .5rem .75rem;
	background-color: #f8f9fa;
	border-bottom: 1px solid var(--border-color);
	margin: 0;
	font-size: .85rem;
	color: var(--text-color)
}

.diff-container h4,
.differences-container h4 {
	margin-bottom: .75rem;
	color: var(--text-color);
	font-size: .95rem
}

.result-area {
	min-height: 150px;
	max-height: 300px;
	padding: .75rem;
	overflow-y: auto;
	font-family: Consolas, monospace;
	font-size: 12px
}

.perfect-match {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	font-size: 1.25rem;
	color: var(--success-color);
	font-weight: 600;
	text-align: center;
	background-color: #d4edda;
	border-radius: 8px;
	margin: .75rem
}

.diff-item,
.difference-item {
	font-size: 12px;
	line-height: 1.5;
	font-family: Consolas, monospace
}

.differences-container {
	padding: .75rem;
	background: #fff;
	border-radius: 8px
}

.differences-list {
	display: flex;
	flex-direction: column;
	gap: .5rem
}

.difference-item {
	padding: .5rem .75rem;
	border-radius: 4px
}

.diff-item.added,
.difference-item.added,
.notification.success {
	background-color: #d4edda;
	color: #155724
}

.diff-item.removed,
.difference-item.removed {
	background-color: #f8d7da;
	color: #721c24
}

.line-info {
	display: block;
	white-space: pre-wrap
}

.diff-container {
	padding: .75rem;
	background: #fff;
	border-radius: 8px;
	height: 100%
}

.diff-container h4 {
	padding-bottom: .5rem;
	border-bottom: 1px solid var(--border-color)
}

.diff-list {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	width: 100%
}

.diff-item {
	padding: .5rem .75rem;
	border-radius: 4px;
	position: relative
}

.notification {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: .75rem 1rem;
	background: #fff;
	border-radius: .75rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);
	display: flex;
	align-items: center;
	gap: .75rem;
	transform: translateY(100px);
	opacity: 0;
	transition: .3s cubic-bezier(.68, -.55, .27, 1.55);
	z-index: 1000;
	font-size: .875rem;
	max-width: 350px
}

.notification.show {
	transform: translateY(0);
	opacity: 1
}

.notification i {
	font-size: 1.25rem
}

.notification.error {
	background-color: #fef2f2;
	color: #991b1b;
	border-left: 4px solid var(--danger-color)
}

.notification.info {
	background-color: #eff6ff;
	color: #1e40af;
	border-left: 4px solid var(--primary-color)
}

footer {
	margin-top: 1.5rem;
	text-align: center;
	font-size: .8rem;
	padding: .75rem
}

footer p {
	margin: .25rem 0
}

kbd {
	background-color: #f1f3f5;
	border: 1px solid #dee2e6;
	border-radius: 3px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 2px 0 0 rgba(255, 255, 255, .7) inset;
	color: #666;
	display: inline-block;
	font-family: monospace;
	font-size: .8em;
	font-weight: 700;
	line-height: 1;
	padding: 2px 4px;
	white-space: nowrap
}

.dark-theme {
	--background-color: #111827;
	--text-color: #f9fafb;
	--border-color: #374151;
	--light-gray: #1f2937;
	--dark-gray: #9ca3af;
	--card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2)
}

.dark-theme .result-container,
.dark-theme .result-section,
.dark-theme .stats-bar,
.dark-theme .text-container {
	background-color: #1f2937;
	box-shadow: var(--card-shadow)
}

.dark-theme .image-upload-container h3,
.dark-theme .line-numbers,
.dark-theme .nav-item.active,
.dark-theme .nav-item:hover,
.dark-theme .result-section h3,
.dark-theme .text-header {
	background-color: #111827;
	color: #f9fafb
}

.dark-theme header,
.seo-toggle:hover {
	background: linear-gradient(135deg, #4f46e5, #7c3aed)
}

.dark-theme .nav-item {
	color: rgba(255, 255, 255, .7)
}

.dark-theme .result-area,
.dark-theme .text-area {
	background-color: #1f2937;
	color: #f9fafb
}

.dark-theme .btn.primary {
	background: linear-gradient(135deg, #818cf8, #6366f1)
}

.dark-theme .btn.secondary {
	background: rgba(31, 41, 55, .6);
	border: 1px solid rgba(255, 255, 255, .1)
}

.dark-theme .btn.accent {
	background: linear-gradient(135deg, #a78bfa, #8b5cf6)
}

.dark-theme .btn#compareBtn,
.dark-theme .tool-btn {
	background: linear-gradient(135deg, #6366f1, #4f46e5)
}

.dark-theme .btn#clearBtn {
	background: linear-gradient(135deg, #f87171, #ef4444)
}

.dark-theme .diff-item.added {
	background-color: rgba(16, 185, 129, .2);
	color: #10b981
}

.dark-theme .diff-item.removed {
	background-color: rgba(239, 68, 68, .2);
	color: #ef4444
}

.dark-theme .perfect-match {
	background-color: rgba(76, 201, 240, .2);
	color: #4cc9f0
}

.diff-list::-webkit-scrollbar,
.result-area::-webkit-scrollbar,
.text-area::-webkit-scrollbar {
	width: 6px
}

.diff-list::-webkit-scrollbar-track,
.result-area::-webkit-scrollbar-track,
.text-area::-webkit-scrollbar-track {
	background: var(--light-gray);
	border-radius: 3px
}

.diff-list::-webkit-scrollbar-thumb,
.result-area::-webkit-scrollbar-thumb,
.text-area::-webkit-scrollbar-thumb {
	background-color: var(--dark-gray);
	border-radius: 3px
}

.diff-list::-webkit-scrollbar-thumb:hover,
.result-area::-webkit-scrollbar-thumb:hover,
.text-area::-webkit-scrollbar-thumb:hover {
	background-color: var(--primary-color)
}

.dark-theme .diff-list::-webkit-scrollbar-track,
.dark-theme .result-area::-webkit-scrollbar-track,
.dark-theme .text-area::-webkit-scrollbar-track {
	background: #2a2a3a
}

.dark-theme .diff-list::-webkit-scrollbar-thumb,
.dark-theme .result-area::-webkit-scrollbar-thumb,
.dark-theme .text-area::-webkit-scrollbar-thumb {
	background-color: #4f4f6f
}

.text-overlay {
	pointer-events: none;
	white-space: pre
}

.overlay-line.modified {
	background-color: rgba(255, 193, 7, .2);
	color: transparent;
	border-left: 3px solid #ffc107
}

.diff-word.added,
.diff-word.modified,
.diff-word.removed {
	color: var(--text-color);
	padding: 0 2px;
	border-radius: 3px;
	font-weight: 700
}

.diff-word {
	padding: 0 2px;
	border-radius: 2px
}

.diff-word.added {
	background-color: rgba(16, 185, 129, .4);
	box-shadow: 0 0 3px rgba(16, 185, 129, .5);
	text-decoration: underline;
	text-decoration-color: var(--success-color);
	text-decoration-thickness: 2px
}

.diff-word.removed {
	background-color: rgba(239, 68, 68, .4);
	box-shadow: 0 0 3px rgba(239, 68, 68, .5);
	text-decoration: line-through;
	text-decoration-color: var(--danger-color);
	text-decoration-thickness: 2px
}

.dark-theme .diff-word.modified,
.diff-word.modified {
	text-decoration: underline wavy;
	text-decoration-color: var(--warning-color);
	text-decoration-thickness: 2px
}

.diff-word.modified {
	background-color: rgba(245, 158, 11, .4);
	box-shadow: 0 0 3px rgba(245, 158, 11, .5)
}

.full-text-container {
	font-family: Consolas, monospace;
	font-size: 12px;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-x: auto;
	width: 100%
}

.text-line {
	display: flex;
	width: 100%
}

.line-number {
	position: relative;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	min-width: 35px;
	padding-right: 8px;
	text-align: right;
	color: #6c757d;
	user-select: none;
	border-right: 1px solid var(--border-color);
	margin-right: 8px
}

.ad-container,
.contact-method,
.copyright,
.image-result-container h3,
.image-upload-area,
.qr-code,
.tool-btn {
	text-align: center
}

.diff-item .line-number-container,
.line-number-container {
	position: relative;
	height: 1.5em;
	padding-right: 5px;
	display: flex;
	align-items: center;
	justify-content: flex-end
}

.diff-indicator,
.diff-item .diff-indicator {
	position: absolute;
	right: -8px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	cursor: pointer;
	font-size: 10px;
	z-index: 100;
	transition: transform .2s
}

.diff-indicator:hover,
.diff-item .diff-indicator:hover {
	transform: translateY(-50%) scale(1.2)
}

.diff-indicator.added {
	background-color: #28a745;
	color: #fff
}

.diff-indicator.removed {
	background-color: #dc3545;
	color: #fff
}

.diff-indicator.modified {
	background-color: #ffc107;
	color: #212529
}

.line-content.added,
.line-content.modified,
.line-content.removed {
	color: var(--text-color);
	position: relative;
	padding: 2px 8px;
	border-radius: .25rem;
	margin-left: -8px;
	font-weight: 500
}

.dark-theme .diff-indicator.added {
	background-color: #4cc9f0;
	color: #16213e
}

.dark-theme .diff-indicator.removed {
	background-color: #f72585;
	color: #fff
}

.dark-theme .diff-indicator.modified {
	background-color: #ffc107;
	color: #16213e
}

.line-content {
	flex: 1;
	white-space: pre-wrap;
	word-break: break-all;
	width: 100%
}

.line-content.removed {
	background-color: rgba(239, 68, 68, .3);
	border-left: 4px solid var(--danger-color);
	box-shadow: 0 0 8px rgba(239, 68, 68, .2)
}

.line-content.added {
	background-color: rgba(16, 185, 129, .3);
	border-left: 4px solid var(--success-color);
	box-shadow: 0 0 8px rgba(16, 185, 129, .2)
}

.line-content.modified {
	background-color: rgba(245, 158, 11, .3);
	border-left: 4px solid var(--warning-color);
	box-shadow: 0 0 8px rgba(245, 158, 11, .2)
}

.dark-theme .line-content.removed {
	background-color: rgba(239, 68, 68, .25);
	color: #fee2e2;
	border-left-color: var(--danger-color);
	box-shadow: 0 0 8px rgba(239, 68, 68, .3)
}

.dark-theme .line-content.added {
	background-color: rgba(16, 185, 129, .25);
	color: #d1fae5;
	border-left-color: var(--success-color);
	box-shadow: 0 0 8px rgba(16, 185, 129, .3)
}

.dark-theme .line-content.modified {
	background-color: rgba(245, 158, 11, .25);
	color: #fef3c7;
	border-left-color: var(--warning-color);
	box-shadow: 0 0 8px rgba(245, 158, 11, .3)
}

.dark-theme .line-number {
	color: #adb5bd
}

.dark-theme .overlay-line.modified {
	background-color: rgba(255, 193, 7, .2);
	border-left-color: #ffc107
}

.dark-theme .diff-word.added {
	background-color: rgba(16, 185, 129, .4);
	color: #ecfdf5
}

.dark-theme .diff-word.removed {
	background-color: rgba(239, 68, 68, .4);
	color: #fef2f2
}

.dark-theme .diff-word.modified {
	background-color: rgba(245, 158, 11, .4);
	color: #fffbeb
}

.diff-item.modified {
	background-color: #fff3cd;
	color: #856404
}

.dark-theme .diff-item.modified {
	background-color: rgba(255, 193, 7, .2);
	color: #ffc107
}

.dark-theme .diff-marker.modified,
.diff-marker.modified {
	background-color: #ffc107
}

.modal-content {
	background-color: var(--background-color)
}

.close-button {
	position: absolute;
	right: 0px;
	top: 0px;
	font-size: 19px;
	font-weight: 600;
	color: var(--dark-gray);
	cursor: pointer;
	transition: color .3s
}

.seo-toggle,
.tool-btn {
	font-weight: 600;
	cursor: pointer
}

.close-button:hover,
.close-modal:hover {
	color: var(--danger-color)
}

.ad-container.hidden,
.central-scrollbar {
	display: none
}

.scrollbar-track {
	width: 4px;
	height: 100%;
	background-color: #e9ecef;
	border-radius: 2px;
	position: relative
}

.scrollbar-indicator {
	width: 10px;
	height: 40px;
	background-color: var(--primary-color);
	border-radius: 5px;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 0;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	transition: background-color .2s
}

.diff-markers,
.line-connection {
	top: 0;
	left: 0;
	width: 100%;
	position: absolute;
	pointer-events: none
}

.scrollbar-indicator:hover {
	background-color: var(--primary-color-dark)
}

.diff-markers {
	height: 100%
}

.diff-marker {
	position: absolute;
	width: 100%;
	height: 2px;
	background-color: transparent
}

.diff-marker.added {
	background-color: #28a745
}

.diff-marker.removed {
	background-color: #dc3545
}

.line-connection {
	height: 100%;
	z-index: 5
}

.connection-line {
	position: absolute;
	height: 1px;
	background-color: rgba(100, 100, 100, .5);
	transform-origin: 0 0;
	pointer-events: none
}

.dark-theme .central-scrollbar {
	background-color: #2a2a3a;
	border-color: #3a3a4a
}

.dark-theme .scrollbar-track {
	background-color: #1a1a2a
}

.dark-theme .diff-marker.added,
.dark-theme .scrollbar-indicator {
	background-color: #4cc9f0
}

.dark-theme .scrollbar-indicator:hover {
	background-color: #3db8df
}

.dark-theme .diff-marker.removed {
	background-color: #f72585
}

.dark-theme .connection-line {
	background-color: rgba(150, 150, 150, .5)
}

.line-content.placeholder {
	background-color: #f8f8f8;
	color: #999;
	font-style: italic;
	min-height: 1.5em;
	border-left: 3px dashed #ccc;
	padding-left: 5px
}

.line-content.placeholder.removed {
	background-color: #fff0f0;
	border-left: 3px dashed #fcc
}

.line-content.placeholder.added {
	background-color: #f0fff0;
	border-left: 3px dashed #cfc
}

.placeholder-text {
	color: #999;
	font-style: italic;
	font-size: .9em
}

.dark-theme .line-content.placeholder {
	background-color: #2a2a3a;
	border-left-color: #444
}

.dark-theme .line-content.placeholder.removed {
	background-color: #3a2a2a;
	border-left-color: #633
}

.dark-theme .line-content.placeholder.added {
	background-color: #2a3a2a;
	border-left-color: #363
}

.dark-theme .placeholder-text {
	color: #777
}

.seo-section {
	margin-bottom: 1.5rem;
	background: #fff;
	border-radius: 1rem;
	box-shadow: var(--card-shadow);
	overflow: hidden
}

.seo-toggle {
	padding: .5rem 1.5rem;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: .3s
}

.seo-toggle i {
	transition: transform .3s
}

.seo-section.active .seo-toggle i {
	transform: rotate(180deg)
}

.seo-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height .5s
}

.seo-section.active .seo-content {
	max-height: 2000px
}

.footer-content,
.seo-intro {
	padding: 1.5rem
}

.seo-intro {
	margin-bottom: 1.5rem;
	background-color: var(--light-gray);
	border-radius: .5rem;
	font-size: .95rem;
	line-height: 1.6;
	color: var(--text-color)
}

.dark-theme .seo-intro {
	background-color: var(--dark-gray);
	color: #e5e7eb
}

.dark-theme .tool-btn:hover,
.tool-btn:hover {
	background: linear-gradient(135deg, #4f46e5, #4338ca)
}

.tool-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
	justify-content: center
}

.btn#mobileAppBtn,
.tool-btn {
	color: #fff;
	align-items: center;
	display: flex
}

.tool-btn {
	padding: .5rem 1rem;
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	border: none;
	border-radius: .5rem;
	justify-content: center;
	gap: 5px;
	font-size: .9rem;
	transition: .3s;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
	min-width: 120px
}

.tool-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, .15)
}

.tool-btn.active {
	background: linear-gradient(135deg, #8b5cf6, #7c3aed);
	color: #fff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, .2)
}

.btn#mobileAppBtn,
.download-btn.android {
	background: linear-gradient(135deg, #4caf50, #2e7d32)
}

.dark-theme .tool-btn.active {
	background: linear-gradient(135deg, #8b5cf6, #7c3aed)
}

.btn#mobileAppBtn {
	margin-right: 10px;
	gap: 8px
}

.btn#mobileAppBtn:hover {
	background: linear-gradient(135deg, #43a047, #1b5e20);
	transform: translateY(-2px)
}

.modal {
	overflow: auto
}

.modal-content {
	background-color: var(--background-color);
	box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
	animation: .3s modalFadeIn
}

.download-btn,
.modal-content {
	box-shadow: 0 4px 6px rgba(0, 0, 0, .1)
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: translateY(-20px)
	}

	to {
		opacity: 1;
		transform: translateY(0)
	}
}

.close-modal {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	color: var(--dark-gray);
	font-size: 1.8rem;
	font-weight: 700;
	cursor: pointer;
	transition: color .2s
}

.modal-content h2 {
	color: var(--primary-color);
	display: flex;
	align-items: center;
	gap: 10px
}

.app-info {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 2rem
}

.app-icon img {
	width: 100px;
	height: 100px;
	border-radius: 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, .1)
}

.app-details h3 {
	margin-bottom: .5rem;
	color: var(--text-color)
}

.app-features {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: .5rem
}

.feature {
	display: flex;
	align-items: center;
	gap: 8px
}

.feature i {
	color: var(--success-color)
}

.download-options {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap
}

.download-btn {
	padding: .75rem 1.5rem;
	border-radius: .5rem;
	color: #fff;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: .3s
}

.download-btn.play-store {
	background: linear-gradient(135deg, #2196f3, #0d47a1)
}

.qr-code {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border-color)
}

.qr-image {
	margin-top: 1rem
}

.qr-placeholder {
	width: 150px;
	height: 150px;
	background: repeating-linear-gradient(45deg, var(--light-gray), var(--light-gray) 10px, var(--border-color) 10px, var(--border-color) 20px);
	margin: 0 auto;
	border-radius: 10px
}

.text-wrapper {
	position: relative
}

.text-overlay {
	position: absolute;
	top: 0;
	left: 40px;
	right: 0;
	bottom: 0;
	padding: 1rem;
	pointer-events: none;
	white-space: pre-wrap;
	font-family: Consolas, monospace;
	font-size: 14px;
	line-height: 1.5;
	color: transparent;
	overflow: hidden;
	z-index: 10
}

.overlay-line {
	height: 1.5em;
	position: relative
}

.overlay-line.removed {
	background-color: rgba(220, 53, 69, .2);
	color: transparent;
	border-left: 3px solid #dc3545
}

.overlay-line.added {
	background-color: rgba(40, 167, 69, .2);
	color: transparent;
	border-left: 3px solid #28a745
}

.dark-theme .overlay-line.removed {
	background-color: rgba(247, 37, 133, .2);
	border-left-color: #f72585
}

.dark-theme .overlay-line.added {
	background-color: rgba(76, 201, 240, .2);
	border-left-color: #4cc9f0
}

.dark-theme .result-section {
	background-color: #2b2d42
}

.dark-theme .result-section h3 {
	background-color: #16213e;
	border-color: #121a2e;
	color: #e9ecef
}

.image-comparison-container {
	margin: 20px 0;
	width: 100%
}

.image-upload-section {
	display: flex;
	gap: 20px;
	margin-bottom: 20px
}

.image-upload-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px
}

.image-upload-container h3 {
	margin: 0;
	padding: 10px;
	background-color: var(--light-gray);
	border-radius: 4px 4px 0 0;
	font-size: 1rem;
	display: flex;
	align-items: center;
	gap: 8px
}

.image-preview,
.image-upload-area,
.option-group select {
	background-color: var(--bg-primary)
}

.image-upload-area {
	border: 2px dashed var(--border-color);
	border-radius: 8px;
	padding: 30px 20px;
	transition: .3s;
	cursor: pointer
}

.image-upload-area.dragover,
.image-upload-area:hover {
	border-color: var(--primary-color);
	background-color: var(--hover-bg)
}

.image-upload-area i {
	font-size: 2.5rem;
	color: var(--primary-color);
	margin-bottom: 15px
}

.image-preview {
	min-height: 200px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden
}

.image-options,
.image-result-container {
	background-color: var(--bg-secondary);
	padding: 15px
}

.image-preview img {
	max-width: 100%;
	max-height: 300px;
	object-fit: contain
}

.image-options {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 20px;
	border-radius: 8px
}

.option-group {
	flex: 1;
	min-width: 200px
}

.option-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700
}

.option-group select {
	width: 100%;
	padding: 8px 12px;
	border-radius: 4px;
	border: 1px solid var(--border-color);
	color: var(--text-primary)
}

.option-group input[type=range] {
	width: 100%;
	margin-bottom: 8px
}

.compare-image-button-container {
	text-align: center;
	margin: 20px 0
}

.image-result-container {
	margin-top: 30px;
	border-radius: 8px;
	display: none
}

.image-result-container h3 {
	margin-top: 0;
	margin-bottom: 15px
}

.image-result {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 20px
}

.image-result canvas,
.image-result img {
	max-width: 100%;
	max-height: 500px;
	object-fit: contain;
	border: 1px solid var(--border-color);
	border-radius: 4px
}

.image-diff-stats {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin-top: 20px
}

.dark-theme .image-preview,
.dark-theme .image-upload-area {
	background-color: #1f2937;
	border-color: #374151
}

.dark-theme .image-options,
.dark-theme .image-result-container {
	background-color: #1f2937
}

@keyframes highlight-pulse {

	0%,
	100% {
		opacity: .8
	}

	50% {
		opacity: 1
	}
}

.line-content.added,
.line-content.modified,
.line-content.removed {
	animation: 2s infinite highlight-pulse
}

.line-content.added::after,
.line-content.modified::after,
.line-content.removed::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	width: 4px
}

.legend-color.added,
.line-content.added::after {
	background-color: var(--success-color)
}

.legend-color.removed,
.line-content.removed::after {
	background-color: var(--danger-color)
}

.line-content.modified::after {
	background-color: var(--warning-color)
}

.line-highlight {
	animation: 2s ease-out forwards highlightPulse
}

.dark-theme .highlight-pulse,
.highlight-pulse {
	animation: 2s ease-out highlightPulse
}

.highlight-pulse {
	z-index: 15
}

.footer {
	margin-top: 3rem;
	padding: 2rem 0;
	border-top: 1px solid var(--border-color)
}

.footer-content {
	max-width: 800px;
	margin: 0 auto
}

.footer h2 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: var(--primary-color)
}

.footer h3 {
	font-size: 1.2rem;
	margin: 1.5rem 0 .75rem;
	color: var(--secondary-color)
}

.footer p {
	margin-bottom: 1rem;
	line-height: 1.6;
	font-size: .95rem
}

.footer ul {
	padding-left: 1.5rem;
	margin-bottom: 1.5rem
}

.footer li {
	margin-bottom: .5rem;
	line-height: 1.5
}

.dark-theme .footer {
	border-top-color: #374151
}

.dark-theme .footer h2 {
	color: #818cf8
}

.dark-theme .footer h3 {
	color: #a78bfa
}

.diff-nav-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, .1);
	color: #555;
	cursor: pointer;
	margin-left: 8px;
	font-size: 12px;
	transition: .2s;
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%)
}

.diff-nav-arrow:hover {
	background-color: rgba(0, 0, 0, .2);
	color: #000
}

@keyframes flash-highlight {
	0% {
		background-color: rgba(255, 255, 0, .5)
	}

	100% {
		background-color: transparent
	}
}

.flash-highlight {
	animation: 1s flash-highlight
}

.dark-theme .diff-nav-arrow {
	background-color: rgba(255, 255, 255, .1);
	color: #ccc
}

.footer-link:hover,
.social-links a:hover {
	color: var(--primary-color-dark)
}

.dark-theme .diff-nav-arrow:hover {
	background-color: rgba(255, 255, 255, .2);
	color: #fff
}

.line-content.added .diff-nav-arrow,
.line-content.modified .diff-nav-arrow,
.line-content.placeholder .diff-nav-arrow,
.line-content.removed .diff-nav-arrow {
	z-index: 10
}

.diff-legend {
	display: flex;
	gap: 1rem;
	margin-bottom: .75rem;
	font-size: .8rem
}

.legend-title {
	font-weight: 700;
	margin-right: 10px
}

.legend-item {
	display: flex;
	align-items: center;
	gap: .5rem
}

.legend-color {
	width: 1rem;
	height: 1rem;
	border-radius: .25rem
}

.line-content.removed::before {
	content: "−";
	color: red;
	font-weight: 700;
	margin-right: 5px
}

.line-content.added::before {
	content: "+";
	color: #0c0;
	font-weight: 700;
	margin-right: 5px
}

.text-line:has(.line-content.added),
.text-line:has(.line-content.removed) {
	background-color: rgba(255, 235, 235, .3);
	margin: 2px 0
}

.legend-color.modified {
	background-color: #ffc;
	border-left: 3px solid #fc0
}

.dark-theme .modal-content,
.legend {
	background-color: var(--light-gray)
}

.legend-text {
	font-size: .9em
}

.legend {
	display: flex;
	gap: 1rem;
	margin-top: .5rem;
	padding: .5rem;
	border-radius: .5rem;
	font-size: .8rem
}

.dark-theme .legend-color.added {
	background-color: rgba(16, 185, 129, .2);
	border: 1px solid #10b981
}

.dark-theme .legend-color.removed {
	background-color: rgba(239, 68, 68, .2);
	border: 1px solid #ef4444
}

.dark-theme .legend-color.modified {
	background-color: rgba(245, 158, 11, .2);
	border: 1px solid #f59e0b
}

.footer-nav {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin: 2rem 0
}

.footer-link {
	color: var(--primary-color);
	font-weight: 500;
	transition: color .3s
}

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, .5);
	z-index: 1000
}

.modal-content {
	position: relative;
	background-color: #fff;
	margin: 5% auto;
	padding: 2rem;
	width: 80%;
	max-width: 800px;
	border-radius: 1rem;
	max-height: 90vh;
	overflow-y: auto
}

.modal-content h2 {
	color: var(--text-color);
	margin-bottom: 1rem
}

.modal-content h3 {
	color: var(--text-color);
	margin: 1.5rem 0 .5rem
}

.modal-content p {
	margin: 1rem 0;
	line-height: 1.6
}

.modal-content ul {
	margin: 1rem 0;
	padding-left: 2rem
}

.modal-content li {
	margin: .5rem 0
}

.contact-info {
	margin: 2rem 0
}

.social-links {
	display: flex;
	gap: 1rem
}

.social-links a:hover {
	color: var(--primary-color)
}

.copyright {
	margin-top: 2rem;
	color: var(--dark-gray);
	font-size: .9rem
}

.dark-theme .modal-content {
	color: var(--text-color)
}

.contact-method h3,
.nav-link:hover,
.social-links a {
	color: var(--primary-color)
}

.tutorial-section {
	margin: 2rem 0;
	padding: 1.5rem;
	background: #fff;
	border-radius: 1rem;
	box-shadow: var(--card-shadow)
}

.tutorial-steps {
	display: grid;
	gap: 1.5rem;
	margin-top: 1rem
}

.tutorial-step {
	position: relative;
	padding: 1.5rem;
	background: var(--light-gray);
	border-radius: .5rem;
	transition: transform .3s
}

.tutorial-step:hover {
	transform: translateY(-3px)
}

.step-number {
	position: absolute;
	top: -15px;
	left: -15px;
	width: 30px;
	height: 30px;
	background: var(--primary-color);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700
}

.ad-container {
	width: 100%;
	max-width: 728px;
	margin: 1.5rem auto;
	padding: 1rem;
	background: #fff;
	border-radius: .5rem;
	box-shadow: var(--card-shadow);
	min-height: 90px
}

.header-nav {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-right: 20px
}

.nav-link {
	color: #fff;
	font-size: 17px;
	transition: color .3s
}

.contact-methods {
	display: grid;
	gap: 20px;
	margin-top: 20px
}

.contact-method {
	padding: 20px;
	background: var(--bg-secondary);
	border-radius: 8px
}

.contact-method h3 {
	margin-bottom: 15px
}

.contact-method i {
	margin-right: 8px
}

.social-links {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 10px
}

.social-links a {
	color: var(--text-color);
	font-size: 24px;
	transition: color .3s
}

/* Add to your CSS (web.css or inside <style> in index.html) */
.close-button {
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 1px 6px;
  cursor: pointer;
  float: right;
  margin: 10px 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  position: sticky 
}
.close-button:hover {
  background: #c0392b;
}