html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "SF Pro Display", "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  color: #000;
  scroll-behavior: smooth;
  box-sizing: border-box;
}
html.dark, body.dark {
  background-color: #000 !important;
  color: #fff !important;
}
*, *::before, *::after {
  box-sizing: inherit;
}
header {
  display: flex;
  align-items: center;
  padding: 20px;
  background: linear-gradient(90deg, #ffffff 60%, #ddeeff 100%);
  border-bottom: 1px solid #ccc;
}
html.dark header {
  background: #000 !important;
  border-bottom: 1px solid #444 !important;
}
.header-content {
  width: 100%;
}
html.dark .header-content {
  background: #111 !important;
}
header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #000;
  letter-spacing: 1px;
}
html.dark header h1 {
  color: #fff !important;
}
nav {
  text-align: center;
  margin: 20px 0;
}
nav a {
  color: #333;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s;
}
html.dark nav a {
  color: #aaa;
}
nav a:hover {
  color: #007aff;
}
html.dark nav a:hover {
  color: #66aaff;
}
.container,
.conteudo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}
.card {
  background: #f8f8f8;
  border: 1px solid #ddd;
  margin: 15px;
  padding: 20px;
  width: 280px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
html.dark .card {
  background: #1a1a1a;
  border: 1px solid #333;
  box-shadow: 0 6px 12px rgba(255,255,255,0.1);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}
.card img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}
.card h3 {
  margin: 10px 0;
  font-size: 20px;
  font-weight: 600;
  color: #111;
}
html.dark .card h3 {
  color: #fff;
}
.botao {
  display: inline-block;
  padding: 12px 18px;
  background: #007aff;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 3px 5px rgba(0,0,0,0.15);
}
.botao:hover {
  background: #005ecb;
}
html.dark .botao {
  background: #005ecb;
  box-shadow: 0 3px 5px rgba(255,255,255,0.15);
}
html.dark .botao:hover {
  background: #007aff;
}
.paginacao {
  display: grid;
  grid-template-columns: repeat(6, auto);
  grid-gap: 5px;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
  text-align: center;
}
.paginacao a,
.paginacao span {
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  background: #eee;
  text-decoration: none;
  transition: background 0.3s;
}
html.dark .paginacao a,
html.dark .paginacao span {
  color: #fff;
  background: #222;
}
.paginacao a:hover {
  background: #ddd;
}
html.dark .paginacao a:hover {
  background: #444;
}
.pagina-ativa {
  background: #007aff;
  color: #fff;
  font-weight: bold;
}
.form-login,
.form-nova,
.form-busca {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
html.dark .form-login,
html.dark .form-nova,
html.dark .form-busca {
  background: #1a1a1a;
  color: #fff;
  box-shadow: 0 4px 8px rgba(255,255,255,0.1);
}
.form-login h2,
.form-nova h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
}
.form-login input,
.form-nova input,
.form-nova textarea,
.form-busca input {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #ccc;
  color: #000;
  border-radius: 6px;
  font-size: 16px;
  transition: border 0.3s;
}
html.dark .form-login input,
html.dark .form-nova input,
html.dark .form-nova textarea,
html.dark .form-busca input {
  background: #333 !important;
  border: 1px solid #555 !important;
  color: #fff !important;
}
.form-login input:focus,
.form-nova input:focus,
.form-nova textarea:focus,
.form-busca input:focus {
  border-color: #007aff;
  outline: none;
}
.form-login button,
.form-nova button,
.form-busca button {
  display: block;
  width: 100%;
  padding: 12px;
  background: #007aff;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  border-radius: 6px;
  transition: background 0.3s;
}
.form-login button:hover,
.form-nova button:hover,
.form-busca button:hover {
  background: #005ecb;
}
.form-busca {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.form-busca input {
  flex: 1 1 auto;
}
.form-busca button {
  width: auto;
  padding: 12px 20px;
}
.erro {
  color: #ff3b30;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 600;
}
.container-tabela {
  padding: 20px;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
html.dark table {
  background: #111 !important;
  border: 1px solid #444 !important;
}
html.dark table th {
  background: #222 !important;
  color: #fff !important;
  font-weight: bold !important;
}
html.dark table td {
  background: #1a1a1a !important;
  color: #ddd !important;
  border: 1px solid #444 !important;
}
th,
td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 15px;
}
th {
  background: #f2f2f2;
  font-weight: 600;
}
html.dark th {
  background: #222;
}
.sair {
  background: #ff3b30 !important;
  text-decoration: none;
}
.sair:hover {
  background: #d32f2f !important;
}
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.video-responsive iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border: 0;
}
.comandos {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
  margin-top: 15px;
  overflow: auto;
  font-size: 14px;
}
html.dark .comandos {
  background: #1a1a1a !important;
  border: 1px solid #444 !important;
  color: #fff !important;
}
.aula-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}
.video-area {
  flex: 1;
  min-width: 320px;
  max-width: 700px;
  margin: 0 auto;
}
.descricao-texto {
  margin-top: 15px;
  padding: 10px;
  text-align: justify;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  width: 100%;
  box-sizing: border-box;
}
.sugestoes-area {
  flex: 0.3;
  min-width: 280px;
  max-width: 300px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  align-self: flex-start;
}
html.dark .sugestoes-area {
  background: #111 !important;
  border: 1px solid #333 !important;
}
.sugestoes-area h3 {
  margin-top: 0;
  font-size: 18px;
}
.sug-card {
  background: #fff;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 4px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
html.dark .sug-card, html.dark .sug-card h4 {
  background: #222 !important;
  border: 1px solid #444 !important;
  color: #fff !important;
}
.sug-card img {
  max-width: 100%;
  border-radius: 4px;
}
.sug-card h4 {
  margin: 10px 0;
  font-size: 16px;
}
.botao-sm {
  display: inline-block;
  padding: 8px 12px;
  background: #007aff;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}
.botao-sm:hover {
  background: #005ecb;
}
html.dark #btnShare {
  background: #333 !important;
  color: #fff !important;
  border: 1px solid #555 !important;
}
@media (max-width: 600px) {
  .paginacao {
    display: block;
    text-align: center;
    margin-top: 20px;
  }
  .paginacao a, .paginacao span {
    display: block;
    margin: 8px auto;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .card {
    width: calc(50% - 30px);
    margin: 10px 5px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  .card {
    width: 100%;
    margin: 10px auto;
  }
  .form-login,
  .form-nova,
  .form-busca {
    margin: 20px auto;
    padding: 20px;
  }
  header {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .video-area {
    max-width: 100%;
    margin: 0;
  }
  .sugestoes-area {
    max-width: 100%;
    width: 100%;
    flex: none;
    margin-top: 20px;
  }
}
@media (max-width: 480px) {
  nav a {
    margin: 0 10px;
    font-size: 14px;
  }
  .card {
    width: 95%;
  }
  .card h3 {
    font-size: 18px;
  }
  .form-login button,
  .form-nova button,
  .form-busca button {
    font-size: 14px;
  }
  .sug-card h4 {
    font-size: 14px;
  }
}
#btnShare {
  display: none;
}
@media (max-width: 768px) {
  #btnShare {
    display: inline-block !important;
  }
}
html.dark header {
  background: #111 !important;
  border-bottom: 1px solid #444 !important;
}

html.dark .sugestoes-area {
  background: #111 !important;
  border: 1px solid #333 !important;
}

html.dark .sug-card {
  background: #222 !important;
  border: 1px solid #444 !important;
  color: #fff !important;
}

html.dark .sug-card h4 {
  color: #fff !important;
}

html.dark table {
  background: #111 !important;
  border: 1px solid #444 !important;
}

html.dark table th {
  background: #222 !important;
  color: #fff !important;
  font-weight: bold !important;
}

html.dark table td {
  background: #1a1a1a !important;
  color: #ddd !important;
  border: 1px solid #444 !important;
}

html.dark .form-login input,
html.dark .form-nova input,
html.dark .form-nova textarea,
html.dark .form-busca input {
  background: #333 !important;
  border: 1px solid #555 !important;
  color: #fff !important;
}
