/* Modern Color System with CSS Variables */
:root {
	/* Core colors */
	--primary-hue: 204;
	--primary-color: hsl(var(--primary-hue) 85% 45%);
	--primary-light: hsl(var(--primary-hue) 85% 85%);
	--primary-dark: hsl(var(--primary-hue) 85% 35%);
	
	/* Navbar specific colors */
	--navbar-bg: #1a1f36;
	--navbar-text: #ffffff;
	--navbar-hover: rgba(255, 255, 255, 0.1);
	
	/* Semantic colors */
	--surface-color: #ffffff;
	--background-color: #f8fafc;
	--text-color: #1a1f36;
	
	/* System colors */
	--success-color: #22c55e;
	--error-color: #ef4444;
	
	/* Spacing system */
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 1.5rem;
	--spacing-lg: 2rem;
	
	/* Border radius */
	--radius-sm: 0.375rem;
	--radius-md: 0.5rem;
	--radius-lg: 1rem;
	--radius-full: 9999px;
}

/* Modern Reset */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-family: 'Inter', system-ui, sans-serif;
	background-color: var(--background-color);
	color: var(--text-color);
	margin: 0;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* Conteúdo principal */
main {
	flex: 1;
	padding-top: 0px;   /* Espaço para a navbar */
	padding-bottom: 0px; /* Espaço para o rodapé */
}

/* ⚠️  LEGACY NAVBAR STYLES - DEPRECATED ⚠️ 
   These styles are now handled by modern-design.css
   Keeping commented for reference only */

/*
.navbar {
	background: var(--primary-color);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: var(--spacing-sm) var(--spacing-lg);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.navbar-brand {
	font-size: 1.25rem;
	font-weight: 600;
	color: white;
	text-decoration: none;
}

.navbar-nav {
	display: flex;
	gap: var(--spacing-md);
	align-items: center;
}

.nav-link {
	color: white;
	text-decoration: none;
	padding: var(--spacing-xs) var(--spacing-sm);
	border-radius: var(--radius-md);
	transition: all 0.2s ease;
}

.nav-link:hover {
	background: rgba(255, 255, 255, 0.1);
	color: white;
}

.nav-link.active {
	color: white;
	font-weight: 500;
	background: rgba(255, 255, 255, 0.15);
}

Responsive navbar
@media (max-width: 768px) {
	.navbar {
		padding: var(--spacing-xs) var(--spacing-sm);
	}
	
	.navbar-nav {
		gap: var(--spacing-sm);
	}
}
*/

/* Modern Button Styles */
.btn {
	background: var(--primary-color);
	color: white;
	border-radius: var(--radius-full);
	padding: var(--spacing-sm) var(--spacing-lg);
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	border: none;
	margin: var(--spacing-xs);
}

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

/* Logo na página inicial */
.fullscreen-logo-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 70px - 60px); /* Altura da tela menos navbar e rodapé */
	text-align: center;
}

.logo-fullscreen {
	max-width: 100%;
	max-height: 80vh;
	height: auto;
	margin-bottom: 20px;
}

/* Texto de apoio */
.lead {
	font-size: 1.5rem;
	margin-bottom: 30px;
	color: var(--text-color);
}

/* Botões na página inicial */
.button-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.button-group .btn {
	margin: 10px;
	font-size: 1.25rem;
	padding: 15px 30px;
	border-radius: 50px;
}

.button-group .btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Títulos */
h1, h2 {
	margin-top: 20px;
	color: var(--primary-color);
	font-weight: bold;
	text-align: center;
}

/* Tabela */
.table {
	margin-top: 20px;
}

.table th, .table td {
	text-align: center;
	vertical-align: middle;
}

/* Alertas */
.alert {
	max-width: 500px;
	margin: 20px auto;
}

