:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #4895ef;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --sidebar-width: 250px;
}

/* =============================
   RESET / BASE
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Segoe UI', sans-serif;
  height: 100%;
}

/* =============================
   BOTÕES MODERNOS DE AÇÃO
============================= */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(67, 97, 238, 0.07);
}

.btn-modern i {
  font-size: 15px;
  .btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;      /* Tamanho igual ao botão Nova Turma */
    min-width: 140px;        /* Largura mínima para padronizar */
    height: 40px;            /* Altura fixa para todos */
    font-size: 15px;         /* Tamanho de fonte consistente */
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(67, 97, 238, 0.07);
  }
  
  .btn-modern i {
    font-size: 17px;
  }}

/* Salvar */
.btn-save {
  background: var(--primary);
  color: #fff;
}
.btn-save:hover {
  background: var(--secondary);
}

/* Adicionar */
.btn-add {
  background: #22bb33;
  color: #fff;
}
.btn-add:hover {
  background: #1a8c26;
}

/* Editar */
.btn-edit {
  background: #ffc107;
  color: #212529;
}
.btn-edit:hover {
  background: #e0a800;
}

/* Excluir */
.btn-delete {
  background: #dc3545;
  color: #fff;
}
.btn-delete:hover {
  background: #b52a37;
}

/* Importar */
.btn-green {
  background: #17a2b8;
  color: #fff;
}
.btn-green:hover {
  background: #138496;
}

/* Layout moderno para inputs dos filtros */
.filtros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
}

.filtros-grid input,
.filtros-grid select {
  padding: 10px 12px;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  font-size: 14px;
  background: #fff;
  color: var(--dark);
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
}

.filtros-grid input:focus,
.filtros-grid select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.08);
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Botões principais (exceto editar/excluir) com tamanho igual ao botão de pesquisa e alinhados em linha */
.button-container > .btn-modern:not(.btn-edit):not(.btn-delete) {
  min-width: 140px;
  height: 40px;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(67, 97, 238, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  gap: 5px;
  margin-bottom: 0;
  margin-top: 0;
}

/* Botões de editar e excluir continuam menores e alinhados na mesma linha */
.button-container > .btn-edit,
.button-container > .btn-delete {
  min-width: 36px;
  height: 36px;
  font-size: 15px;
  padding: 0 10px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  margin-top: 0;
}

/* =============================
   DRAWER MODERNO (FORMULÁRIO LATERAL)
============================= */
.drawer {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  width: calc(100vw - var(--sidebar-width));
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 16px rgba(67, 97, 238, 0.10);
  z-index: 2000;
  padding: 32px 28px 24px 28px;
  overflow-y: auto;
  border-radius: 16px 0 0 16px;
  left: var(--sidebar-width);
  /* Nova animação */
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(.4,0,.2,1),
    opacity 0.25s cubic-bezier(.4,0,.2,1);
}

.drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}


.drawer h2 {
  color: var(--primary);
  margin-bottom: 22px;
  font-size: 26px;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-bottom: 22px;
}

.form-grid input,
.form-grid select {
  padding: 10px 12px;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  font-size: 14px;
  background: #fff;
  color: var(--dark);
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-grid input:focus,
.form-grid select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.08);
}

