body {
	font-size: 10pt;
	background-color: #e9edf3; /* THEME v7 */
	color: #111827;            /* THEME v7 */
}

.veo {
	position: fixed;
	top: 0px;
	left: 0px;
	right: 0px;
	bottom: 0px;
	display: none;
}

.editor {
	position: fixed;
	top: var(--topbar-h);
	left: 0px;
	width: 50%;
	bottom: 0px;

	/* THEME v7 (vizuelno) */
	background: #ffffff;
	background-image: none !important; /* ukloni grid */
	border: none !important;
	box-shadow: 0 20px 45px rgba(0,0,0,.10);
}

.editor .kont {
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	padding: 1em;
	overflow: auto;
}

svg {

}

.korak {
	transform: translate(20 20);
}

/* Blokovi (THEME v7) */
.korak rect, .korak polygon {
	fill: #f3f4f6;
	stroke: #374151;
	stroke-width: 2px;
}

.korak rect.kveo, .korak polygon.kveo {
	opacity: 0;
	/*
		fill: transparent;
		stroke: transparent;
		fill: rgba(255,255,255, 0.01);
		stroke: rgba(0,0,0, 0.01);
		stroke-width: 2px;
	*/
}

.korak:hover>rect, .korak:hover>polygon {
	fill: #e5e7eb; /* THEME v7 */
}

.korak:hover>rect.kveo, .korak:hover>polygon.kveo {
	opacity: 0;
	/*
		fill: transparent;
	*/
}

.korak text {
	fill: #111827;     /* THEME v7 */
	font-family: monospace;
	font-size: 12pt;
	font-weight: 700;  /* THEME v7 */
	text-anchor: middle;
	cursor: default;
}

.korak text.label {
	fill: #4b5563;     /* THEME v7 */
	font-family: sans-serif;
	font-size: 8pt;
	font-weight: bold;
	text-anchor: middle;
}

.korak line, .korak polyline {
	stroke: #374151;   /* THEME v7 */
	stroke-width: 2px;
}

/* tačke za dodavanje (THEME v7) */
.korak circle {
	fill: #2563eb;
	fill-opacity: 0;
}

.korak circle:hover {
	fill-opacity: .95;
}

.algLabel {
	display: block;
	position: fixed;
	top: 0px;
	left: 0px;
	max-width: 300px;
	font-family: sans-serif;
	font-size: 8pt;
	font-weight: bold;
	text-align: left;
	padding: 3px 5px 5px 5px;
	white-space: pre-wrap;

	/* THEME v7 (vizuelno) */
	background: #ffffff;
	border: 2px solid red;
	color: #111827;
	box-shadow: 0 14px 34px rgba(0,0,0,.12);

	border-radius: 5px;
}

.editMenu {
	display: block;
	position: absolute;
	background-color: #000;
	border: 6px solid #fff;
	box-shadow: 2px 2px 4px #000;
	transition-property: top;
	transition-duration: 0.5s;
	z-index: 100;
}

.menuTop {
	top: -47px;
	right: 40px;
	border-top: 0px;
	border-radius: 0px 0px 10px 10px;
}

.menuTop:hover {
	top: 0px;
}

.editPanel {
	display: none;
	position: fixed;
	top: 0px;
	left: 0px;
	background-color: #fff;
	border: 6px solid #fff;
	border-radius: 6px;
	box-shadow: 1px 1px 2px #000;
}

.editPanelTxt {
	background-color: #ffd;
	color: #67d;
	font: 12pt monospace;
	font-weight: bold;
	border: 0px none transparent;
	outline: none;
	width: 20em;
	padding: 2px 5px;
}

.editPanelTxt:focus {
	border: 0px none transparent;
	outline: none;
}

.editPanelArea {
	background-color: #ffd;
	color: #d76;
	font: 10pt monospace;
	font-weight: bold;
	border: 0px;
	width: 20em;
	height: 5em;
	padding: 2px 5px;
	margin: 0px;
}

.editPanelGumb {
	display: inline-block;
	width: 40px;
	height: 40px;
	background-color: #ddd;
	background-repeat: no-repeat;
	background-position: center center;
	border: 1px solid #bbb;

	font: 8pt sans-serif;
	padding: 4px;
}

