@font-face {
	font-family: 'thv2';
	src: url('../fonts/thv2.eot?8245619');
	src: url('../fonts/thv2.eot?8245619#iefix') format('embedded-opentype'),
		url('../fonts/thv2.woff?8245619') format('woff'),
		url('../fonts/thv2.ttf?8245619') format('truetype'),
		url('../fonts/thv2.svg?8245619#thv2') format('svg');
	font-weight: normal;
	font-style: normal;
}
.thicon {
	color: #ffffff;
	font-family: "thv2";
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	display: inline-block;
	line-height: 1em;
	margin-left: .2em;
	margin-right: .2em;
	speak: never;
	text-align: center;
	text-decoration: inherit;
	text-transform: none;
	width: 1em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
:root {
	--blue: #2196F3;
	--green: #4caf50;
	--red: #f44336;
	--bg-light: #f5f7fa;
	--bg-dark: #181a1b;
	--text-light: #222;
	--text-dark: #ddd;
	--card-light: #fff;
	--card-dark: #242627;
	--border-light: #ccc;
	--border-dark: #444;
}
body {
	margin: 0; padding: 0; font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	background: var(--bg-light);
	color: var(--text-light);
	transition: background-color 0.3s, color 0.3s;
	user-select: none;
}
body.dark {
	background: var(--bg-dark);
	color: var(--text-dark);
}
.dark .site-info {
    background-color: #000;
}
.dark.separate-containers .inside-article, .dark.separate-containers .comments-area, .dark.separate-containers .page-header, .dark.one-container .container, .dark.separate-containers .paging-navigation, .dark .inside-page-header{
	background-color: #000;
}
.topbar {
	max-width: 1300px;
	margin: 0 auto 10px;
	padding: 0 10px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.topbar > * {
	font-size: 14px;
}
#unifiedSearch {
	flex: 1;
	padding: 7px 12px;
	border-radius: 5px;
	border: 1px solid var(--border-light);
	color: inherit;
	background: inherit;
	transition: border-color 0.3s;
}
body.dark #unifiedSearch {
	border-color: var(--border-dark);
}
button, select {
	cursor: pointer;
	border: none;
	padding: 8px 14px;
	border-radius: 5px;
	background: var(--blue);
	color: white;
	transition: background-color 0.3s;
}
button:hover, select:hover {
	
}
#LoadJsonPopBox{
	background: #fff;
	border: 1px solid #0085fa;
	height: auto;
	left: 50%;
	padding: 30px;
	position: fixed;
	top: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	width: 450px;
	z-index: 9999999;
}
.dark #LoadJsonPopBox{
	background: #888;
	border: 1px solid #fff;
	color: #fff;
}

#LoadJsonPopBox lael{
    color: #009cf3;
	cursor: pointer;
    font-weight: bold;
    padding: 5px;
}
.dark #LoadJsonPopBoxlabel{
	
}
[name=eselection]{
	margin: 0 5px;
}
#PopBoxClose{
	font-size: 30px;
	font-weight: 600;
	color: red;
	position: absolute;
	top: 0px;
	right: 15px;
	cursor: pointer;
}
#loadFileInputLabel{
	background: #0099f3;
	color: #fff;
	display: none;
	margin: 15px auto;
	padding: 10px;
}
.dark #loadFileInputLabel{
	background: #38468b;
}
#loadFileInput{
	display: none;
	margin-top: 15px;
}
.json-container {
	display: flex;
	max-width: 1300px;
	margin: 0 auto 40px;
	gap: 12px;
	flex-wrap: wrap;
	user-select: text;
}
.editor-box {
	flex: 1 1 45%;
	background: var(--card-light);
	border-radius: 8px;
	border: 0px solid var(--border-light);
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	transition: background 0.3s, border-color 0.3s;
	position: relative;
	height: 370px;
}
body.dark .editor-box {
	background: var(--card-dark);
	border-color: var(--border-dark);
}
.editor-header {
	padding: 8px 12px;
	background: var(--blue);
	color: white;
	font-weight: 600;
	font-size: 16px;
	border-radius: 8px 8px 0 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	user-select: none;
}
.editor-controls {
    align-items: center;
	background: #015bab;
	border-bottom: 1px solid var(--border-light);
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: space-between;
	padding: 8px 12px;
	transition: background 0.3s, border-color 0.3s;
}
body.dark .editor-controls {
	background: #333;
	border-color: #333;
}
.editor-controls button {
	padding: 6px 12px;
	border-radius: 5px;
	border: none;
	background: transparent;
	color: white;
	cursor: pointer;
	font-size: 14px;
	user-select: none;
	transition: background-color 0.3s;
}
.editor-controls button:hover {
	background: #1769aa;
}
.jsoneditor {
	flex-grow: 1;
	height: 280px !important;
	border-radius: 0 0 8px 8px !important;
}
#compareSection {
	align-content: center;
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 56px;
	user-select: none;
	width: 48px;
}
#compareBtn {
	cursor: pointer;
	border-radius: 8px;
	color: white;
	font-weight: 600;
	font-size: 16px;
	box-shadow: 0 3px 8px rgba(0,0,0,0.15);
	transition: background-color 0.3s;
}
#compareBtn:hover {}
/* Diff highlight styles */
.jsoneditor-highlight-added {
	background-color: #d0f0c0 !important;
}
.jsoneditor-highlight-removed {
	background-color: #f0d0d0 !important;
	text-decoration: line-through;
}
/* Fullscreen styles */
.fullscreen {
	position: fixed !important;
	top: 5px !important;
	left: 5px !important;
	right: 5px !important;
	bottom: 5px !important;
	height: auto !important;
	z-index: 9999 !important;
	background: var(--card-light);
	box-shadow: 0 0 15px rgba(0,0,0,0.5);
	border-radius: 8px !important;
}
body.dark .fullscreen {
	background: var(--card-dark);
}

