/* Reset e configurações básicas */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
}

body {
	display: flex;
	flex-direction: column;
	font-family: "Inter", sans-serif;
	color: #333;
	line-height: 1.6;
	background-color: #f8f9fa !important;
}

.content {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.footer {
	flex-shrink: 0;
	padding: 1rem 0;
}

/* Container principal - compatível com Bootstrap */
.container {
	max-width: 400px;
	margin: 0 auto;
	padding: 20px;
	background-color: #f8f9fa !important;

	flex: 1 0 auto;
	/* Cresce para empurrar o footer para baixo */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

/* Sobrescrever container do Bootstrap para manter o design mobile-first */
@media (min-width: 576px) {
	.container {
		max-width: 400px;
	}
}

/* Sidebar fixa à esquerda em desktop */
@media (min-width: 992px) {
	#sidebarMenu {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		width: 250px;
		z-index: 1030;
		overflow-y: auto;
	}

	/* Conteúdo principal empurra para a direita da sidebar */
	.flex-grow-1 {
		margin-left: 250px;
	}
}

/* Em telas pequenas, permitir que o collapse do Bootstrap funcione normalmente (sidebar sobrepõe) */
@media (max-width: 991.98px) {
	#sidebarMenu {
		position: fixed;
		z-index: 1050;
		left: 0;
		top: 0;
		bottom: 0;
		width: 250px;
		transform: translateX(-100%);
		transition: transform 0.2s ease-in-out;
	}

	#sidebarMenu.show {
		transform: translateX(0);
	}
}
@media (min-width: 768px) {
	.container {
		max-width: 400px;
	}
}

@media (min-width: 992px) {
	.container {
		max-width: 400px;
	}
}

@media (min-width: 1200px) {
	.container {
		max-width: 400px;
	}
}

@media (min-width: 1400px) {
	.container {
		max-width: 400px;
	}
}

/* Header com logo */
.header {
	text-align: center;
	padding: 20px 0 30px;
	border-bottom: 1px solid #e9ecef;
	margin-top: 30px;
}

.logo {
	max-width: 200px;
	height: auto;
}

.logo-text {
	font-size: 24px;
	font-weight: 700;
	color: #2c3e50;
	margin-top: 10px;
}

/* Títulos */
h1 {
	font-size: 28px;
	font-weight: 600;
	color: #2c5aa0;
	text-align: center;
	margin-bottom: 30px;
	line-height: 1.3;
}

h2 {
	font-size: 20px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 20px;
	margin-top: 20px;
}

/* Botões - Estendendo os botões do Bootstrap */
.btn {
	display: block;
	width: 100%;
	padding: 15px 20px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-bottom: 15px;
	border: 2px solid transparent;
}

.btn-primary {
	background-color: #2c5aa0 !important;
	border-color: #2c5aa0 !important;
	color: white !important;
}

.btn-primary:hover {
	background-color: #1e3f73 !important;
	border-color: #1e3f73 !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.btn-secondary {
	background-color: transparent !important;
	color: #2c5aa0 !important;
	border: 2px solid #2c5aa0 !important;
}