.editPanelGumb:hover {
	background-color: #eee;
}

.editMenu .editPanelGumb {
	background-color: #000;
	border-style: none;
	border-radius: 8px;
	opacity: 0.6;
}

.editMenu .editPanelGumb:hover {
	opacity: 1.0;
}

.exporter {
	display: none;
	position: fixed;
	top: 50px;
	bottom: 50px;
	left: 50px;
	right: 50px;
	background-color: #ccc;
	box-shadow: 2px 2px 4px #000;
	border: 1px solid #000;
}

.exporter textarea {
	display: block;
	position: absolute;
	top: 1%;
	left: 1%;
	width: 98%;
	height: 90%;
	border: 1px solid #000;
	color: #88e;
	font: 9pt monospace;
	font-weight: bold;
	padding: 8px;
	box-sizing: border-box;
}

.exporter input {
	position: absolute;
	bottom: 5px;
	right: 5px;
}

/*
    Exec
*/

.konzola {
	position: fixed;
	top: var(--topbar-h);
	left: 50%;
	width: 25%;
	height: 40%;
	box-sizing: border-box;

	/* THEME v7 (vizuelno) */
	background: #2f3a4a;
	border: none !important;
	box-shadow: 0 20px 45px rgba(0,0,0,.25);

	font: 10pt ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-weight: bold;
	color: #f3f4f6;
}

.konzola .kont {
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	padding: 1em;
	overflow: auto;
}

.konzola .err {
	/* THEME v7 */
	background: rgba(239,68,68,.20);
	color: #fecaca;
	border-left: 4px solid #ef4444;
	padding-left: 10px;
}

.konzola .err b {
	color: #fdb;
}

.konzola input {
	background-color: transparent;
	color: #ffffff; /* THEME v7 */
	font: 9pt ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-weight: 600; /* THEME v7 */
	border: 0px none transparent;
	outline: none;
}

.repo {
	position: fixed;
	top: var(--topbar-h);
	left: 75%;
	right: 0px;
	height: 40%;
	box-sizing: border-box;

	/* THEME v7 (vizuelno) */
	background: #f6f8fb;
	border: none !important;
	box-shadow: 0 20px 45px rgba(0,0,0,.08);

	overflow: auto;
	padding: 8px;

	color: #111827;
	font: 11pt system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	font-weight: bold;
}

.repo td {
	padding: 0px 5px 2px 5px;
	border: 1px solid #000;
}

.repo td:last-child {
	background: #e5e7eb; /* THEME v7 */
	border-radius: 2px;
	font-size: 10pt;
	font-weight: 700;
	padding: 0px 5px;
	border: 1px solid #000;
	color: #111827;
}

.grafika {
	position: fixed;
	top: 40%;
	left: 50%;
	right: 0px;
	bottom: 0px;
	background-color: #333;
	border: 1px solid #000;
	padding-left: 1px;
}

/*
.grafika canvas {
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
}
*/

#hveo{
	position: fixed;
	inset: 0;
	z-index: 3000; /* mora iznad topbara */
	display: none;
	background-color: rgba(0,0,0, 0.2);
}

/* help panel */
#help{
	position: fixed;
	top: calc(var(--topbar-h) + 12px);  /* da počne ispod topbara */
	bottom: 20px;
	left: 50%;
	right: 0;
	z-index: 3001; /* iznad #hveo */
	background-color: #f6f8fb;
	color: #226;
	font-family: sans-serif;
	border: 5px solid #fff;
	border-right: 0px;
	border-radius: 20px 0px 0px 20px;
	padding: 10px;
	box-shadow: -1px 0px 6px #000;
	overflow-y: scroll;
	display: none;
}

#help>p, #help>div, #help>ul {
	margin-left: 20px;
}

#help h1 {
	font-size: 1.8em;
	text-align: center;
	margin-left: 0px;
}

#help h2 {
	font-size: 1.2em;
	margin-left: 0px;
}

#help table {
	border-spacing: 0px;
	border-collapse: collapse;
	width: 100%;
}

#help td {
	border: 1px solid #000;
	padding: 0px 4px;
}

