/* Google Font Import - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

@font-face {
	font-family: 'ModeG';
	src: url('../assets/fonts/modeg.ttf') format('truetype');
	/* Outras variações de formatos de fonte aqui, se necessário */
	font-weight: normal;
	font-style: normal;
}

.jundlogo {
	font-family: 'ModeG', sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

:root {
	/* ===== Colors ===== */
	--body-color: #fff;
	--sidebar-color: #fff;
	/*--primary-color: rgb(233, 84, 32); LARANJA*/
	--primary-color: #0d6efd;
	/* #FF6F00;FF9505*/
	--primary-color-light: #f6f5ff;
	--toggle-color: #ddd;
	/*--text-color: #707070; CINZA DOS TEXTOS*/
	--text-color: #000000;

	/* ====== Transition ====== */
	--tran-03: all 0.2s ease;
	--tran-03: all 0.3s ease;
	--tran-04: all 0.3s ease;
	--tran-05: all 0.3s ease;
}

body {
	min-height: 100vh;
	background-color: var(--body-color);
	transition: var(--tran-05);
}

::selection {
	background-color: var(--primary-color);
	color: #fff;
}

body.dark {
	--body-color: #18191a;
	--sidebar-color: #242526;
	--primary-color: #3a3b3c;
	--primary-color-light: #3a3b3c;
	--toggle-color: #fff;
	--text-color: #ccc;
}

/* ===== Sidebar ===== */
.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 200px;
	padding: 10px 5px 10px 5px;
	background: var(--sidebar-color);
	transition: var(--tran-05);
}

.sidebar.close {
	width: 70px;
}

/* ===== Reusable code - Here ===== */
.sidebar li {
	height: 50px;
	list-style: none;
	display: flex;
	align-items: center;
	margin-top: 0px;
}

.sidebar header .image,
.sidebar .icon {
	min-width: 60px;
	border-radius: 6px;
}

.sidebar .icon {
	min-width: 50px;
	border-radius: 6px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 25px;
}

.sidebar .text,
.sidebar .icon {
	color: var(--text-color);
	transition: var(--tran-03);
}

.sidebar .text {
	font-size: 0.8rem;
	font-weight: 500;
	white-space: nowrap;
	opacity: 1;
}

.sidebar.close .text {
	opacity: 0;
}

/* =========================== */

.sidebar header {
	position: relative;
}

.sidebar header .image-text {
	display: flex;
	align-items: center;
}

.sidebar header .logo-text {
	display: flex;
	flex-direction: column;
}

header .image-text .name {
	font-size: 18px;
	font-weight: 600;
}

.sidebar header .image {
	display: flex;
	align-items: center;
	justify-content: center;
}

.sidebar header .image img {
	width: 180px;
}