.admin-bar .fullscreen{
	top:30px!important;
}
.fullscreen .icon-resize-full-alt:before{
	content: '\e80e';
}
/* Tooltip */
[title] {
	position: relative;
}
[title]:hover::after {
	background: #fbe6aa;
	border-radius: 4px;
	bottom: 125%;
	color: #000;
	content: attr(title);
	font-size: 14px;
	left: 50%;
	opacity: 0.9;
	padding: 6px 10px;
	pointer-events: none;
	position: absolute;
	transform: translateX(-50%);
	white-space: nowrap;
	z-index: 10000;
}
/* Responsive */
@media (max-width: 1300px) {
	.json-container {
		flex-direction: column;
	}
	.editor-box {
		width: 100% !important;
		height: 400px;
		margin-bottom: 20px;
	}
	#compareSection {
		width: 100%;
		margin-top: 0;
		margin-bottom: 20px;
		justify-content: center;
	}
}
/* Load JSON dropdown */
#loadJsonDropdown {
	display: inline-block;
	margin: 10px 0;
	position: relative;
}
#loadJsonMenu {
	background: var(--card-light);
	border: 1px solid var(--border-light);
	border-radius: 5px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
	display: none;
	left: 0;
	min-width: 180px;
	position: absolute;
	top: 35px;
	z-index: 1000;
}
body.dark #loadJsonMenu {
	background: var(--card-dark);
	border-color: var(--border-dark);
}
#loadJsonMenu button {
	width: 100%;
	border: none;
	background: transparent;
	color: inherit;
	padding: 10px;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	border-bottom: 1px solid var(--border-light);
}
body.dark #loadJsonMenu button {
	border-color: var(--border-dark);
}
#loadJsonMenu button:last-child {
	border-bottom: none;
}
#loadJsonDropdown:hover #loadJsonMenu {
	display: block;
}
/* Input for URL */
#loadUrlInput {
	width: calc(100% - 24px);
	padding: 8px 10px;
	margin: 6px 10px 10px;
	border-radius: 5px;
	border: 1px solid var(--border-light);
	font-size: 14px;
}
#loadUrlInput:focus {
	outline: 1px solid #0085fa;
}
body.dark #loadUrlInput {
	background: var(--card-dark);
	border-color: var(--border-dark);
	color: var(--text-dark);
}
label {
	cursor: pointer;
}
.jsoneditor-poweredBy{
	display: none;
}
.dark .jsoneditor-menu{
	background-color: #444!important;
    border-bottom: 1px solid #444!important;
}
.dark .jsoneditor{
	border: thin solid #444!important;
}
.jsoneditor-contextmenu .jsoneditor-menu button{
	background: #0085fa;
    border-radius: 0;
    color:#fff;
}
.jsoneditor-contextmenu .jsoneditor-menu button:focus, .jsoneditor-contextmenu .jsoneditor-menu button:hover{
    background-color: #0268bf;
	color: #fff;
}
.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected, .jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:focus, .jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:hover{
	background-color: #f5f5f5;
	border-radius: 0;
	color: #1a1a1a;
}
.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected, .jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:focus, .jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:hover {
    color: #fff;
    background-color: #005dab;
    border-radius: 0;
}
.dark .jsoneditor-contextmenu .jsoneditor-menu button{
	background: #999;
    border-radius: 0;
    color:#fff;
}
.dark .jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected, .dark .jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:focus, .dark .jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:hover{
    background-color: #777;
	color: #fff;
}
.dark .jsoneditor-contextmenu .jsoneditor-menu button:focus, .dark .jsoneditor-contextmenu .jsoneditor-menu button:hover{
	background-color: #666;
	color: #fff;
}
.dark div.jsoneditor-tree, .dark textarea.jsoneditor-text, .dark .ace_editor.ace-tm{
	background: #cfcfcf;
}
.dark .ace-tm .ace_gutter{
	background: #c0c0c0;
    color: #000000;
}

.midbtn{
	background: none;
    border: 1px solid var(--green);
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    height: 35px;
    margin:10px;
	padding: 5px;
    width: 35px;
}
.midbtn .thicon{
	color:var(--green);
	font-size: 20px;
	margin-left: -5%;
}
.thicon.icon-moon-inv {
    color: #000;
}
.thicon.icon-sun-1, .thicon.icon-sun {
    color: #fbff64;
}
.jsoneditor table, .jsoneditor td, .jsoneditor th, .jsoneditor tr {
    border-width: 0 !important;
}
.jsoneditor tr table {
    margin: 0;
}