#help td.s{
	font-weight: bold;
	color: #44c;
}

#help th {
	border: 1px solid #000;
	padding: 0px 2px;
	background-color: #eec;
}

/* ==============================
   TOPBAR v2 (light + rounded + no overlap)
   ============================== */

:root{
	--topbar-h: 56px; /* fallback dok JS ne izmjeri */
}

/* Topbar */
#topbar{
	position: fixed;
	top: 0; left: 0; right: 0;
	min-height: 48px;
	padding: 6px 10px;

	display: flex;
	align-items: center;
	gap: 8px;

	/* THEME v7 (vizuelno) */
	background: rgba(255,255,255,.95);
	border-bottom: none;
	box-shadow: 0 6px 20px rgba(0,0,0,.07);

	backdrop-filter: blur(8px);
	z-index: 2000;
}

/* Dugmad u topbar-u (tvoja .editPanelGumb su icon buttons) */
#topbar .editPanelGumb{
	width: 38px;
	height: 38px;
	flex: 0 0 auto;

	background-color: #fff;            /* umjesto crne */
	border: 1px solid #d1d5db;
	border-radius: 999px;              /* okruglo */
	opacity: 1;

	/* centriranje background-image ikonice */
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px 24px;

	/* ukloni “text baseline” pomjeranje */
	line-height: 1;
}

/*
#topbar #btnTasks,
#topbar #edt-help{
	background-size: 32px 32px;
}
*/

#topbar .editPanelGumb:hover{
	background-color: #eef2ff;
	border-color: #c7d2fe;
	background-size: 28px 28px;
}

#topbar .editPanelGumb:active{
	transform: translateY(1px);
}

/* Separator ako ga ubaciš u JS (vidi dole) */
#topbar .tb-sep{
	width: 1px;
	height: 26px;
	background: #d1d5db;
	margin: 0 6px;
	flex: 0 0 1px;
}

/* Isključi stara “menuTop” dva toolbara */
.editMenu.menuTop{ display:none !important; }

/* ===== Desktop layout ===== */
.grafika{ display: none !important; }
.repo{ display: block !important; }

.editor{
	left: 0;
	width: 60%;
	bottom: 0;
}

.konzola{
	left: 60%;
	width: 40%;
	height: 55%;
	bottom: auto;
}

.repo{
	left: 60%;
	width: 40%;
	top: calc(var(--topbar-h) + 55%);
	height: calc(100% - var(--topbar-h) - 55%);
	bottom: 0;
}

/* ===== Mobile layout ===== */
@media (max-width: 900px){
	/* Bolje: ne wrap nego horizontal scroll (nema rasta visine) */
	#topbar{
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.editor{
		left: 0;
		width: 100%;
		bottom: 38%;
	}

	.konzola{
		left: 0;
		width: 100%;
		height: 38%;
		bottom: 0;
		top: auto;
		border-top: 2px solid #000; /* može ostati kao separator */
	}

	.repo{ display: none !important; }

	#topbar .editPanelGumb{
		width: 42px;
		height: 42px;
		background-size: 20px 20px;
	}
}

/* Input u konzoli čitljiv */
.konzola input{ font-size: 11pt; }

/* SweetAlert2 iznad topbara */
.swal2-container {
	z-index: 99999 !important;
}

/* Lijepi tooltip za topbar dugmad (koristi data-tip) */
#topbar { overflow: visible; }

#topbar .editPanelGumb{
	position: relative;
}

#topbar .editPanelGumb[data-tip]:hover::after{
	content: attr(data-tip);
	position: absolute;
	left: 50%;
	top: calc(100% + 8px);
	transform: translateX(-50%);
	background: rgba(17,24,39,.95);
	color: #fff;
	padding: 6px 10px;
	border-radius: 10px;
	font-size: 12px;
	white-space: nowrap;
	pointer-events: none;
	z-index: 99999;
}

#topbar .editPanelGumb[data-tip]:hover::before{
	content: "";
	position: absolute;
	left: 50%;
	top: calc(100% + 2px);
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-bottom-color: rgba(17,24,39,.95);
	pointer-events: none;
	z-index: 99999;
}