.sidebar header .toggle {
	position: absolute;
	top: 50%;
	right: -25px;
	transform: translateY(-50%) rotate(180deg);
	height: 25px;
	width: 25px;
	background-color: var(--primary-color);
	color: var(--sidebar-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	cursor: pointer;
	transition: var(--tran-05);
}

body.dark .sidebar header .toggle {
	color: var(--text-color);
}

.sidebar.close .toggle {
	transform: translateY(-50%) rotate(0deg);
}

.sidebar li.search-box {
	border-radius: 6px;
	background-color: var(--primary-color-light);
	cursor: pointer;
	transition: var(--tran-05);
}

.sidebar li.search-box input {
	height: 100%;
	width: 100%;
	outline: none;
	border: none;
	background-color: var(--primary-color-light);
	color: var(--text-color);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	transition: var(--tran-05);
}

.sidebar li a {
	list-style: none;
	height: 100%;
	background-color: transparent;
	display: flex;
	align-items: center;
	height: 100%;
	width: 100%;
	border-radius: 6px;
	text-decoration: none;
	transition: var(--tran-03);
}

.sidebar li a:hover {
	background-color: var(--primary-color);
}

.menu-links {
	padding: 0px;
}

.sidebar li a:hover .icon,
.sidebar li a:hover .text {
	color: var(--sidebar-color);
}

body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text {
	color: var(--text-color);
}

.sidebar .menu-bar {
	height: calc(100% - 60px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow-y: scroll;
	margin-top: 5px;
}

.menu-bar::-webkit-scrollbar {
	display: none;
}

.sidebar .menu-bar .mode {
	border-radius: 6px;
	background-color: var(--primary-color-light);
	position: relative;
	transition: var(--tran-05);
}

.menu-bar .mode .sun-moon {
	height: 50px;
	width: 60px;
}

.mode .sun-moon i {
	position: absolute;
}

.mode .sun-moon i.moon {
	opacity: 0;
}

body.dark .mode .sun-moon i.moon {
	opacity: 1;
}

body.dark .mode .sun-moon i.sun {
	opacity: 0;
}

.menu-bar .bottom-content .toggle-switch {
	position: absolute;
	right: 0;
	height: 100%;
	min-width: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	cursor: pointer;
}

.toggle-switch .switch {
	position: relative;
	height: 22px;
	width: 40px;
	border-radius: 25px;
	background-color: var(--toggle-color);
	transition: var(--tran-05);
}

.switch::before {
	content: '';
	position: absolute;
	height: 15px;
	width: 15px;
	border-radius: 50%;
	top: 50%;
	left: 5px;
	transform: translateY(-50%);
	background-color: var(--sidebar-color);
	transition: var(--tran-04);
}

body.dark .switch::before {
	left: 20px;
}

.main-container {
	position: absolute;
	top: 0;
	top: 0;
	left: 200px;
	height: 100vh;
	width: calc(100% - 200px);
	background-color: var(--body-color);
	transition: var(--tran-05);
}

@media (max-width: 992px) {
	.main-container {
		position: absolute;
		top: 0;
		top: 0;
		left: 0;
		height: 100vh;
		width: 100%;
		background-color: var(--body-color);
		transition: var(--tran-05);
	}
}

.main-container .text {
	font-weight: 500;
	color: var(--text-color);
	padding: 12px 60px;
}

.sidebar.close ~ .main-container {
	left: 70px;
	height: 100vh;
	width: calc(100% - 70px);
}

@media (max-width: 992px) {
	.sidebar.close ~ .main-container {
		left: 0;
		width: 100%;
		height: 100vh;
	}
}

body.dark .main-container .text {
	color: var(--text-color);
}

.main-container {
	flex-direction: column;
}

.custom-navbar {
	z-index: 1000;
	/* Assegura que a navbar esteja no topo */
	position: relative;
	width: 100%;
}

.menu-bar {
	overflow: hidden;
	/* Oculta a barra de rolagem */
}

/* Estiliza a barra de rolagem para navegadores WebKit (como Chrome, Safari) */
.menu-bar::-webkit-scrollbar {
	width: 0;
	/* Esconde a barra de rolagem */
}

/* Para Firefox, você pode adicionar estilos adicionais de barra de rolagem, se necessário */
.menu-bar {
	scrollbar-width: none;
	/* Esconde a barra de rolagem no Firefox */
}

#overflow-menu {
	height: calc(100vh - 200px);
	overflow-y: scroll;
	overflow-x: hidden;
}

/* Para navegadores WebKit (Chrome, Safari, Edge moderno) */
#overflow-menu::-webkit-scrollbar {
	display: none; /* Oculta a barra de rolagem */
}
#overflow-menu {
	-ms-overflow-style: none;
}

#overflow-menu {
	overflow: -moz-scrollbars-none;
}

#overflow-menu::-webkit-scrollbar {
	width: 0 !important;
}

.submenu {
	padding-left: 10px;
}

.pointer-cursor {
	cursor: pointer;
}

/*******/
/*Estilo do toast do sweetalert2*/
.colored-toast.swal2-icon-success {
	background-color: #7cc549 !important;
}

.colored-toast.swal2-icon-error {
	background-color: #e84343 !important;
}

.colored-toast.swal2-icon-warning {
	background-color: #ff9900 !important;
}

.colored-toast.swal2-icon-info {
	background-color: #00aaff !important;
}

.colored-toast.swal2-icon-question {
	background-color: #4a90a4 !important;
}

.colored-toast .swal2-title {
	color: white;
}

.colored-toast .swal2-close {
	color: white;
}

.colored-toast .swal2-html-container {
	color: white;
}

.select-container {
	position: relative;
}

/*******/

.swal2-loader {
	border-color: #fd5100 rgba(0, 0, 0, 0) #fd5100 rgba(0, 0, 0, 0);
}

/***PADRONIZAÇÂO DE TABELAS***/

.table-responsive {
	overflow-x: auto;
}

.table {
	font-size: 0.8rem;
}
.table td,
.table th {
	vertical-align: middle;
	white-space: nowrap; /* Não quebra linha */
	overflow: hidden; /* Esconde o overflow */
	text-overflow: ellipsis; /* Adiciona reticências para texto longo */
	text-align: left;
}
.table th {
	text-align: center;
}
/*******/

/***PADRONIZAÇÂO DO TOUR***/

.driver-popover-title {
	font-size: 1.5rem !important; /* Ajuste o tamanho, se necessário */
	line-height: normal !important; /* Ajuste o line-height, se necessário */
}
.driver-popover-description {
	font-size: 1.2rem !important; /* Ajuste o tamanho, se necessário */
	line-height: normal !important; /* Ajuste o line-height, se necessário */
}

.driver-popover-close-btn {
	font-size: 1.8rem !important; /* Ajuste o tamanho, se necessário */
}

.svelte-select-list {
	z-index: 10 !important;
}

/***PADRONIZAÇÂO DO SWITCH***/

.switch-input {
	width: 50px !important; /* Ajuste o tamanho do switch conforme necessário */
	height: 30px !important; /* Ajuste o tamanho do switch conforme necessário */
}

/* Responsividade do botão de navegação de novos registros */
.responsive-btn {
	width: 100%; /* Padrão: ocupa 100% */
}

@media (min-width: 768px) {
	.responsive-btn {
		width: auto; /* Volta ao comportamento padrão em telas maiores */
	}
}
