/**
/* Estilos para a interface pública dos quizzes do plugin We Love Geo Quiz
 */

.wlgq-quiz-wrapper {
	display: flex;
}

.wlgq-sidebar {
	font-family: inherit;
	/* width: 230px; */
	width: 12.2em;
	background-color: #f9f9f9;
	padding: 25px;
	/* box-shadow: 2px 0 5px rgba(0,0,0,0.1);*/
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	overflow-y: auto;
	z-index: 10;
	display: none;
}

.wlgq-sidebar h2 {
	font-size: 28px;
	text-align: center;
	margin-top: 2em;
	margin-bottom: 15px;
}

.wlgq-sidebar-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}


.wlgq-sidebar-nav button {
	width: 40px;
	height: 40px;
	border: 2px solid #0073aa;
	/* azul WordPress */
	border-radius: 10px;
	background-color: transparent;
	color: #0073aa;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.2s, color 0.2s;
	padding: 0;
	box-sizing: border-box;
}

.wlgq-sidebar-nav button:hover {
	background-color: #008ed1;
	color: #fff;
}

.wlgq-sidebar-nav button.active {
	background-color: #0073aa;
	color: #fff;
}

#wlgq-start-btn,
#wlgq-prev-btn,
#wlgq-next-btn,
#wlgq-review-btn,
#wlgq-restart-btn {
	display: none;
}

.wlgq-quiz-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.wlgq-flag-btn {
	border: 2px solid orange;
	background: transparent;
	color: orange;
	padding: 3px 12px;
	border-radius: 8px;
	font-size: 0.8rem;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.wlgq-flag-btn.active {
	background: orange;
	color: white;
}

.wlgq-quiz-container.wlgq-flagged {
	border: 2px solid orange;
}

.wlgq-sidebar-nav button.flagged {
	border: 2px solid orange;
}

.wlgq-main-content {
	/* margin-left: 230px; */
	margin-left: 12.2em;
	padding: 1.5rem;
	flex: 1;
	box-sizing: border-box;
	display: block;
	align-items: center;
	/* vertical */
}

.wlgq-quiz-header {
	font-family: inherit;
	background-color: #eee;
	padding: 10px 15px;
	font-weight: bold;
	color: #333;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	border-bottom: 1px solid #e0e0e0;
	font-size: 1.3rem;
	height: 50px;
}

.wlgq-quiz-container {
	border-radius: 8px;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
	padding: 0;
	width: 100%;
	max-width: 900px;
	margin: 50px 0;
	background-color: #f9f9f9;
}

.wlgq-quiz-container h2 {
	text-align: center;
	margin-bottom: 20px;
	font-size: 28px;
	color: #333;
}

.wlgq-screen {
	font-family: inherit;
	font-size: 1.2rem;
	font-weight: 400;
	padding: 30px;
	display: none;
	animation: fadeIn 0.4s ease-in-out;
}

.wlgq-screen.active {
	display: block;
}

.wlgq-screen p {
	margin: inherit;
}

#wlgq-question-content {
	border: 0px solid blue;
}

#wlgq-question-content p {
	font-weight: inherit;
}

/* Estilo das opções */
#wlgq-options-content {
	margin-left: 1.8em;
	margin-top: 50px;
	margin-bottom: 30px;
	border: 0px solid red;
}

#wlgq-options-content ul {
	display: grid;
	gap: 10px;
}

#wlgq-options-content ul li label {
	font-weight: inherit;
}

/* Estilo do inputType: radio */
#wlgq-options-content ul li label input[type="radio"] {
	border: 2px solid #0073aa;
	cursor: pointer;
	padding: 3px;
	min-width: 20px;
	min-height: 20px;
	border-radius: 50%;
	background-clip: content-box;
	-webkit-appearance: none;
}

input[type="radio"]:checked {
	background-color: #0073aa !important;
}

/* Estilo do inputType: checkbox */
#wlgq-options-content ul li label input[type="checkbox"] {
  -webkit-appearance: none; /* remover aparência default */
  -moz-appearance: none;
  appearance: none;
  border: 2px solid #0073aa;
  border-radius: 5px;          /* cantos arredondados */
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: relative;
  background-color: white;
  transition: background-color 0.2s, border-color 0.2s;
}

#wlgq-options-content ul li label input[type="checkbox"]:checked::after {
  content: '✔'; /* o visto */
  color: #0073aa;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centraliza */
  line-height: 1;
}


.wlgq-btn {
	display: inline-block;
	background-color: #0073aa;
	color: white;
	border: none;
	padding: 5px 15px;
	margin: 10px 5px;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.3s;
	font-size: 16px;
}

.wlgq-btn:hover {
	background-color: #005c8a;
}

.wlgq-navigation {
	text-align: center;
	margin-top: 30px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.wlgq-option {
	display: block;
	background: #fff;
	border: 2px solid #ccc;
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 10px;
	cursor: pointer;
	transition: border-color 0.3s, background 0.3s;
}

.wlgq-option:hover {
	border-color: #0073aa;
	background: #eef6fb;
}

.wlgq-option.selected {
	border-color: #0073aa;
	background: #d9edf7;
}

#wlgq-question-feedback.feedback-negative {
	border: 1px solid red;
	background-color: white;
	/* fundo branco para o texto da base de dados */
	padding: 10px;
	margin-bottom: 15px;
	border-radius: 4px;
	position: relative;
}


/* Container com borda e fundo branco para ambos */
#wlgq-question-feedback.feedback-positive,
#wlgq-question-feedback.feedback-partial,
#wlgq-question-feedback.feedback-negative {
	border: 1px solid;
	/* a cor vem depois, abaixo */
	background-color: white;
	border-radius: 4px;
	padding: 10px;
}

/* Cor da borda depende do tipo */
#wlgq-question-feedback.feedback-positive {
	border-color: #28a745; /* verde bootstrap */
}

#wlgq-question-feedback.feedback-partial {
	border-color: #ffc107; /* amarelo bootstrap */
}

#wlgq-question-feedback.feedback-negative {
	border-color: #dc3545; /* vermelho bootstrap */
}

#wlgq-question-feedback.feedback-positive .feedback-header,
#wlgq-question-feedback.feedback-partial .feedback-header,
#wlgq-question-feedback.feedback-negative .feedback-header {
	font-weight: 700;
	padding: 6px 10px;
	border-radius: 4px 4px 0 0;
	margin: -10px -10px 10px -10px;
	/* "abraça" a borda do container */
	font-size: 1rem;
}

/* Faixa "Correto" como div separada */
#wlgq-question-feedback.feedback-positive .feedback-header {
	background-color: #d4edda; /* verde claro */
	color: green;
}

/* Faixa "Parcialmente Correto" como div separada */
#wlgq-question-feedback.feedback-partial .feedback-header {
	background-color: #fff3cd; /* amarelo claro */
	color: #856404;
}

/* Faixa "Incorreto" como div separada */
#wlgq-question-feedback.feedback-negative .feedback-header {
	background-color: #f8d7da; /* vermelho claro */
	color: red;
}

/* Resultado */
#wlgq-results-content {
	font-size: 18px;
	text-align: center;
	color: #333;
	margin-bottom: 20px;
}

/* Animação simples
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
} */