/*
 * Gestor de Editais — Shell do painel (visual de sistema independente).
 * Carregado APENAS no documento HTML próprio do painel (não afeta o site).
 * Sem frameworks externos. Reaproveita as variáveis de cor de
 * gestor-editais.css (--ge-cor-*) para manter a mesma identidade visual.
 */

:root {
	--geapp-cor-primaria: var(--ge-cor-primaria, #2271b1);
	--geapp-cor-primaria-escura: var(--ge-cor-primaria-escura, #1a5787);
	--geapp-cor-fundo: #f3f4f6;
	--geapp-cor-sidebar: #12161f;
	--geapp-cor-sidebar-texto: #9aa4b2;
	--geapp-cor-sidebar-texto-ativo: #ffffff;
	--geapp-cor-texto: #1a1d23;
	--geapp-cor-texto-suave: #6b7280;
	--geapp-cor-borda: #e5e7eb;
	--geapp-cor-card: #ffffff;
	--geapp-raio: 12px;
	--geapp-sombra: 0 1px 2px rgba(16, 24, 40, 0.04), 0 2px 8px rgba(16, 24, 40, 0.06);
	--geapp-fonte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
	box-sizing: border-box;
}

body.geapp-corpo {
	margin: 0;
	padding: 0;
	background: var(--geapp-cor-fundo);
	color: var(--geapp-cor-texto);
	font-family: var(--geapp-fonte);
	-webkit-font-smoothing: antialiased;
}

.geapp *,
.geapp *::before,
.geapp *::after,
.geapp-login-tela *,
.geapp-login-tela *::before,
.geapp-login-tela *::after {
	box-sizing: border-box;
}

/* ---------- Login independente (tela cheia) ---------- */
.geapp-login-tela {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 24px 64px;
	background: var(--geapp-cor-fundo);
	font-family: var(--geapp-fonte);
	color: var(--geapp-cor-texto);
}

.geapp-login-card {
	width: 100%;
	max-width: 380px;
	background: var(--geapp-cor-card);
	border-radius: var(--geapp-raio);
	box-shadow: var(--geapp-sombra);
	padding: 40px 32px;
	text-align: center;
}

.geapp-login-marca {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.geapp-login-logo {
	display: block;
	max-width: 180px;
	max-height: 90px;
	width: auto;
	height: auto;
}

.geapp-login-titulo {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
}

.geapp-login-subtitulo {
	margin: 0 0 22px;
	font-size: 14px;
	color: var(--geapp-cor-texto-suave);
}

.geapp-login-card .gestor-editais-aviso {
	text-align: left;
}

.geapp-login-rodape {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	margin: 0;
	text-align: center;
	font-size: 12px;
	color: var(--geapp-cor-texto-suave);
}

.geapp-campo {
	margin: 0 0 16px;
	text-align: left;
}

.geapp-campo label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--geapp-cor-texto);
}

.geapp-campo input[type="text"],
.geapp-campo input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	font-size: 16px;
	border: 1px solid var(--geapp-cor-borda);
	border-radius: 8px;
	background: #fff;
	color: var(--geapp-cor-texto);
}

.geapp-campo input[type="text"]:focus,
.geapp-campo input[type="password"]:focus {
	outline: none;
	border-color: var(--geapp-cor-primaria);
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.geapp-login-botao {
	width: 100%;
	padding: 13px 18px;
	margin-top: 6px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: var(--geapp-cor-primaria);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.geapp-login-botao:hover,
.geapp-login-botao:focus {
	background: var(--geapp-cor-primaria-escura);
}

/* ---------- Shell principal (sidebar + topbar + conteúdo) ---------- */
.geapp {
	display: flex;
	min-height: 100vh;
	font-family: var(--geapp-fonte);
}

.geapp-sidebar-fundo {
	display: none;
}

.geapp-sidebar {
	width: 240px;
	flex-shrink: 0;
	background: var(--geapp-cor-sidebar);
	color: var(--geapp-cor-sidebar-texto);
	display: flex;
	flex-direction: column;
	padding: 22px 16px;
}

.geapp-marca {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	padding: 0 8px 22px;
	margin-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.geapp-marca-icone {
	font-size: 18px;
}

.geapp-nav {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
}

.geapp-nav-link {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 12px;
	border-radius: 8px;
	color: var(--geapp-cor-sidebar-texto);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.geapp-nav-icone {
	width: 18px;
	text-align: center;
	font-size: 15px;
}

.geapp-nav-link:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.geapp-nav-link-ativo,
.geapp-nav-link-ativo:hover {
	background: var(--geapp-cor-primaria);
	color: #fff;
}

.geapp-nav-sair {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-top: 16px;
	padding: 14px 12px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--geapp-cor-sidebar-texto);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.geapp-nav-sair:hover {
	color: #fff;
}

.geapp-conteudo-area {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.geapp-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 28px;
	background: var(--geapp-cor-card);
	border-bottom: 1px solid var(--geapp-cor-borda);
}

.geapp-topbar-titulo {
	font-size: 18px;
	font-weight: 700;
}

.geapp-topbar-usuario {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--geapp-cor-texto-suave);
}

.geapp-topbar-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--geapp-cor-primaria);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.geapp-conteudo {
	padding: 28px;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}

.geapp-conteudo .gestor-editais-card {
	margin-bottom: 20px;
}

.geapp-banner {
	margin-bottom: 20px;
	text-align: center;
}

.geapp-banner-imagem {
	max-width: 100%;
	height: auto;
	max-height: 140px;
}

.geapp-menu-toggle {
	display: none;
}

/* ---------- Responsivo: menu recolhível no celular/tablet ---------- */
@media (max-width: 900px) {
	.geapp-menu-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		position: fixed;
		top: 14px;
		left: 14px;
		z-index: 1000;
		width: 40px;
		height: 40px;
		border: none;
		border-radius: 8px;
		background: var(--geapp-cor-sidebar);
		cursor: pointer;
		padding: 0;
	}

	.geapp-menu-toggle span {
		display: block;
		width: 18px;
		height: 2px;
		margin: 0 auto;
		background: #fff;
		border-radius: 2px;
	}

	.geapp-sidebar-fundo {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		z-index: 998;
	}

	body.geapp-menu-aberto .geapp-sidebar-fundo {
		display: block;
	}

	.geapp-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 999;
		transform: translateX(-100%);
		transition: transform 0.2s ease;
		box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
	}

	.geapp-sidebar.geapp-sidebar-aberta {
		transform: translateX(0);
	}

	.geapp-topbar {
		padding-left: 64px;
	}

	.geapp-conteudo {
		padding: 18px;
	}
}

@media (max-width: 480px) {
	.geapp-topbar-nome {
		display: none;
	}
}
