body {
	font-family: 'Poppins', sans-serif;
	background-color: #ffffff !important;
	margin: 0;
	padding: 0;
	color: #333;
}

.wrapper {
	display: flex;
	width: 100%;
	align-items: stretch;
	min-height: 100vh;
	position: relative;
	/* background-color: #ffffff !important; */

	/* di bawah untuk background video */
	background-color: transparent !important;
}

/* Video Background */
.video-background {
	position: fixed;
	right: 0;
	bottom: 0;
	min-width: 100%;
	min-height: 100%;
	z-index: -1;
	overflow: hidden;
}

#bg-video {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%);
	object-fit: cover;
}

.video-bg-active .container-fluid {
	position: relative;
	z-index: 2;
	/* diatas untuk background video */

}

/* DASHBOARD SIDEBAR */
#sidebar {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 300px;
	z-index: 1000;
	background: #1a232e;
	box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease-in-out;
	overflow-y: auto;
	/* Enable scrolling */
	scrollbar-width: thin;
	/* Thin scrollbar for modern browsers */
	scrollbar-color: #f39c12 #1a232e;
}

#sidebar::-webkit-scrollbar {
	width: 6px;
}

#sidebar::-webkit-scrollbar-thumb {
	background: #f39c12;
	border-radius: 10px;
}

#sidebar.active {
	margin-left: -300px;
}

.admin-layout .wrapper,
.admin-layout header,
.admin-layout nav,
.admin-layout footer {
	transition: all 0.3s ease-in-out;
}

.admin-layout:not(.sidebar-collapsed) .wrapper {
	padding-left: 300px;
}

/* Ensure content fills space when sidebar is collapsed */
.sidebar-collapsed .wrapper {
	padding-left: 0 !important;
}

#content-area {
	flex: 1;
	width: 100%;
	padding: 0;
	min-height: 80vh;
	transition: all 0.3s ease-in-out;
	/* background-color: #f4f7f6 !important; */
	background-color: transparent !important;
	position: relative;
}

#content-area section {
	padding: 15px 25px;
	/* Reduced from 30px */
}

/* dibawah untuk background video */
.video-bg-active #content-area {
	background-color: transparent !important;
}

.video-bg-active .box {
	background: rgba(255, 255, 255, 0.1) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

/* diatas untuk background video */

#sidebar ul.components {
	list-style: none;
	padding: 15px 0;
	/* Reduced from 25px */
	margin: 0;
}

#sidebar ul li a {
	padding: 12px 25px;
	/* Reduced from 18px 30px */
	font-size: 14px;
	/* Slightly smaller font for compactness */
	display: block;
	color: #ced4da;
	text-decoration: none;
	border-left: 5px solid transparent;
	transition: all 0.3s;
}

#sidebar ul li a:hover,
#sidebar ul li.active>a {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-left: 5px solid #f39c12;
}

#sidebar .sidebar-header {
	padding: 25px 20px 15px;
	/* Reduced from 40px 20px 20px */
	background: #0b131d;
	border-bottom: 2px solid #f39c12;
	text-align: center;
}

#sidebar .sidebar-header h4 {
	color: #f39c12;
	font-weight: 800;
	margin-top: 15px;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 1.25em;
}

.sidebar-toggle {
	background: #1a232e;
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	padding: 10px 15px;
	border-radius: 6px;
}

nav li {
	display: inline;
	padding: 0 10px 0 10px;
}

nav li a {
	text-decoration: none;
	color: #fff;
}

nav li a:hover {
	text-decoration: none;
	color: #007eff;
}