.btn-secondary:hover {
	background-color: #2c5aa0 !important;
	color: white !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Lista de opções */
.options-list {
	list-style: none;
	padding-left: 0;
}

.option-item {
	background-color: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	margin-bottom: 10px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.option-item:hover {
	background-color: #f8f9fa;
	transform: translateX(5px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.option-link {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	text-decoration: none;
	color: #2c3e50;
}

.option-link:hover {
	color: #2c3e50;
	text-decoration: none;
}

.option-icon {
	font-size: 20px;
	margin-right: 15px;
	color: #6c757d;
	width: 30px;
	text-align: center;
}

.option-text {
	flex: 1;
	font-weight: 500;
}

.option-arrow {
	color: #6c757d;
	font-size: 16px;
}

/* Formulários - Compatível com Bootstrap */
.form-group {
	margin-bottom: 20px;
}

.form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #2c3e50;
}

.form-control {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ced4da;
	border-radius: 8px;
	font-size: 16px;
	transition: border-color 0.3s ease;
	background-color: #ffffff;
}

.form-control:focus {
	outline: none;
	border-color: #2c5aa0;
	box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

textarea.form-control {
	resize: vertical;
	min-height: 100px;
}

/* Botões de mídia */
.media-buttons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 20px;
}

.media-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 15px 10px;
	background-color: #2c5aa0;
	color: white;
	border: none;
	border-radius: 8px;
	text-decoration: none;
	font-size: 12px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.media-btn:hover {
	background-color: #1e3f73;
	color: white;
	text-decoration: none;
	transform: translateY(-2px);
}

.media-btn i {
	font-size: 24px;
	margin-bottom: 8px;
}

/* Área de upload */
.upload-area {
	border: 2px dashed #ced4da;
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	background-color: #ffffff;
	margin-bottom: 20px;
	transition: border-color 0.3s ease;
}

.upload-area:hover {
	border-color: #2c5aa0;
}

.upload-icon {
	font-size: 48px;
	color: #6c757d;
	margin-bottom: 15px;
}

.upload-text {
	color: #6c757d;
	font-size: 14px;
}

/* Navegação inferior */
.bottom-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e9ecef;
}

.nav-btn {
	padding: 12px 25px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.nav-btn-back {
	background-color: transparent;
	color: #2c5aa0;
	border: 2px solid #2c5aa0;
}

.nav-btn-next {
	background-color: #2c5aa0;
	color: white;
	border: 2px solid #2c5aa0;
}

.nav-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mapa */
.map-container {
	height: 300px;
	background-color: #e9ecef;
	border-radius: 8px;
	margin-bottom: 20px;
	position: relative;
	overflow: hidden;
}

.map-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #6c757d;
	font-size: 18px;
}

/* Footer container */
.cont {
	padding: 20px;
	border-top: 1px solid #e9ecef;
	margin-top: 30px;
}

/* Responsividade */
@media (max-width: 480px) {
	.container {
		padding: 15px;
		max-width: 100%;
	}

	h1 {
		font-size: 24px;
	}

	.btn {
		padding: 12px 15px;
		font-size: 15px;
	}

	.media-buttons {
		grid-template-columns: 1fr;
	}

	.media-btn {
		flex-direction: row;
		justify-content: center;
		gap: 10px;
	}

	.media-btn i {
		margin-bottom: 0;
		font-size: 20px;
	}
}

/* Animações */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in {
	animation: fadeIn 0.5s ease-out;
}

/* Estados de carregamento */
.loading {
	opacity: 0.6;
	pointer-events: none;
}

.spinner {
	border: 3px solid #f3f3f3;
	border-top: 3px solid #2c5aa0;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	animation: spin 1s linear infinite;
	margin: 20px auto;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Utilitários Bootstrap customizados */
.text-primary-custom {
	color: #2c5aa0 !important;
}

.bg-primary-custom {
	background-color: #2c5aa0 !important;
}

.border-primary-custom {
	border-color: #2c5aa0 !important;
}

/* Cards Bootstrap customizados */
.card {
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	border: 1px solid #e9ecef;
}

.card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
}

/* Alertas Bootstrap customizados */
.alert {
	border-radius: 8px;
	border: none;
	font-weight: 500;
}

.alert-primary {
	background-color: rgba(44, 90, 160, 0.1);
	color: #2c5aa0;
}

/* Badges Bootstrap customizados */
.badge-primary-custom {
	background-color: #2c5aa0;
	color: white;
}
#feedback {
	font-size: 0.95em;
}

.feedback-success {
	color: #155724;
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	padding: 10px;
	border-radius: 4px;
}

.feedback-error {
	color: #721c24;
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	padding: 10px;
	border-radius: 4px;
}

.feedback-loading {
	color: #0c5460;
	background-color: #d1ecf1;
	border: 1px solid #bee5eb;
	padding: 10px;
	border-radius: 4px;
}