/* =========================
   TASKS MODAL (custom)
   ========================= */
.tmodal{
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}
.tmodal[aria-hidden="false"]{ display:block; }

.tmodal-backdrop{
	position:absolute;
	inset:0;
	background: rgba(0,0,0,.45);
}

.tmodal-dialog{
	position: relative;
	width: min(960px, calc(100vw - 24px));
	height: min(82vh, calc(100vh - 24px));
	margin: 10vh auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0,0,0,.35);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.tmodal-header{
	padding: 14px 16px;
	background: linear-gradient(135deg, #2563eb, #1e40af);
	color: #fff;
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	border-bottom: 1px solid rgba(255,255,255,.15);
	flex: 0 0 auto;
	position: relative;
	z-index: 5;
}
.tmodal-header > div {
	flex: 1;
}
.tmodal-title{
	font-size: 21px;
	font-weight: 900;
	letter-spacing: .2px;
}
.tmodal-sub{
	font-size: 17px;
	margin-top: 2px;
	color: rgba(255,255,255,0.88);
	display: block;
	width: 100%;
	text-align: center;
}

.tmodal-x{
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: rgba(255,255,255,0.16);
	color: #fff;
	cursor: pointer;
	font-size: 24px;
	line-height: 36px;
}
.tmodal-x:hover{ background: rgba(255,255,255,0.26); }

.tmodal-body{
	padding: 0;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	background: #fff;
}

/* =========================
   TASKS TABS (colored)
   ========================= */
#tasksModal .tasks-tabs{
	display:flex;
	gap:10px;
	flex-wrap:wrap;
	margin-bottom:0;
	position: sticky;
	top: 0;
	z-index: 4;
	background: #fff;
	padding: 12px 14px 10px;
	border-bottom: 1px solid #e5e7eb;
	box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

#tasksModal .tasks-list{
	padding: 12px 14px 14px;
	background: #fff;
}

#tasksModal .tasks-tab{
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	padding: 8px 12px;
	border-radius: 999px;
	cursor:pointer;
	font-weight: 800;
	font-size: 13px;
	transition: transform .08s ease, background .15s ease, border-color .15s ease;
}

#tasksModal .tasks-tab:hover{
	background: #eef2ff;
	border-color: #a5b4fc;
	transform: translateY(-1px);
}

/* boje po kategorijama */
#tasksModal .tasks-tab[data-cat="linijski"]{
	background: #ecfeff;
	border-color: #67e8f9;
}
#tasksModal .tasks-tab[data-cat="linijski"]:hover{
	background: #cffafe;
	border-color: #22d3ee;
}

#tasksModal .tasks-tab[data-cat="razgranati"]{
	background: #fef9c3;
	border-color: #fde047;
}
#tasksModal .tasks-tab[data-cat="razgranati"]:hover{
	background: #fef08a;
	border-color: #facc15;
}

#tasksModal .tasks-tab[data-cat="ciklicni"]{
	background: #dcfce7;
	border-color: #86efac;
}
#tasksModal .tasks-tab[data-cat="ciklicni"]:hover{
	background: #bbf7d0;
	border-color: #4ade80;
}

/* ACTIVE */
#tasksModal .tasks-tab.active{
	background: #111827;
	border-color: #111827;
	color: #fff;
}

/* =========================
   TASK CARDS (bigger text)
   ========================= */
#tasksModal .task-card{
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 12px 14px;
	margin-bottom: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s ease, transform .08s ease, box-shadow .15s ease;
}
#tasksModal .task-card:hover{
	border-color: #9ca3af;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

#tasksModal .task-title{
	font-weight: 900;
	margin-bottom: 6px;
	font-size: 17px;
	color: #111827;
}
#tasksModal .task-text{
	margin: 0;
	color: #374151;
	font-size: 16px;
	line-height: 1.35;
}
/* =========================================
   THEME v7.1 – Unified Professional Palette
   (samo boje/kontrast – bez layout promjena)
   ========================================= */
