/*  Uncomment lines 2-5 for debug purposes */
/* .notification-block {
	opacity: 1 !important;
	transform: scale(1) !important;
} */

/* header notification */
.notification.show-unread-count::after {
	content: attr(data-unread);
	/* position: absolute;
	top: 1.2em;
	right: 0.1em; */
	width: fit-content;
	height: fit-content;
	padding: 4px;
	font-size: .9em;
	line-height: 1;
	background-color: #404040;
	color: white;
	border-radius: 5px;
	box-shadow: 1px 1px 1px 1px #e7e7e7;
}

.notification + .notification-block {
	left: -20em !important;
	top: 5.2em !important;
	font-family: "Gordita";
}

@media (min-width: 992px) {
	.notification-bell i, li .profil{
		font-size: 1.5em !important;
	}
}

.notification-bell.show-unread-count::after {
	content: attr(data-unread);
	position: absolute;
	top: 1.2em;
	right: 0.1em;
	width: fit-content;
	height: fit-content;
	padding: 4px;
	font-size: .9em;
	line-height: 1;
	background-color: #404040;
	color: white;
	border-radius: 5px;
	box-shadow: 1px 1px 1px 1px #e7e7e7
}

.notification-bell + .notification-block {
	left: -26em !important;
	top: 5.2em !important;
	font-family: "Gordita";
}

@media (min-width: 992px) {
	.notification-block {
		width: 500px !important;
	}
}

.notification-header {
	padding: 5px 15px;
	font-size: .8em;
	display: flex;
	justify-content: space-between;
}

.notification-header > div {
	line-height: 2.5;
}

.notification-header span {
	font-weight: 600;
}

.notification-header .n-config-btn {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #f9f9f9;
	color: #3d3f42;
	box-shadow: 2px 2px 1px 0px #a7a6a6;
	margin-right: 5px;
	border: 1px solid #9f9292;
	border-radius: 5px;
}

.notification-header .n-refresh-btn {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #3d3f42;
	color: white;
	border-radius: 5px;
	box-shadow: 2px 2px 1px 0px #a7a6a6;
}

.notification-header .n-refresh-btn.error::before {
	content: " ";
	width: 11px;
	height: 11px;
	position: absolute;
	top: -0.1em;
	right: -0.4em;
	background-color: red;
	border-radius: 100%;
	border: 2px solid white;
}

.notification-header .n-refresh-btn.spin i {
	animation: loading-spinner 1.2s linear infinite;
}

