/* css/screen.css */

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #e9f5f9;
  color: #333;
  padding: 20px;
  margin: 0;
}

form {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  max-width: 900px;
  margin: auto;
  box-shadow: 0 4px 12px rgba(0, 123, 173, 0.15);
}

h1 {
  text-align: center;
  color: #0072bb;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #005c8b;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border 0.3s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #0072bb;
  outline: none;
}

button[type="submit"] {
  margin-top: 25px;
  background-color: #0072bb;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background-color: #005c8b;
}

label.error {
  color: red;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

input.error,
select.error,
textarea.error {
  border: 2px solid red;
}

fieldset {
  border: none;
  margin-bottom: 20px;
  padding: 0;
}

.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #0072bb;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.form-feedback {
  margin-top: 10px;
  font-weight: bold;
  font-size: 14px;
}
.form-feedback.sucesso {
  color: green;
}


.form-feedback.erro {
  color: #b30000;
}


/* Layout de duas colunas para campos do formulário */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full-width {
  grid-column: 1 / -1;
}

/* Responsivo: tela menor volta a uma coluna */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}


/* Estilo visual distinto para formulários */

#formProfessor {
  border: 2px solid #0072bb;
  padding: 20px;
  background-color: #f0f8ff;
  border-radius: 8px;
}
#formProfessor h1, #formProfessor legend {
  color: #005999;
}

#formGeral {
  border: 2px solid #2e8b57;
  padding: 20px;
  background-color: #f5fff7;
  border-radius: 8px;
}
#formGeral h1, #formGeral legend {
  color: #1e6f47;
}


/* Estilo das abas */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

.tab {
  padding: 10px 20px;
  border: none;
  background-color: #eee;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px 6px 0 0;
  transition: background-color 0.3s;
}

.tab.ativo-professor {
  background-color: #0072bb;
  color: white;
}

.tab.ativo-geral {
  background-color: #2e8b57;
  color: white;
}


#voltarTopo {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #0072bb;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  display: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
}
#voltarTopo:hover {
  background-color: #005fa3;
}


.rodape {
  background-color: #f8f8f8;
  padding: 20px 10px;
  text-align: center;
  font-size: 14px;
  color: #333;
  margin-top: 50px;
  border-top: 1px solid #ccc;
}
.rodape a {
  color: #0072bb;
  text-decoration: none;
}
.rodape a:hover {
  text-decoration: underline;
}


.compartilhar-whatsapp {
  margin-top: 10px;
}
.compartilhar-whatsapp a {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 8px 14px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
}
.compartilhar-whatsapp a:hover {
  background-color: #1ebe5d;
}


.redes-sociais {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.redes-sociais a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  color: white;
}
.redes-sociais a.whatsapp { background-color: #25D366; }
.redes-sociais a.facebook { background-color: #3b5998; }
.redes-sociais a.twitter { background-color: #1DA1F2; }
.redes-sociais a:hover {
  opacity: 0.85;
}


.redes-sociais a.copiar-link { background-color: #444; }
.redes-sociais a.email { background-color: #ff8800; }