:root{
  --bg: #e9edf3;
  --panel: #ffffff;
  --panel-2: #f6f8fb;
  --ink: #111827;
  --muted: #4b5563;

  --stroke: #374151;
  --stroke-soft: #cbd5e1;

  --accent: #2563eb;
  --accent-2: #1e40af;

  --shadow-1: 0 20px 45px rgba(0,0,0,.10);
  --shadow-2: 0 20px 45px rgba(0,0,0,.08);
  --shadow-3: 0 20px 45px rgba(0,0,0,.25);
}

/* base */
body{
  background-color: var(--bg);
  color: var(--ink);
}

/* topbar */
#topbar{
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 20px rgba(0,0,0,.07);
}
#topbar .editPanelGumb{
  background-color: #fff;
  border-color: var(--stroke-soft);
}
#topbar .editPanelGumb:hover{
  background-color: #eef2ff;
  border-color: #c7d2fe;
}
#topbar .tb-sep{ background: var(--stroke-soft); }

/* tooltips */
#topbar .editPanelGumb[data-tip]:hover::after{
  background: rgba(17,24,39,.94);
  color: #fff;
}
#topbar .editPanelGumb[data-tip]:hover::before{
  border-bottom-color: rgba(17,24,39,.94);
}

/* editor */
.editor{
  background: var(--panel);
  box-shadow: var(--shadow-1);
  border-color: transparent !important; /* “bez bordera” vizuelno */
}

/* steps */
.korak rect, .korak polygon{
  fill: #f3f4f6;
  stroke: var(--stroke);
}
.korak:hover>rect, .korak:hover>polygon{
  fill: #e5e7eb;
}
.korak text{ fill: var(--ink); }
.korak text.label{ fill: var(--muted); }
.korak line, .korak polyline{ stroke: var(--stroke); }
.korak circle{ fill: var(--accent); }

/* algLabel (ukloni crveni border i uklopi u temu) */
.algLabel{
  background: #ffffff;
  color: var(--ink);
  border-color: #dbe3ee; /* umjesto crvene */
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

/* console */
.konzola{
  background: #2f3a4a;
  color: #f3f4f6;
  box-shadow: var(--shadow-3);
}
.konzola input{ color: #ffffff; }
.konzola .err{
  background: rgba(239,68,68,.18);
  color: #fecaca;
  border-left-color: #ef4444;
}

/* repo */
.repo{
  background: var(--panel-2);
  color: var(--ink);
  box-shadow: var(--shadow-2);
}
.repo td{
  /*border-color: transparent;          vizuelno bez “crnih” linija */
  border: 1px solid #bec0c4;  /* suptilno */
  border-radius: 2px;
}
.repo td:last-child{
  background: #e5e7eb;
  color: var(--ink);
  /*border-color: transparent;*/
}

/* help */
#help{
  background-color: var(--panel-2);
  color: #1f2a44;
  box-shadow: -1px 0 16px rgba(0,0,0,.20);
  border-color: rgba(255,255,255,.9);
}
#help td, #help th{
  border-color: #cbd5e1;
}
#help th{
  background-color: #eef2ff;
}

/* hveo */
#hveo{ background-color: rgba(17,24,39,.18); }

/* SweetAlert layering ok */
.swal2-container{ z-index: 99999 !important; }

/* =========================================
   TASKS – uklopljeno u temu
   ========================================= */
.tmodal-backdrop{
  background: rgba(17,24,39,.45);
}
.tmodal-dialog{
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
}
.tmodal-header{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-bottom-color: rgba(255,255,255,.15);
}
.tmodal-title{ color: #fff; }
.tmodal-sub{ color: rgba(255,255,255,.88); }
.tmodal-x{
  background: rgba(255,255,255,.16);
  color: #fff;
}
.tmodal-x:hover{ background: rgba(255,255,255,.26); }

/* tabs – manje “šareni”, više IDE */
#tasksModal .tasks-tabs{ background: var(--panel); }

#tasksModal .tasks-tab{
  background: #f3f4f6;
  border-color: #d1d5db;
  color: var(--ink);
}
#tasksModal .tasks-tab:hover{
  background: #eef2ff;
  border-color: #c7d2fe;
}