.btn-custom {
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.selanjutnya {
	background: #0e2335;
	color: #fff;
	padding: 12px 52px;
	border-radius: 8px;
	border: none;
	font-weight: 600;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.selanjutnya:hover {
	background: #007eff;
	color: #fff;
	padding: 12px 52px;
	transform: translateY(-2px);
	box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.selanjutnya:focus {
	background: #efefef;
	color: #000;
	padding: 12px 52px;
}

.panggil:hover {
	background: #007eff;
	color: #fff;
	padding: 12px 90px;
	transform: translateY(-2px);
	box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.panggil:focus {
	background: #efefef;
	color: #000;
	padding: 12px 90px;
}

.panggil {
	background: #0e2335;
	color: #fff;
	padding: 12px 90px;
	border-radius: 8px;
	border: none;
	font-weight: 600;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.row {
	position: relative;
}

header {
	background: #0e2335;
	margin: auto;
	max-height: none;
	/* max-height: 190px; */
	width: 100%;
	pointer-events: none;
}

header * {
	pointer-events: auto;
}


.img {
	max-width: 100%;
	height: auto;
}

#logo img {
	max-height: 100%;
	width: auto;
	padding: 30px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.instansi {
	padding-top: 0px;
}

.instansi a {
	text-decoration: none;
}

h1 {
	color: #333;
	text-align: center;
	font-size: 62px;
}


/* Modal compatibility fixes */
body.modal-open {
	padding-right: 0 !important;
}

.modal-backdrop {
	z-index: 1040 !important;
}

.modal {
	z-index: 1050 !important;
}

h3 {
	color: white;
	text-align: center;
	margin: 0px;
}

.menu {
	padding: 10px;
	min-height: 47px;
	position: relative;
	border-radius: 0 !important;
}

#user {
	float: left;
	list-style: none;
	margin: 0;
	padding: 0;
	color: #fff;
}

#menu {
	float: right;
	list-style: none;
	margin: 0;
	padding: 0;
}

#menu li {
	display: inline;
	padding: 0 10px;
}

#menu li a {
	color: #fff;
	text-decoration: none;
}

#menu li a:hover {
	color: #007eff;
}

#list,
#list1 {
	position: absolute;
	right: 20px;
	top: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
	color: #fff;
	cursor: pointer;
	display: none;
}

footer {
	background: #0f0f0f;
	min-height: 50px;
}

.footer {
	color: #fff;
	float: right;
	margin: 15px;
}

.container {
	background: #efefef;
	width: 100%;
	margin: auto;
	min-height: 400px;
}

.box {
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
	margin: 15px;
	border: none;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.loket {
	background: #0e2335;
	font-size: 32px;
	text-align: center;
	color: #fff;
	padding: 15px;
	font-weight: 600;
}

.antrian {
	background: #fff;
	font-size: 82px;
	text-align: center;
	color: #000;
	font-weight: 700;
	padding: 20px 0;
}

.agenda {
	background: #fff;
	padding: 20px;
	text-align: center;
}

.agenda img {
	margin: auto;
}

#agenda {
	height: 303px;
}

.agenda h1 {
	font-size: 200px;
	color: #000;
	margin-top: -10px;
}

#slide {
	height: 320px;
}

@media all and (max-width:991px) {
	h1 {
		color: white;
		text-align: center;
		font-size: 27px;
	}

	.img {
		max-width: 100%;
		height: auto;
	}

	#logo img {
		max-height: 100%;
		width: auto;
		padding: 15px;
		padding-right: 0px;
	}

	h3 {
		color: white;
		text-align: center;
		margin: 2px;
		font-size: 18px;
	}

	#alamat {
		padding-top: 50px;
	}

	#slide {
		height: 150px;
	}

	#menu {
		display: none;
		background: #0f0f0f;
		padding: 10px;
		min-height: 47px;
		width: 100%;
		padding-left: 0;
		float: none;
		clear: both;
	}

	#menu li {
		display: block;
		padding: 10px 0;
		border-bottom: 1px solid #222;
	}

	#user {
		float: left;
	}

	#list,
	#list1 {
		display: block;
	}
}

.panggil_custom:hover {
	background: #007eff;
	color: #fff;
	padding: 10px 90px;
	margin-bottom: 10px;
}

.panggil_custom {
	background: #0e2335;
	color: #fff;
	padding: 10px 90px;
	margin-bottom: 10px;
	border-radius: 8px;
	border: none;
}

