* {
	margin: 0;
	padding: 0;
}

#video {
	position: absolute;
	overflow: hidden;
	right: 0;
	bottom: 0;
	min-width: 100%;
	min-height: 100%;
}

body {
	/* background: url("https://raw.githubusercontent.com/purnamayasa7/Images/main/Background.png") no-repeat center center fixed; */
	background-size: cover;
	font-family: "Segoe UI", Arial, sans-serif;
	overflow-x: hidden;
	overflow-y: hidden;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

#name {
	position: absolute;
	background-color: rgb(255, 255, 255);
	width: fit-content;
	opacity: 0;
	border-radius: 5px;
	border: 2px solid #9ac8e4;
	padding: 10px 20px;
	font-size: 1.3rem;
	z-index: 2400;
}

#timeCont {
	position: absolute;
	background-color: white;
	width: fit-content;
	opacity: 0;
	font-size: 1.5rem;
	padding: 5px 5px;
	border-radius: 5px;
	border: 3px solid #006db3;
	z-index: 1000;
}

svg {
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 1s ease, transform 1s ease;
}

svg.loaded {
	opacity: 1;
	transform: scale(1);
}

svg path {
	position: absolute;
	transition: stroke 0.3s ease, stroke-width 0.3s ease;
	cursor: pointer;
}

path:hover {
	stroke: #ffa07a;
	stroke-width: 6;
}

.logo {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-top: 10px;
	width: 6%;
}

.text1 {
	font-family: "Arial", Arial, sans-serif;
	text-align: left;
	color: black;
	margin-bottom: 0px;
	margin-top: 5px;
	margin-left: 5px;
	font-size: 6px;
}

.text2 {
	font-family: "Arial", Arial, sans-serif;
	text-align: left;
	color: #006db3;
	margin-top: -5px;
	margin-bottom: 0px;
	font-size: 6px;
}

.zoom {
	transform: scale(1.1);
	transform-origin: center;
	transform-box: fill-box;
	transition: transform 0.3s ease;
}

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.3);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 999;
}

.popup-box {
	position: relative;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(0px);
	padding: 5px;
	border-radius: 12px;
	width: 40%;
	max-width: 700px;
	text-align: center;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup-overlay.show .popup-box {
	opacity: 1;
	transform: scale(1);
}

.popup-box img {
	width: 9%;
	height: auto;
	border-radius: 10px;
	margin: 15px auto;
}

.popup-box h3 {
	margin-bottom: 10px;
}

.popup-box p {
	font-size: 16px;
	color: #333;
}

.close-btn {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	color: #333333;
	font-size: 24px;
	border: none;
	cursor: pointer;
}

.close-btn:hover {
	color: crimson;
}

.popup-buttons {
	margin-top: 10px;
	margin-bottom: 10px;
	display: flex;
	justify-content: center;
	gap: 15px;
}

.popup-buttons button {
	padding: 10px 20px;
	font-size: 14px;
	border: none;
	border-radius: 8px;
	background-color: #007bff;
	color: white;
	cursor: pointer;
	transition: 0.3s ease;
}

.popup-buttons button:hover {
	background-color: #0056b3;
}

.sidebar {
	position: fixed;
	top: 0;
	right: -400px;
	width: 300px;
	height: 94%;
	background: url("https://raw.githubusercontent.com/purnamayasa7/Images/main/sidebar.png")
		no-repeat right center;
	background-size: cover;
	background-color: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(6px);
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
	transition: right 0.4s ease;
	z-index: 1000;
	padding: 20px;

	border-top-left-radius: 16px;
	border-bottom-left-radius: 16px;
	overflow-y: auto;
}

.sidebar h3 {
	color: #0357ad;
	font-size: 18px;
	font-weight: bold;
}

.sidebar.show {
	right: 0;
}

.sidebar-header {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 15px;
}

.sidebar-header img {
	height: 40px;
	object-fit: contain;
}

.open-sidebar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 45px;
	padding: 0 12px;

	margin-top: 10px;
	background: #3498db;
	border: none;
	color: white;
	border-radius: 6px;
	cursor: pointer;
}

.open-sidebar-btn img {
	height: 100%;
	/* otomatis menyesuaikan, tetap di tengah */
	width: auto;
	/* supaya proporsional */
	object-fit: contain;
	transition: transform 0.3s ease-in-out;
}

.open-sidebar-btn:hover img {
	transform: scale(1.5);
}

.close-sidebar {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #333333;
}

.close-sidebar:hover {
	color: crimson;
}

/* ASN BOX */
.info-box.total {
	margin-top: 20px;
	background: #ffcc66;
	padding: 5px;
	border-radius: 10px;
	text-align: center;
	margin-bottom: 10px;
	height: 180px;
}

