@import "./reset.css";

.notifier-bottom {
	margin: 0px auto;
	bottom: 32px;
	left: 0px;
	right: 0px;
	width: 600px;
}

.notifier-top {
	margin: 0px auto;
	top: 32px;
	left: 0px;
	right: 0px;
	width: 600px;
}

.notifier-top-right {
	top: 32px;
	right: 16px;
	width: 400px;
}

.notifier-bottom-right {
	bottom: 32px;
	right: 16px;
	width: 400px;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translate3d(0, -100%, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.fadeInDown {
	animation-name: fadeInDown;
}

.animated {
	animation-duration: 1s;
	animation-fill-mode: both;
}

.notifier {
	padding: 8px 16px;
	border-radius: 4px;
	margin: 8px 0;
}

.notifier.success {
	background: var(--color-300);
	color: var(--color-50);
}

@keyframes notifier-animation-enter-opacity {
	from {
		opacity: 0;
		transform: translate3d(0, -100%, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes notifier-animation-leave-opacity {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

ul[class*="notifier-"] {
	list-style: none;
	position: fixed;
	transition: all 0.5s ease-in-out;
	z-index: 10031;
	animation-iteration-count: 1;
	display: inline-block;
}

ul[class*="notifier-"]>li {
	background-position: center left 16px;
	background-repeat: no-repeat;
	background-size: 36px;
	border-radius: 4px;
	box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16),
		0 2px 10px 0 rgba(0, 0, 0, 0.12);
	cursor: pointer;
	padding: 16px 16px 16px 68px;
	word-wrap: break-word;
	width: 100%;
}

ul[class*="notifier-"]>li:focus,
ul[class*="notifier-"]>li:hover {
	box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2),
		0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

ul[class*="notifier-"]>li:not(:last-of-type) {
	margin-bottom: 16px;
}

ul[class*="notifier-"]>li>.message {
	color: #ffffff;
}

ul[class*="notifier-"]>li>.title {
	color: #ffffff;
	font-weight: 700;
}

ul[class*="notifier-"]>li.au-enter-active {
	animation: notifier-animation-enter-opacity 1s;
}

ul[class*="notifier-"]>li.au-leave-active {
	animation: notifier-animation-leave-opacity 0.5s;
}

.notifier-success {
	background: #388d54;
}

.notifier-warning {
	background: #ffb74d;
}

.notifier-danger {
	background: #b71c1c;
}

.notifier-info {
	background: #4dd0e1;
}

@media (max-width: 568px) {
	.notifier-bottom {
		width: calc(100% - 32px);
	}
}

.dialog-container {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1050;
	overflow: hidden;
	outline: 0;
	opacity: 1;
	display: grid;
	justify-items: center;
	align-items: start;
	background-color: rgba(0, 0, 0, 0.4);
}

.dialog-comfirm {
	width: auto;
	margin: 0 16px;
	max-width: 420px;
	width: calc(100% - 32px);
	top: 10%;
	position: relative;
	z-index: 2000;
	background-color: var(--primary-background);
}

.dialog-comfirm.enter {
	animation: fadeInTop 0.5s forwards;
}

.dialog-comfirm.leave {
	animation: fadeOutTop 0.5s forwards;
}

.dialog-comfirm .dialog-title {
	font-weight: 700;
	text-transform: uppercase;
	padding: 16px;
}

.dialog-comfirm .dialog-content {
	padding: 16px;
	margin-bottom: 16px;
}

.dialog-comfirm .dialog-footer {
	display: grid;
	grid-template-columns: 1fr 96px 96px;
	grid-gap: 8px;
	padding: 16px;
	align-items: center;
	justify-items: center;
}

.dialog-comfirm .btn {
	width: 100%;
	font-size: var(--font-size);
	line-height: var(--input-height);
	height: var(--input-height);
	text-align: center;
	text-decoration: none;
	-webkit-border-radius: var(--input-radius);
	-moz-border-radius: var(--input-radius);
	-ms-border-radius: var(--input-radius);
	-o-border-radius: var(--input-radius);
	border-radius: var(--input-radius);
	display: inline-block;
	cursor: pointer;
	transition: all 0.3s ease-out;
	color: var(--primary-color);
	background-color: var(--button-background);
}

.dialog-comfirm .btn.btn-submit {
	background-color: var(--primary);
	color: #fff;
}

@-webkit-keyframes fadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes fadeOutTop {
	100% {
		opacity: 0;
		transform: translate(0, -100%);
	}

	0% {
		opacity: 1;
		transform: none;
	}
}

@keyframes fadeInTop {
	100% {
		transform: none;
	}

	0% {
		transform: translate(0, -100%);
	}
}

::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-thumb {
	background: rgba(128, 128, 128, 0.4);
}

::-webkit-scrollbar-track {
	background-color: transparent;
}

:root {
	--color-green: #154B37;
	--color-teal: #6CB690;
	--color-purple: #871686;
	--color-yellow: #E3E38D;
	--color-orange: #FD4400;
	--color-pink: #fabdd4;
	--ratio: 1;
}

@media screen and (max-width: 1600px) {
	:root {
		--ratio: calc(1600 / 1920);
	}
}

@media screen and (max-width: 1440px) {
	:root {
		--ratio: calc(1440 / 1920);
	}
}

@media screen and (max-width: 1366px) {
	:root {
		--ratio: calc(1366 / 1920);
	}
}

@media screen and (max-width: 1280px) {
	:root {
		--ratio: calc(1280 / 1920);
	}
}

@media screen and (max-width: 1024px) {
	:root {
		--ratio: calc(1024 / 1920);
	}
}

@media screen and (max-width: 768px) {
	:root {
		--ratio: 0.75;
	}
}

html,
body {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

html {
	font-size: 16px;
	/* Thiết lập font-size cơ bản cho phần tử gốc */
}

body {
	font-family: "Poppins", sans-serif;
	font-feature-settings: normal;
	font-kerning: auto;
	font-weight: normal;
	font-style: normal;
	color: var(--primary-color);
	line-height: var(--line-height);
	font-size: calc(18px * var(--ratio));
	line-height: 22px;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	color: #154B37;
	background-color: #f8fafb;
	overflow-y: auto;
}

navy-app {
	display: block;
	width: 100%;
	height: 100%;
	height: 100dvh;
}

/* Thuộc tính scrollbar cho trình duyệt dựa trên WebKit (Chrome, Safari) */
/* Điều chỉnh thanh cuộn */
::-webkit-scrollbar {
	width: 2px;
	/* Chiều rộng của thanh cuộn */
}

/* Điều chỉnh cụm cần (thumb) của thanh cuộn */
::-webkit-scrollbar-thumb {
	background-color: transparent;
	/* Màu nền của cụm cần */
	border-radius: 5px;
	/* Bo tròn viền của cụm cần */
}

/* Điều chỉnh màu nền của toàn bộ thanh cuộn */
::-webkit-scrollbar-track {
	background-color: #ffda0055;
}