/* =====================================================
   PÁGINA QUESTÕES COMENTADAS
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f7fa;
  color: #222;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* HEADER */
.header-thin {
  background: #f8f9fa;
  padding: 25px 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  border-left: 4px solid #076fde;
}

.header-thin h1 {
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 5px;
}

.header-thin p {
  font-size: 0.95em;
  color: #666;
}

/* CONTADOR DE SELEÇÃO */
.contador-selecao {
  position: sticky;
  top: 20px;
  z-index: 100;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contador-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contador-numero {
  font-size: 2.5em;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 10px 20px;
  border-radius: 8px;
}

.contador-texto {
  font-size: 1.1em;
}

.contador-acoes {
  display: flex;
  gap: 10px;
}


/* LISTA DE QUESTÕES */
.questoes-list {
  display: grid;
  gap: 20px;
}

.questao-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s;
  cursor: pointer;
  border-left: 4px solid #076fde;
}

.questao-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.questao-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.questao-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* BADGES COLORIDOS */
.badge {
  display: inline-block !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-size: 0.85em !important;
  font-weight: 600 !important;
  margin: 0 !important;
  border: none !important;
}

.questao-info .badge-ano,
.questoes-list .badge-ano,
.questao-card .badge-ano {
  background: #e8f5e9 !important;
  color: #388e3c !important;
}

.questao-info .badge-banca,
.questoes-list .badge-banca,
.questao-card .badge-banca {
  background: #f3e5f5 !important;
  color: #7b1fa2 !important;
}

.questao-info .badge-disciplina,
.questoes-list .badge-disciplina,
.questao-card .badge-disciplina {
  background: #fff3e0 !important;
  color: #f57c00 !important;
}

.questao-info .badge-concurso,
.questoes-list .badge-concurso,
.questao-card .badge-concurso {
  background: #e3f2fd !important;
  color: #1976d2 !important;
}

.questao-titulo {
  font-size: 1.1em;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
}

.questao-preview {
  color: #666;
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.questao-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e1e8ed;
}

.ver-questao {
  color: #076fde;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ver-questao:hover {
  text-decoration: underline;
}

/* MODO SELEÇÃO - CHECKBOXES */
.questao-card.modo-selecao {
  padding-left: 60px;
  position: relative;
}

.questao-checkbox {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.questao-checkbox input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: #28a745;
}

.questao-card.selecionada {
  border-left-color: #28a745;
  background: #f0f9f4;
}

/* ESTADOS VAZIOS E LOADING */
.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
}

.empty-state svg {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #555;
}

.empty-state p {
  color: #888;
}