.info-box h3 {
	font-size: 30px;
	font-weight: bold;
}

/* Box chart */
.chart-box {
	margin-top: 10px;
	display: flex;
	justify-content: center;
	gap: 20px;
}

.chart-container {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.chart-container canvas {
	width: 70px !important;
	height: 70px !important;
}

.chart-container .label {
	margin-top: 8px;
	font-weight: bold;
	font-size: 14px;
}

.chart-container .label span {
	display: block;
	font-weight: normal;
	font-size: 10px;
	color: #333;
}

/* Box Gender */
.gender-box {
	background: #ffcc66;
	padding: 10px;
	border-radius: 12px;
	margin-top: 15px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gender-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #e67e22;
	border-radius: 25px;
	padding: 8px 12px;
	margin: 6px 0;
}

.gender-img {
	width: 40px;
	height: auto;
}

.gender-info {
	text-align: center;
	flex: 1;
}

.gender-info h3 {
	margin: 0;
	font-size: 20px;
	font-weight: bold;
}

.gender-info p {
	margin: 0;
	font-size: 14px;
}

.gender-icon {
	font-size: 28px;
	font-weight: bold;
	margin-left: 10px;
}

.gender-h3 {
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	margin-bottom: 10px;
}

.popup-right {
	position: fixed;
	top: 10px;
	bottom: 10px;
	right: 10px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	border-radius: 16px;
	padding: 20px;
	width: 300px;
	height: 90vh;
	opacity: 0;
	pointer-events: none;
	transform: translateX(100%);
	transition: transform 0.4s ease, opacity 0.4s ease;
}

.popup-right.show {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}

.close-btn-popupright {
	position: absolute;
	top: 10px;
	right: 10px;
	background: transparent;
	border: none;
	font-size: 20px;
	cursor: pointer;
}

.close-btn-.close-btn-popupright {
	background: #c0392b;
}

footer {
	font-family: "Arial", Tahoma, Geneva, Verdana, sans-serif;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: #03a9f4;
	color: #fff;
	text-align: center;
	padding: 8px 0;
	font-size: 12px;
	z-index: 2500;
}

h1{
	display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.header {
	display: flex;
	align-items: center;
	padding: 5px;
}

.logo {
	width: 4%;
	margin: 5px;
	margin-left: 5px;
}

.logov2 {
	width: 80px;
	margin: 5px;
	margin-left: 5px;
}

.divider {
	width: 2px;
	height: 50px;
	background-color: black;
	margin: 0 5px;
}

body .header {
	position: fixed;
	display: flex;
	top: 0;
	left: 0;
	z-index: 3000;
}

#top_container_overlay {
	width: 100%;
	height: 100%;
	position: fixed;
	inset: 0;
	display: block;
	padding: 20px;
	overflow: hidden;
	z-index: 2500;
	box-sizing: border-box;
	transition: all 0.25s ease-in;
	opacity: 0;
	pointer-events: none;
}

#top_container_overlay.show {
	opacity: 1;
	pointer-events: all;
}

#tco_header {
	position: relative;
	z-index: 2600;
}

#tco_close_icon {
	width: 100%;
	padding: 5px;
	text-align: center;
	cursor: pointer;
	font-size: 1.5rem;
	font-weight: 700;
}

#top_container_overlay #tco_background {
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	display: block;
	z-index: 2550;
	background: linear-gradient(to right, #f1eeffd1, #6653ff4a);
	transition: all 0.25s ease-in;
	opacity: 0;
	pointer-events: none;
}

#top_container_overlay.show #tco_background {
	opacity: 1;
	pointer-events: all;
}

#top_container_overlay #tco_content {
	padding-top: 50px;
	height: auto;
	position: relative;
	display: block;
	z-index: 2600;
	transition: all 0.25s ease-in;
	opacity: 0;
	pointer-events: none;
}

#top_container_overlay.show #tco_content {
	opacity: 1;
	pointer-events: all;
}

#tco_content table td {
	vertical-align: top;
}

#tco_content table td div.panel {
	padding: 10px;
}

#tco_menu {
	text-align: center;
	padding: 10px 20px;
	background: #0b9aeb;
	color: white;
	margin-bottom: 15px;
	box-sizing: border-box;
	border-radius: 4px;
	border: 2px solid #0b62eb;
	font-weight: 500;
}

.tco_menu_item {
	width: 240px;
	display: flex;
	flex-direction: row;
	justify-content: start;
	align-items: center;
	margin-bottom: 5px;
	cursor: pointer;
}