/* suptilne nijanse po kategoriji (u istom tonu) */
#tasksModal .tasks-tab[data-cat="linijski"]{
  background: #eef2ff;
  border-color: #c7d2fe;
}
#tasksModal .tasks-tab[data-cat="razgranati"]{
  background: #eff6ff;
  border-color: #bfdbfe;
}
#tasksModal .tasks-tab[data-cat="ciklicni"]{
  background: #eefbf6;
  border-color: #bbf7d0;
}

#tasksModal .tasks-tab.active{
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* cards */
#tasksModal .task-card{
  background: #ffffff;
  border-color: #e5e7eb;
}
#tasksModal .task-card:hover{
  border-color: #9ca3af;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}
#tasksModal .task-title{ color: var(--ink); }
#tasksModal .task-text{ color: #374151; }
/* =====================================
   FINAL OVERRIDE – Calm IDE Modal
   ===================================== */

/* MODAL HEADER – ukloni drečavi plavi */
.tmodal-header{
  background: #1f2937 !important;   /* tamni slate */
  color: #f9fafb !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.tmodal-title{
  color: #f9fafb !important;
}

.tmodal-sub{
  color: rgba(255,255,255,.75) !important;
}

/* X dugme */
.tmodal-x{
  background: rgba(255,255,255,.10) !important;
  color: #ffffff !important;
}
.tmodal-x:hover{
  background: rgba(255,255,255,.18) !important;
}

/* BACKDROP malo mekši */
.tmodal-backdrop{
  background: rgba(15,23,42,.55) !important;
}

/* =====================================
   TABOVI – bez šarenih boja
   ===================================== */

#tasksModal .tasks-tab{
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
  color: #111827 !important;
}

#tasksModal .tasks-tab:hover{
  background: #e5e7eb !important;
  border-color: #cbd5e1 !important;
}

/* ukloni stare kategorijske boje */
#tasksModal .tasks-tab[data-cat="linijski"],
#tasksModal .tasks-tab[data-cat="razgranati"],
#tasksModal .tasks-tab[data-cat="ciklicni"]{
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

/* ACTIVE TAB – profesionalni tamni */
#tasksModal .tasks-tab.active{
  background: #1f2937 !important;
  border-color: #1f2937 !important;
  color: #ffffff !important;
}

/* CARD hover malo suptilniji */
#tasksModal .task-card:hover{
  border-color: #9ca3af !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.10) !important;
}
.iconCircle{
	display: inline-flex;
	align-items: center;
	justify-content: center;

	border-radius: 999px;
	background: #fff;
	border: 1px solid #d1d5db;

	padding: 8px;     /* ovo pravi prostor oko slike */
}

.iconImg{
	width: 30px;
	height: 30px;
	object-fit: contain;
	display: block;
}
#taskHintBtn{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 40;

  width: 38px;
  height: 38px;
  display: none;

  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  background-color: rgba(255,255,255,.92);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.10);

  transition:
    transform .15s ease,
    background-color .15s ease,
    border-color .15s ease,
    background-size .15s ease,
    box-shadow .15s ease;
}

#taskHintBtn:hover{
  background-color: #eef2ff;
  border-color: #c7d2fe;
  background-size: 30px 30px; /* ikonica malo poraste */
}

#taskHintBtn:active{
  transform: translateY(1px);
}
#taskHintBtn[data-tip]:hover::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  background: rgba(17,24,39,.95);
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 99999;
}

#taskHintBtn[data-tip]:hover::before{
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(17,24,39,.95);
  pointer-events: none;
  z-index: 99999;
}
.hintModal{
  position: fixed;
  inset: 0;
  z-index: 5000;
}

.hintBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.hintDialog{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 32px));
  max-height: 82vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 20px;
}

.hintHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hintTitle{
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.hintClose{
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.hintBody{
  color: #374151;
  font-size: 18px;
  line-height: 1.65;
  }
 .hintBody,
.hintBody .mjx-chtml {
  font-family: Cambria, "Cambria Math", "Times New Roman", serif !important;
}
/*.hintBody{
  color: #374151;
  font-size: 16px;
  line-height: 1.65;
  font-family: Arial, sans-serif;
}

.hintBody mjx-container{
  font-family: "Cambria Math", Cambria, "Times New Roman", serif !important;
}*/