/* Avatar Image Loader */
.userlist-avatar {
	background: #ebf3fc url('../../assets/images/loading.gif') 50% no-repeat;
	width: 30px;
  	height: 30px;
	border-radius: 5px;
}

.userdetail-avatar {
	background: #ebf3fc url('../../assets/images/loading.gif') 50% no-repeat;
	width: 80px;
  	height: 80px;
	border-radius: 5px;
}

/* Reset Bootstrap Style */
.label {
	text-transform: none !important;
}

.panel-desc {
	margin-bottom: 20px;
	background-color: #ecf9b1;
	border-left: 4px solid #a0ba2b;
	padding: 10px 8px;
}

.panel-desc-primary {
	margin-bottom: 20px;
	background-color: #dff1ff;
	border-left: 4px solid #2196F3;
	padding: 10px 8px;
}

.panel-desc-danger {
	margin-bottom: 20px;
	background-color: #ffe2de;
	border-left: 4px solid #ff5959;
	padding: 10px 8px;
}

.center-captcha {
	display: inline-block;
}

.pointing {
	cursor: pointer;
}

/* Fix Sweetalert 2 Popup size on Bootstrap 3 */
.swal2-popup {
  font-size: 1.6rem !important;
}

/* SweetAlert 2 Image Preview */
.swal2-image {
	max-height: 70vh;
	max-width: calc(100% - 50px) !important;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
	margin: 38px auto 25px auto !important;
	display: block;
}

@media (max-width: 480px) {
	.swal2-image {
		max-width: calc(100% - 30px) !important;
		margin: 35px auto 20px auto !important;
	}
}

/* SweetAlert 2 Close Button */
.swal2-close {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	width: 32px !important;
	height: 32px !important;
	line-height: 30px !important;
	background: #f1f5f9 !important;
	color: #475569 !important;
	border-radius: 50% !important;
	font-size: 22px !important;
	font-weight: 300 !important;
	font-family: Arial, sans-serif !important;
	align-items: center;
	justify-content: center;
	border: 1px solid #cbd5e1 !important;
	outline: none !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
	transition: all 0.2s ease !important;
	z-index: 10 !important;
}

/* Pastikan tombol close tidak pernah muncul jika showCloseButton: false */
.swal2-close[style*="display: none"] {
	display: none !important;
}

.swal2-close:hover {
	background: #e2e8f0 !important;
	color: #0f172a !important;
	transform: scale(1.08) !important;
}

.swal2-close:focus,
.swal2-close:focus-visible {
	outline: none !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
	background: #f1f5f9 !important;
	color: #475569 !important;
}

.swal-photo-preview {
	cursor: pointer;
	position: relative;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.swal-photo-preview:hover {
	opacity: 0.9;
	transform: scale(1.02);
}

/* Fix Select2 Height */
.select2-container--bootstrap .select2-selection--single {
	height: auto !important;
}

/* Custom Dropdown Menu Items */
.dropdown-menu > li > span {
	display: block;
	padding: 8px 15px;
	outline: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
}

.dropdown-menu > li > span:hover {
	text-decoration: none;
	color: #333;
	background-color: #f5f5f5;
}

.dropdown-menu > li > span > i {
	margin-right: 12px;
	float: left;
	margin-top: 2px;
}

/* Unselectable Object */
.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Bootstrap Modal Wide Screen */
.modal.modal-wide {
	padding: 0 !important;
}

.modal.modal-wide .modal-dialog {
	width: 90%;
	height: 90%;
	max-width: none;
	margin: auto;
}

/* Bootstrap Modal Fullscreen */
.modal-fullscreen {
	padding: 0 !important;
}

.modal.modal-fullscreen .modal-dialog {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.modal.modal-fullscreen .modal-content {
	height: auto;
	min-height: 100%;
	border: 0 none;
	border-radius: 0;
	box-shadow: none;
}

/* Bordered Row */
.row-bordered:nth-of-type(odd),
.row-bordered:nth-of-type(even) {
	border-top: 1px solid #ddd;
}

/* Mobile Dropdown User Menu */
@media (max-width: 767px) {
	.navbar-collapse .dropdown-user .dropdown-menu {
		display: block;
		position: static;
		width: 100%;
		border: 0;
		box-shadow: none;
		background-color: transparent;
		margin-top: 0;
		float: none;
	}
	.navbar-collapse .dropdown-user .dropdown-toggle {
		display: none;
	}
	.navbar-collapse .dropdown-user .dropdown-menu > li > a {
		padding-top: 10px;
		padding-bottom: 10px;
		color: #fff;
	}
	.navbar-collapse .dropdown-user .dropdown-menu > li > a:hover,
	.navbar-collapse .dropdown-user .dropdown-menu > li > a:focus {
		background-color: rgba(255,255,255,0.1);
	}
}