.tco_menu_item .icon {
	width: 35px;
	margin-right: 5px;
	font-size: 1.25rem;
	text-align: center;
	transition: all 0.1s ease-in;
	opacity: 0;
}

.tco_menu_item:hover .icon {
	opacity: 0.35;
}

.tco_menu_item.selected .icon {
	opacity: 1;
}

.tco_menu_item .text {
	width: 200px;
	text-align: center;
	padding: 8px 16px;
	background-color: white;
	border: 2px solid #cecece;
	border-radius: 4px;
	transition: all 0.1s ease-in;
}

.tco_menu_item:hover .text {
	background-color: #97d9ff;
	border: 2px solid #5bc3ff;
}

.tco_menu_item.selected .text {
	color: white;
	font-weight: 500;
	background-color: #0b9aeb;
	border: 2px solid #0b62eb;
}

#tco_kec_title {
	text-transform: uppercase;
	font-size: 2rem;
	font-weight: 900;
	-webkit-text-stroke: 1px #0007;
}

.tco_submenu_item {
	display: flex;
	flex-direction: row;
	justify-content: start;
	align-items: center;
	margin-bottom: 5px;
	margin-right: 5px;
	cursor: pointer;
	box-sizing: border-box;
}

.tco_submenu_item .text {
	width: 200px;
	text-align: center;
	padding: 8px 16px;
	background-color: white;
	border: 2px solid #cecece;
	border-radius: 4px;
	transition: all 0.1s ease-in;
}

.tco_submenu_item:hover .text {
	background-color: #f3ff97;
	border: 2px solid #ecff5b;
}

.tco_submenu_item.selected .text {
	color: white;
	font-weight: 500;
	background-color: #eb990b;
	border: 2px solid #eb830b;
}

#zoomContainer {
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

#allSvg {
	width: 100%;
	height: 100%;
	display: block;
}

#zoomGroup {
	transition: transform 0.3s ease-in-out;
	transform-origin: center center;
	/* tells CSS we want to scale from center */
	transform-box: fill-box;
}

.text-start {
	text-align: left !important;
}

.text-center {
	text-align: center !important;
}

.text-end {
	text-align: right !important;
}

.menu_content_pages {
	position: relative;
	display: none;
}

.menu_content_pages table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #0b62eb;
	border-radius: 4px;
	overflow: hidden;
}

.menu_content_pages table th,
.menu_content_pages table td {
	min-width: 100px;
	line-height: 30px;
	padding: 5px 10px;
	text-align: center;
	vertical-align: middle;
}

.menu_content_pages table th {
	font-weight: 700;
	color: white;
	background-color: #0b9aeb;
	border: 1px solid #0b62eb;
}

.menu_content_pages table td {
	background-color: #ffffff55;
	border: 1px solid #0b62eb;
}

.menu_content_pages.show {
	display: block;
}

.submenu_content_pages {
	position: relative;
	display: none;
}

.submenu_content_pages table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #0b62eb;
	border-radius: 4px;
	overflow: hidden;
}

.submenu_content_pages table th,
.submenu_content_pages table td {
	min-width: 100px;
	line-height: 30px;
	padding: 5px 10px;
	text-align: center;
	vertical-align: middle;
}

.submenu_content_pages table th {
	font-weight: 700;
	color: white;
	background-color: #0b9aeb;
	border: 1px solid #0b62eb;
}

.submenu_content_pages table td {
	background-color: #ffffff55;
	border: 1px solid #0b62eb;
}

.submenu_content_pages.show {
	display: block;
}

.loader i {
	font-size: 80px;
	color: #0b9aeb;
	display: inline-block;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

#selector_data_kabupaten {
	position: fixed;
	bottom: 52px;
	left: 19px;
	z-index: 4000;
	padding: 5px 10px;
	background-color: white;
	border-radius: 4px;
	cursor: pointer;
}

.icon_true {
	display: none;
	min-width: 30px;
	min-height: 30px;
	justify-content: center;
	align-items: center;
	background-color: green;
	color: white;
	border-radius: 4px;
	margin-right: 5px;
	font-weight: 700;
}

.icon_false {
	display: none;
	min-width: 30px;
	min-height: 30px;
	justify-content: center;
	align-items: center;
	background-color: red;
	color: white;
	border-radius: 4px;
	margin-right: 5px;
	font-weight: 700;
}

.icon_true.show,
.icon_false.show {
	display: flex;
}

.scrollable_table {
	max-height: 60vh;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 5px 10px;
}

/* Make the header fixed */
.scrollable_table table {
	border-collapse: collapse;
	width: fit-content;
}

.scrollable_table thead {
	position: sticky;
	top: 0;
	z-index: 2;
}