/* Circular Queue Button Styles */
.btn-circular-queue {
	display: inline-block;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0e2335 0%, #1a3a52 100%);
	box-shadow: 0 10px 30px rgba(14, 35, 53, 0.3), 0 0 0 0 rgba(14, 35, 53, 0.4);
	text-decoration: none;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	overflow: hidden;
	margin: 30px 0;
}

.btn-circular-queue::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #007eff 0%, #0056b3 100%);
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.btn-circular-queue:hover {
	transform: translateY(-8px) scale(1.05);
	box-shadow: 0 20px 40px rgba(14, 35, 53, 0.4), 0 0 0 8px rgba(0, 126, 255, 0.2);
	text-decoration: none;
}

.btn-circular-queue:hover::before {
	opacity: 1;
}

.btn-circular-queue:active {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 10px 25px rgba(14, 35, 53, 0.3), 0 0 0 4px rgba(0, 126, 255, 0.3);
}

.btn-circular-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #fff;
	padding: 20px;
}

.btn-circular-inner i {
	font-size: 48px;
	margin-bottom: 12px;
	display: block;
	transition: transform 0.3s ease;
}

.btn-circular-queue:hover .btn-circular-inner i {
	transform: scale(1.2) rotate(10deg);
}

.btn-circular-inner span {
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	line-height: 1.4;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

@keyframes pulse-ring {
	0% {
		box-shadow: 0 10px 30px rgba(14, 35, 53, 0.3), 0 0 0 0 rgba(0, 126, 255, 0.7);
	}

	50% {
		box-shadow: 0 10px 30px rgba(14, 35, 53, 0.3), 0 0 0 15px rgba(0, 126, 255, 0);
	}

	100% {
		box-shadow: 0 10px 30px rgba(14, 35, 53, 0.3), 0 0 0 0 rgba(0, 126, 255, 0);
	}
}

.btn-circular-queue {
	animation: pulse-ring 2s infinite;
}

.btn-circular-queue:hover {
	animation: none;
}

@media all and (max-width: 991px) {
	.btn-circular-queue {
		width: 180px;
		height: 180px;
		margin: 20px 0;
	}

	.btn-circular-inner i {
		font-size: 38px;
		margin-bottom: 10px;
	}

	.btn-circular-inner span {
		font-size: 14px;
	}
}

@media all and (max-width: 576px) {
	.btn-circular-queue {
		width: 160px;
		height: 160px;
	}

	.btn-circular-inner i {
		font-size: 32px;
		margin-bottom: 8px;
	}

	.btn-circular-inner span {
		font-size: 13px;
	}
}

/* ==========================================================================
   ADMIN DASHBOARD COMPACT MODE (Optimization for 100% Zoom)
   ========================================================================== */

.admin-layout .box {
	margin: 8px !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.admin-layout .loket {
	font-size: 20px !important;
	padding: 8px 15px !important;
	font-weight: 700 !important;
}

.admin-layout .agenda {
	padding: 12px !important;
}

.admin-layout .table {
	margin-bottom: 5px !important;
}

.admin-layout .table th {
	padding: 8px 10px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
}

.admin-layout .table td {
	padding: 6px 10px !important;
	font-size: 13px !important;
	vertical-align: middle !important;
}

/* Shrink buttons in table rows */
.admin-layout .table .btn {
	padding: 4px 10px !important;
	font-size: 12px !important;
}

.admin-layout .form-control {
	font-size: 13px !important;
	height: 32px !important;
	padding: 5px 10px !important;
}

.admin-layout label {
	font-size: 12px !important;
	margin-bottom: 4px !important;
	font-weight: 600 !important;
}

.admin-layout .pagination>li>a,
.admin-layout .pagination>li>span {
	padding: 5px 10px !important;
	font-size: 12px !important;
}

/* Adjust Dashboard Header in Admin */
#content-area section h4,
#content-area section .modal-title {
	font-size: 18px !important;
}