/* Modern Form Controls */
.form-control {
	border-radius: var(--radius-md);
	border: 1px solid hsl(var(--primary-hue) 30% 90%);
	padding: var(--spacing-sm);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group {
	text-align: left;
}

form {
	margin-bottom: 20px;
}

/* Lista de Opções no Quiz */
.list-group-item {
	font-size: 20px;
	cursor: pointer;
}

.list-group-item:hover {
	background-color: #dfe6e9;
}

/* Rodapé */
.footer {
	background-color: var(--primary-dark);
	color: white;
	padding: 10px 0;
}

/* Estilos para o Painel Administrativo */
.admin-panel h2 {
	margin-top: 30px;
}

.admin-panel ul {
	list-style-type: none;
	padding: 0;
}

.admin-panel li {
	font-size: 18px;
	margin: 10px 0;
}

/* Modern Responsive Design */
@media (max-width: 768px) {
	.navbar-title {
		font-size: 24px;
	}

	.btn {
		font-size: 1rem;
		padding: 12px 25px;
	}

	.nav-link {
		font-size: 16px;
	}

	.list-group-item {
		font-size: 18px;
	}

	.logo-fullscreen {
		max-height: 50vh;
	}

	.lead {
		font-size: 1.2rem;
	}

	:root {
		--spacing-lg: 1.5rem;
		--spacing-md: 1rem;
	}
	
	.quiz-card .card-body {
		padding: var(--spacing-md);
	}
}

/* Estilos do Quill Editor - ADICIONADO */
.ql-editor {
	min-height: 120px;
	background: white;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

.ql-container.ql-snow {
	border: 1px solid #dee2e6;
	margin-bottom: 1rem;
}

.ql-toolbar.ql-snow {
	border: 1px solid #dee2e6;
	background: #f8f9fa;
}

.question-content .ql-editor,
.options-list .ql-editor {
	min-height: auto;
	border: none;
	padding: 0.5rem;
}

.katex {
	font-size: inherit;
}

.ql-editor img {
	max-width: 100%;
	height: auto;
}

/* Estilos do Quiz - ATUALIZADO com tons de azul */
.question-content {
	background: #ffffff;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
	border: 1px solid rgba(13, 110, 253, 0.1);
}

/* Modern Quiz Options */
.options-list .form-check {
	background: var(--surface-color);
	border: 1px solid hsl(var(--primary-hue) 30% 90%);
	border-radius: var(--radius-md);
	padding: var(--spacing-md);
	margin-bottom: var(--spacing-sm);
	transition: all 0.2s ease;
}

.options-list .form-check:hover {
	background: var(--primary-light);
	border-color: var(--primary-color);
}

.options-list .form-check-input:checked + .form-check-label {
	color: #0d6efd;
}

.options-list .form-check-input:checked ~ .form-check {
	background: #e7f1ff;
	border-color: #0d6efd;
}

.options-list .form-check-label {
	width: 100%;
	padding-left: 12px;
	cursor: pointer;
}

/* Estilos do Quill no Quiz */
.question-content .ql-editor {
	min-height: auto;
	padding: 0;
	font-size: 1.2rem;
	color: #0a58ca;
	font-weight: 500;
}

.options-list .ql-editor {
	min-height: auto;
	padding: 0;
	color: #495057;
}

/* Fórmulas matemáticas no Quiz */
.katex {
	font-size: 1.1em;
}

/* Botão de responder */
.quiz-submit-btn {
	background-color: #0d6efd;
	border-color: #0d6efd;
	padding: 10px 24px;
	font-size: 1rem;
	border-radius: 6px;
	transition: all 0.2s ease;
	color: white;
	font-weight: 500;
}

.quiz-submit-btn:hover {
	background-color: #0a58ca;
	border-color: #0a58ca;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

/* Modern Card Styles */
.quiz-card {
	background: var(--surface-color);
	border-radius: var(--radius-lg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quiz-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.quiz-card .card-body {
	padding: 2rem;
}

/* Header/Title section styles */
.header {
	background: var(--primary-color);
	color: white;
	padding: var(--spacing-md) var(--spacing-lg);
	text-align: center;
}

.header h1 {
	color: white;
	margin: 0;
}

.header p {
	color: rgba(255, 255, 255, 0.9);
	margin: var(--spacing-xs) 0 0 0;
}

/* Top section with logo */
.top-section {
	background: var(--primary-color);
	width: 100%;
	padding: var(--spacing-lg) var(--spacing-lg);
	text-align: center;
	color: white;
}

.logo {
	max-width: 300px;
	margin-bottom: var(--spacing-md);
}

.main-heading {
	color: white;
	font-size: 1.5rem;
	margin: var(--spacing-md) 0;
}

.stats-text {
	color: white;
	font-size: 1.25rem;
	margin: var(--spacing-md) 0;
}

.main-container {
	background-color: var(--background-color);
	min-height: 100vh;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: var(--spacing-lg);
	text-align: center;
}

/* Garantindo que o cabeçalho e o footer fiquem azuis */
.navbar,
.header,
nav,
.nav-header,
.top-nav,
.site-header,
.footer,
footer,
.bottom-nav {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.navbar a,
.header a,
nav a,
.nav-header a,
.top-nav a,
.site-header a,
.footer a,
footer a,
.bottom-nav a {
  color: white !important;
}
/* Quill Editor Styles */
#question-editor,
#correct-answer-editor,
#option1-editor,
#option2-editor,
#option3-editor,
#option4-editor {
    height: 150px !important;
    margin-bottom: 1rem !important;
    background-color: white !important;
}

.ql-container.ql-snow {
    border: 1px solid #ccc !important;
    border-radius: var(--radius-md) !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    background-color: white !important;
    height: calc(100% - 42px) !important;
}

.ql-toolbar.ql-snow {
    border: 1px solid #ccc !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    background-color: #f8f9fa !important;
}

.ql-editor {
    min-height: 100px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    padding: 1rem !important;
}

.ql-editor.ql-blank::before {
    color: #999 !important;
    font-style: italic !important;
}

.ql-editor p {
    margin-bottom: 0.5rem !important;
}

.ql-editor img {
    max-width: 100% !important;
    height: auto !important;
}

/* Ensure form groups containing editors have proper spacing */
.form-group {
    margin-bottom: 1.5rem !important;
}

/* Ensure labels are properly spaced */
.form-group label {
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Modern Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
}

.pagination .page-link:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    color: var(--primary-dark);
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination {
        gap: 0.75rem;
    }
    
    .pagination .page-link {
        min-width: 1.75rem;
        height: 1.75rem;
        font-size: 0.875rem;
    }
}

/* Badge styles for questions counter */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
    font-size: 0.9rem;
    padding: 0.5em 0.75em;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.text-muted {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Custom Select Styles */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.form-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
    outline: none;
}

.form-select option {
    padding: 0.5rem;
    font-size: 0.95rem;
}

.form-select option:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Custom Label Styles */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Filter Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease-in-out;
    border-radius: 0.75rem;
}

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

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Input Group Styles */
.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    color: #6c757d;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

.input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
    border-radius: 0.375rem;
}

/* Form Control Styles */
.form-control {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);
}

/* Button Styles */
.btn {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.2);
}

/* Botão de Limpar Filtros */
.btn-primary:last-child {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-primary:last-child:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    transform: translateY(-1px);
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #495057;
    border-bottom-width: 1px;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
}

/* Badge Styles */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    font-size: 0.9rem;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