@media (max-width: 600px) {
  .drawer {
    width: 100vw;
    padding: 18px 8px 12px 8px;
    border-radius: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
/* =============================
   LAYOUT DIVIDIDO
============================= */
.container {
  display: flex;
  height: 100vh;
}

.left-side {
  flex: 1;
  background: url('https://source.unsplash.com/800x600/?technology') no-repeat center center;
  background-size: cover;
  position: relative;
}

.left-side::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.right-side {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

/* =============================
   LOGIN E REGISTRO (prefixo .auth-)
   Usa layout próprio para não afetar outras páginas
============================= */
.auth-container {
  display: flex;
  height: 100vh;
}

.auth-left-side {
  flex: 1;
  background: url('https://yourmindz.com/img/conceito-de-memoria-com-pecas-de-quebra-cabeca-e-cabeca.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  /* Updated: banner admin login */
}

.auth-left-side::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.auth-right-side {
  flex: 1;
  min-width: 320px;
  min-height: 100vh;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.auth-login-box {
  width: 100%;
  max-width: 400px;
  text-align: center;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.auth-login-box h1 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 32px;
}

.auth-login-box input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-size: 16px;
}

.auth-button {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.auth-button:hover {
  background-color: var(--secondary);
}

.auth-login-box p {
  margin-top: 20px;
  font-size: 14px;
}

.auth-login-box a {
  color: var(--primary);
  text-decoration: none;
}

.auth-login-box a:hover {
  text-decoration: underline;
}

/* RESPONSIVO LOGIN/REGISTRO */
@media(max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-left-side {
    height: 200px;
    flex: none;
  }

  .auth-right-side {
    flex: none;
    height: auto;
    padding: 20px;
    justify-content: flex-start;
    align-items: stretch;
  }
}

/* =============================
   SIDEBAR (mantendo estrutura original, só cores novas)
============================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100%;
  background: #10357d; /* azul escuro personalizado */
  color: #fff; /* texto branco */
  padding-top: 20px;
  transition: 0.3s;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .logo {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: #fff; /* logo branca */
}

.sidebar a {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  text-decoration: none;
  color: #fff; /* links brancos */
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 5px;
  margin: 3px 0;
}

.sidebar a i {
  margin-right: 8px;
  font-size: 17px;
  color: inherit; /* herda a cor do texto do link */
}

.sidebar a:hover, .sidebar a.active {
  color: #ffa400;
  transform: translateX(5px); /* animação de movimento para a direita */
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

/* Removido bloco vazio para evitar erro de conjunto de regras vazio */

/* Responsividade Sidebar */
@media(max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .sidebar a {
    padding: 10px 15px;
    font-size: 16px;
  }
}

/* =============================
   RESTANTE DO SEU CSS
============================= */

/* =============================
   MENU MOBILE FIXO NO RODAPÉ
============================= */
.mobile-menu {
  display: none;
}

/* Para tablets e celulares */
@media (max-width: 900px) {
  .sidebar {
    display: none !important;
  }
  .right-side, .container, .main-content, main {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .mobile-menu {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    border-top: 1px solid var(--light-gray);
  }
  .mobile-menu a {
    color: var(--gray);
    text-decoration: none;
    font-size: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.2s;
  }
  .mobile-menu a.active,
  .mobile-menu a:hover {
    color: var(--primary);
  }
  .mobile-menu span {
    font-size: 11px;
    margin-top: 2px;
  }
  body {
    padding-bottom: 60px; /* espaço para o menu mobile */
  }
}

/* Garante para celulares menores */
@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }
  .mobile-menu {
    display: flex;
  }
}

/* Loader moderno centralizado */
#loader {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16, 53, 125, 0.18);
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: background 0.3s;
}

#loader.active {
  display: flex;
}

#loader .loader-box {
  background: #fff;
  padding: 36px 44px;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(67, 97, 238, 0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

#loader .loader-spinner {
  font-size: 54px;
  color: var(--primary, #4361ee);
  animation: spin 1s linear infinite;
}

#loader .loader-text {
  font-size: 17px;
  color: var(--primary, #4361ee);
  font-weight: 500;
  letter-spacing: 0.5px;
}

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

.curso-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin: 10px;
  padding: 16px;
  width: 220px;
  min-height: 320px;
  transition: box-shadow 0.2s;
}
.curso-card:hover {
  box-shadow: 0 4px 16px rgba(67,97,238,0.15);
}
.curso-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 12px;
  background: #f0f0f0;
}
.curso-card h4 {
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 8px;
  text-align: center;
}
.curso-card p {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
  text-align: center;
}
.curso-card .card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.cursos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}
/* Filtros e drawer responsivo */
.filtros-grid input, .filtros-grid select {
  font-size: 13px !important;
}
.form-grid input, .form-grid select {
  font-size: 13px !important;
}

.exercicio-container {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.exercicio-titulo {
  text-align: center;
  color: #4a77ea;
  margin-bottom: 30px;
  font-size: 28px;
}
.exercicio-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}
.exercicio-item {
  background: #e9efff;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: background 0.3s;
}
.exercicio-item:hover {
  background: #d3dfff;
}
.exercicio-icone {
  background: #4a77ea;
  color: #ffffff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-weight: bold;
  font-size: 16px;
}
.exercicio-texto {
  font-size: 16px;
  color: #333333;
}

/* Inputs do formulário de exercícios no drawer e páginas: visual moderno e padronizado */
.exercicio-container input.input-modern,
.exercicio-container textarea.input-modern,
.exercicio-container select.input-modern {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--light-gray, #e9ecef);
  border-radius: 6px;
  font-size: 15px;
  background: #f8f9fa;
  color: var(--dark, #212529);
  margin-bottom: 10px;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

.exercicio-container input.input-modern:focus,
.exercicio-container textarea.input-modern:focus,
.exercicio-container select.input-modern:focus {
  border-color: var(--primary, #4361ee);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.08);
}

/* Título do formulário de exercícios (h1/h2) padronizado */
.exercicio-titulo,
.exercicio-container h1,
.exercicio-container h2 {
  color: var(--primary, #4361ee);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

/* Adicione ao seu style.css */

.form-lacunas-grid {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 32px 24px 24px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-lacunas-grid label {
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--primary, #2a3b8f);
  display: block;
}

.form-lacunas-grid textarea.input-modern {
  min-height: 70px;
  resize: vertical;
}

.alternativas-respostas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 18px;
}

.alternativas-respostas h3 {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: var(--primary, #2a3b8f);
}

.alternativas-respostas label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 400;
  color: #444;
}

@media (max-width: 700px) {
  .form-lacunas-grid {
      padding: 16px 6px;
  }
  .alternativas-respostas {
      grid-template-columns: 1fr;
      gap: 12px;
  }
}

/* Garante largura total e visual moderno para todos os campos do formulário dinâmico */
.input-modern[type="file"],
.input-modern[type="url"],
.input-modern[type="text"],
.input-modern,
textarea.input-modern,
select.input-modern {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
}

/* Ajuste para selects e inputs lado a lado em .row */
.resposta.row input,
.resposta.row select,
.associacao.row input,
.lacuna.row input,
.lacuna.row select {
  min-width: 120px;
  flex: 1 1 0;
}

/* Espaço e alinhamento para botões de ação dinâmicos */
.btn-modern,
.button-container button {
  margin-top: 0;
  margin-bottom: 0;
}

/* Botão de remover/excluir dinâmico */
.btn-delete,
button.remove-resposta,
button.btn-delete {
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 8px;
}
.btn-delete:hover,
button.remove-resposta:hover,
button.btn-delete:hover {
  background: #b52a37;
}

/* Botão de adicionar sessão dinâmico */
.btn-add,
button.add-sessao,
button.btn-add {
  background: #22bb33;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}
.btn-add:hover,
button.add-sessao:hover,
button.btn-add:hover {
  background: #1a8c26;
}

/* Responsividade extra para campos dinâmicos */
@media (max-width: 700px) {
  .resposta.row,
  .associacao.row,
  .lacuna.row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}

/* Padronização para tabela de exercícios */
.tabela-exercicios th,
.tabela-exercicios td {
    padding: 10px 18px; /* padding horizontal maior */
    font-size: 0.92em;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

/* Nova classe única para layout de páginas de informações/listagens */
.informacoes_page {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow-x: auto;
  padding: 32px 24px 24px 24px;
  margin-bottom: 32px;
}

.informacoes_page h1,
.informacoes_page h2,
.informacoes_page h3 {
  color: var(--primary);
  font-size: 28px;
  margin-bottom: 18px;
  font-weight: 600;
  text-align: left;
  letter-spacing: -1px;
}

.informacoes_page table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  background: #fff;
}

.informacoes_page th,
.informacoes_page td {
  padding: 12px 18px;
  font-size: 0.95em;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e9ecef;
}

.informacoes_page th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.informacoes_page tr:hover {
  background: #f8f9fa;
}

.informacoes_page td a {
  color: var(--primary);
  text-decoration: underline;
  word-break: break-all;
}

.informacoes_page td:last-child,
.informacoes_page th:last-child {
  text-align: center;
  white-space: nowrap;
  min-width: 120px;   /* aumente aqui para caber os 3 ícones */
  max-width: 140px;   /* aumente aqui para caber os 3 ícones */
  padding-right: 0;   /* remove espaço extra à direita */
  padding-left: 0;    /* remove espaço extra à esquerda */
}

@media (max-width: 900px) {
  .informacoes_page th,
  .informacoes_page td {
    font-size: 0.92em;
    padding: 8px 8px;
  }
  .informacoes_page {
    padding: 16px 4px 12px 4px;
  }
}

/* =============================
   TABELA LISTAGEM (nova classe)
============================= */
.tabela-listagem {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(74, 119, 234, 0.08);
  overflow: hidden;
  margin-bottom: 32px;
  font-family: 'Segoe UI', 'Inter', sans-serif;
  font-size: 12px; /* mantém fonte menor para caber mais conteúdo */
}

.tabela-listagem thead {
  background-color: #4a77ea;
  color: #fff;
}

.tabela-listagem th {
  padding: 10px 12px;      /* reduzido para caber mais */
  font-size: 11px;         /* reduzido para caber mais */
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-bottom: 2px solid #f0f0f0;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabela-listagem td {
  padding: 8px 10px;       /* reduzido para caber mais */
  font-size: 10px;         /* reduzido para caber mais */
  color: #2e2e2e;
  border-bottom: 1px solid #f4f4f4;
  vertical-align: middle;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabela-listagem tr:last-child td {
  border-bottom: none;
}

.tabela-listagem tbody tr:hover {
  background-color: #f8faff;
  transition: background-color 0.2s;
}

.tabela-listagem td.acoes {
  text-align: center;
  white-space: nowrap;
  min-width: 60px;
  max-width: 80px;
}

.tabela-listagem td.acoes a,
.tabela-listagem td.acoes button {
  display: inline-block;
  background-color: #4a77ea;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  margin: 0 2px;
  font-size: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.tabela-listagem td.acoes a:hover,
.tabela-listagem td.acoes button:hover {
  background-color: #3b63d2;
}

/* Responsivo */
@media (max-width: 900px) {
  .tabela-listagem {
    display: block;
    overflow-x: auto;
    font-size: 9px;
  }

  .tabela-listagem th,
  .tabela-listagem td {
    padding: 4px 6px;
    font-size: 8px;
    max-width: 55px;
    white-space: nowrap;
  }

  .tabela-listagem td.acoes {
    min-width: 60px;
  }
}

/* =============================
   NOVAS CLASSES DE BOTÕES COM ÍCONE
============================= */
.btn-icone {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  color: var(--primary, #4a77ea);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icone:hover {
  background-color: rgba(74, 119, 234, 0.12);
}

.btn-icone.excluir {
  color: var(--danger, #e74c3c);
}

.btn-icone.excluir:hover {
  background-color: rgba(231, 76, 60, 0.12);
}

.btn-icone.gerenciar {
  color: #22bb33; /* verde */
}
.btn-icone.gerenciar:hover {
  background-color: rgba(34, 187, 51, 0.12);
}

/* NOVO PADRÃO PARA FORMULÁRIO DE EXERCÍCIO - PREFIXO ex-form- */

.ex-form-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.ex-form-titulo {
  text-align: center;
  margin-bottom: 30px;
  color: #4361ee;
  font-size: 2rem;
  font-weight: 600;
}

.ex-form-label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
}

.ex-form-input,
.ex-form-textarea,
.ex-form-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 10px;
  background: #f8f9fa;
  color: #212529;
  box-sizing: border-box;
}

.ex-form-pergunta {
  background: #f9f9f9;
  padding: 20px;
  margin-top: 20px;
  border-radius: 10px;
  border-left: 5px solid #4361ee;
}

.ex-form-alternativa {
  margin-top: 10px;
}

.ex-form-btns {
  margin-top: 30px;
  display: flex;
  gap: 12px;
}

.ex-form-btn {
  padding: 12px 25px;
  background: #4361ee;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.ex-form-btn:hover {
  background: #3f37c9;  /* Editor Rich Text */
  .editor-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      background-color: #f8f9fa;
      border: 1px solid #ccc;
      padding: 10px;
      border-radius: 8px 8px 0 0;
  }
  .editor-toolbar select,
  .editor-toolbar button,
  .editor-toolbar input[type="color"] {
      padding: 6px 10px;
      border: 1px solid #ccc;
      border-radius: 6px;
      background: #fff;
      cursor: pointer;
      font-size: 14px;
  }
  .editor-toolbar button:hover {
      background-color: var(--primary, #4361ee);
      color: #fff;
  }
  .editor-wrapper {
      background: #fff;
      border: 1px solid #ccc;
      border-top: none;
      padding: 20px;
      border-radius: 0 0 8px 8px;
      margin-bottom: 16px;
  }
  .editor-area {
      min-height: 200px;
      outline: none;
      line-height: 1.6;
      font-size: 16px;
      width: 100%;
      background: #fff;
      border: none;
      resize: none;
  }
}

.ex-form-btn.ex-form-limpar {
  background: #6c757d;
}
.ex-form-btn.ex-form-limpar:hover {
  background: #495057;
}

.ex-form-btn.ex-form-cancelar {
  background: #dc3545;
}
.ex-form-btn.ex-form-cancelar:hover {
  background: #b52a37;
}
/* Editor Rich Text */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px 8px 0 0;
}
.editor-toolbar select,
.editor-toolbar button,
.editor-toolbar input[type="color"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}
.editor-toolbar button:hover {
    background-color: var(--primary, #4361ee);
    color: #fff;
}
.editor-wrapper {
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    margin-bottom: 16px;
}
.editor-area {
    min-height: 200px;
    outline: none;
    line-height: 1.6;
    font-size: 16px;
    width: 100%;
    background: #fff;
    border: none;
    resize: none;
}

.cards {
  display: flex;
  gap: 24px;
  margin: 32px 0 32px 0;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(67,97,238,0.08);
  padding: 28px 32px;
  min-width: 180px;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
  text-align: center;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(67,97,238,0.16);
  transform: translateY(-4px) scale(1.03);
}

.card i {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--primary);
}

/* Ícones e cores específicas dos cards do dashboard */
.card .icone-usuarios {
  color: #4a77ea; /* azul */
}
.card .icone-turmas {
  color: #22bb33; /* verde */
}
.card .icone-cursos {
  color: #ffa400; /* laranja */
}
.card .icone-alunos {
  color: #e74c3c; /* vermelho */
}

/* Exemplo de uso dos ícones (Font Awesome ou similar):
<i class="fa fa-users icone-usuarios"></i>
<i class="fa fa-layer-group icone-turmas"></i>
<i class="fa fa-book icone-cursos"></i>
<i class="fa fa-user-graduate icone-alunos"></i>
*/

/* Seções do dashboard */
.dashboard-section h3 .fa-clock { color: #4a77ea; }
.dashboard-section h3 .fa-bolt { color: #ffa400; }
.dashboard-section h3 .fa-chart-line { color: #22bb33; }
.dashboard-list .fa-user { color: #4a77ea; }
.dashboard-list .fa-user-graduate { color: #e74c3c; }
.dashboard-list .fa-layer-group { color: #22bb33; }
.dashboard-list .fa-book { color: #ffa400; }

.dashboard-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 18px;
}

.dashboard-header h2 {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.dashboard-header h2 span {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 400;
  margin-right: 8px;
}

.dashboard-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-search input[type="text"] {
  padding: 10px 14px;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
  color: var(--dark);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

.dashboard-search input[type="text"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(67,97,238,0.08);
}

.dashboard-search button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-search button:hover {
  background: var(--secondary);
}

/* Seções do dashboard */
.dashboard-section {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(67,97,238,0.07);
  padding: 22px 26px 18px 26px;
  margin-bottom: 28px;
}

.dashboard-section h3 {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-list li {
  font-size: 1rem;
  color: #333;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-list li:last-child {
  border-bottom: none;
}

.dashboard-list i {
  color: var(--primary);
  font-size: 1.1em;
}

/* Responsivo */
@media (max-width: 900px) {
  .cards {
    flex-direction: column;
    gap: 14px;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .dashboard-section {
    padding: 14px 8px 10px 8px;
  }
}