@keyframes loading-spinner {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* notif list */
.notification-list {
	max-height: 50vh;
	overflow-y: auto;
	background: #f9f9f9;
	box-shadow: inset 0px 1px 4px 0px #c1c1c1;
	font-size: .94rem;
}

.n-item {
	padding: 12px;
	border-bottom: 1px solid #c9c9c9;
	transition: all .5s ease;
}

.n-item.unread {
	/* background-color: #f9f9f9; */
}

.n-item:hover {
	background-color: var(--gs-color-light);
}

.n-item .n-icon {
	position: absolute;
	left: 10px;
	height: 40px;
	width: 40px;
	line-height: 43px;
	border-bottom: 2px solid var(--gs-primary-color);
	border-bottom: 2px solid #a7a6a6;
	border-right: 2px solid #a7a6a6;
	border-radius: 30px;
	display: inline-block;
	text-align: center;
	font-size: 1.2em;
	color: white;
	background: #3d3f42;
}

.n-item .n-body {
	color: black;
	padding-left: 45px !important;

	position: initial !important;
	display: block !important;
	text-transform: none !important;
	font-size: inherit !important;
	line-height: inherit !important;
	border-bottom: 0 !important;
}

.n-item .n-body .title{
	color: black;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.n-item.unread .n-body .title{
	padding-right: 50px;
}

.n-item.unread .n-body .title::after {
	content: "non lu";
	font-size: .6em;
	width: fit-content;
	padding: 0px 5px;
	height: 15px;
	display: inline-block;
	background: #ff4848;
	color: white;
	border-radius: 10px;
	position: absolute;
	top: 12px;
	right: 15px;
	box-shadow: 1px 2px 1px 0px lightgrey;
}

.n-item .n-body .detail{
	font-size: .9em;
	color: black;
	margin-top: 2px;
	margin-bottom: 2px;
}

.n-item .n-footer {
	font-size: .8em;
	color: #52565b;
	padding-left: 45px;
	display: flex;
	justify-content: space-between;
}

.n-item .mark-read {
	float: right;
	margin-right: 10px;
	padding: 5px 6px;
	border-radius: 10px;
	line-height: 1em;
	color: white;
	background-color: var(--gs-primary-color);
	font-weight: 500;
	box-shadow: 1px 2px 1px 0px lightgrey;
}

.notification-list::-webkit-scrollbar {
	width: 0.5em;
}

.notification-list::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgb(173 173 173);
	box-shadow: inset 0 0 6px rgb(173 173 173);
}

.notification-list::-webkit-scrollbar-thumb {
	background-color: #8b8b8b;
}

.notification-footer {
	color: #282828;
	font-weight: 500;
	padding: 8px;
	text-align: center;
	transition: transform .5s ease;
	font-size: .9em;
	box-shadow: 0px -2px 4px 0px #c1c1c1;
	overflow: hidden;
	line-height: 2.5;
}

.notification-footer i {
	transition: transform .7s ease;
}

.notification-footer a:hover {
	font-weight: 600;
	transform: scale(1.05);
}

.notification-footer a:hover i {
	transform: translate(5px);
}

/* zero notif */
.n-item[data-date="none"] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.n-item[data-date="none"] .n-icon {
	position: initial;
}

.n-item[data-date="none"] .n-body {
	padding-left: 5px !important;
}

/* rearange for eskul */
.main-page-wrapper .notification-block {
	font-family: 'Montserrat', sans-serif;
	top: 5.5em !important;
}

.main-page-wrapper .n-item .n-icon {
	line-height: 2;
	font-size: 2em;
}

.main-page-wrapper .n-item > .n-body {
	font-size: 14px !important;
}


.main-page-wrapper .n-item .n-body .detail {
	line-height: 2 !important;
}

.main-page-wrapper .n-item .n-footer {
	font-size: 12px;
}

.main-page-wrapper .notification-footer a {
	color: #282828;
}

.notification-block + .icon {
	display: none !important;
}

@media (min-width: 992px) {
	.d-lg-none {
		display: none !important;
	}
}

/* Notification Permission */
.pm {
	display: none;
}

.pm > .pm-layer{
	display: none;
}

.pm.active > .pm-layer{
	display: flex;
	align-items: center;
	justify-content: center;
}

.pm.active > .pm-foreground{
	display: none;
}

.pm-layer {
	position: fixed;
	bottom: 0px;
	z-index:9999;
	width: 100%;
	height: 100%;
	background-color: #0000006e;
	font-size: 16px;
}

.loading-spinner {
	display: inline-block;
	width: 80px;
	height: 80px;
}

.loading-spinner:after {
	content: " ";
	display: block;
	width: 64px;
	height: 64px;
	margin: 8px;
	border-radius: 50%;
	border: 6px solid #fff;
	border-color: #fff transparent #fff transparent;
	animation: loading-spinner 1.2s linear infinite;
}

@keyframes loading-spinner {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.pm-foreground {
	position: fixed;
	bottom:0px;
	z-index:1040;
	width: 100%;
	box-shadow: 0px 1px 4px 0px #252841;
	padding: 1rem!important;
	background-color: #252841;
	color: white;
}

.pm-foreground > .pm-icon {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 100%;
	background: white;
	color: black;
}

.pm-foreground > .pm-body{
	padding-left: 50px;
}

.pm-foreground > .pm-body > .pm-text > a{
	color: #3d6ade;
}

.pm-foreground > .pm-body > .pm-text > a:hover {
	color: #0056b3;
}

/* pm-actions */
.pm-actions {
	display: flex;
	justify-content: end;
	margin-top: .5em;
}

.pm-foreground > .pm-body > .pm-actions button {
	line-height: 2;
	border-radius: 10px;
}

.pm-foreground > .pm-body > .pm-actions button.no{
	color: white;
	border: 1px solid white;
	margin-right: .5em;
}

.pm-foreground > .pm-body > .pm-actions button.yes{
	color: black;
	background: white;
}

/* Notification Permission switch */
.notif-switch-wrapper {
	display: flex;
	align-items: center;
}

.notif-switch {
	position: relative;
	/* top: 4px; */
	width: 35px;
	height: 10px;
	display: inline-block;
}

.notif-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.notif-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #a2a2a2;
	-webkit-transition: .4s;
	transition: .4s;
	border-radius: 34px;
}

.notif-slider:before {
	position: absolute;
	height: 17px;
	width: 17px;
	left: 0px;
	bottom: -3.5px;
	content: "";
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
	border-radius: 50%;
	border: 1px solid #b8b7ba;
}

input:checked + .notif-slider {
	background-color: #2196F3;
}

input:checked + .notif-slider:before {
	-webkit-transform: translateX(18px);
	-ms-transform: translateX(18px);
	transform: translateX(18px);
}

input:disabled + .notif-slider{
	background-color: #d2d2d2;
}

input:disabled + .notif-slider:before  {
	border: 1px solid #b5b5b5;
}

input:focus + .notif-slider {
	box-shadow: 0 0 1px #2196F3;
}
