@charset "utf-8";

/* =========================
   Reset e configurações globais
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 10px;
  min-height: 100vh;
}

/* =========================
   Container principal do formulário
========================= */
.container {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 700px;
  max-width: 960px;
  padding: 40px 50px;
  box-shadow: 0 0 20px rgba(0,0,0,0.06);
}

@media (max-width: 992px) {
  .container {
    width: 100% !important;
    padding: 30px 20px !important;
    margin: 0 10px;
  }
}

/* =========================
   Títulos
========================= */
h1 {
  text-align: center;
  color: #066a75;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 35px;
  position: relative;
}

h1::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(to right, rgba(147,184,189,0) 0%, rgba(147,184,189,0.8) 20%, rgba(147,184,189,1) 53%, rgba(147,184,189,0.8) 79%, rgba(147,184,189,0) 100%);
}

/* =========================
   Formulário e campos
========================= */
form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 30px;
}

form label {
  display: block;
  color: #405c60;
  font-weight: bold;
  margin-bottom: 6px;
}

form input[type="text"],
form input[type="date"],
form input[type="email"],
form input[type="password"],
form input[type="file"],
form select,
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #b2b2b2;
  border-radius: 5px;
  font-size: 15px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  transition: border-color 0.3s ease;
  resize: vertical;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #4ab3c6;
  outline: none;
}

#autobiografia,
#resumo_curricular {
  min-height: 150px;
  resize: vertical;
}

/* =========================
   Layout auxiliar
========================= */
.full-width {
  grid-column: 1 / -1;
}

.half {
  display: flex;
  gap: 20px;
}

.half > div {
  flex: 1;
}

/* =========================
   Botões
========================= */
input[type="submit"],
button.voltar-dashboard {
  width: 100%;
  background: #3d9db3;
  color: white;
  padding: 14px;
  border: none;
  font-size: 18px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  text-shadow: 0 1px 1px #333;
  transition: background 0.3s ease;
}

input[type="submit"]:hover,
button.voltar-dashboard:hover {
  background: #4ab3c6;
}

.botoes-grupo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 10px;
}

/* =========================
   Preview de imagem
========================= */
#preview-container {
  margin-top: 10px;
}

#preview-imagem {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 6px;
}



/* =========================
   Repeater Redes Sociais
========================= */
.grupo-rede-social {
  margin-bottom: 30px;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
}

.item-rede-social {
  border: 1px dashed #ccc;
  padding: 10px;
  margin-bottom: 10px;
  position: relative;
}

.item-rede-social .campo {
  margin-bottom: 8px;
}

.item-rede-social input[type="text"],
.item-rede-social input[type="url"] {
  width: 100%;
  height: 45px;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.remover-rede-social {
  background-color: #e74c3c;
  color: #fff;
  padding: 6px 10px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

#adicionar-rede-social {
  margin-top: 10px;
  background-color: #3498db;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* =========================
   CKEditor customizações
========================= */
.ck-editor__editable_inline {
  min-height: 200px;
}

@media (max-width: 992px) {
  .ck-editor__editable_inline {
    min-height: 350px;
  }
}

@media (max-width: 600px) {
  .ck-editor__editable_inline {
    min-height: 250px;
  }
}

.ck-editor {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.ck-editor__editable {
  min-height: 200px;
  box-sizing: border-box;
}

textarea.form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ck.ck-powered-by {
  display: none !important;
}

/* =========================
   Responsividade específica
========================= */
@media (max-width: 768px) {
  form {
    grid-template-columns: 1fr;
  }

  .half {
    flex-direction: column;
    gap: 10px;
  }

  body,
  form,
  input,
  select,
  textarea,
  button {
    font-size: 13px !important;
  }

  h1 {
    font-size: 22px;
  }

  input[type="submit"],
  button.voltar-dashboard {
    font-size: 15px;
  }

  .container {
    width: 100% !important;
    padding: 30px 20px;
    box-sizing: border-box;
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered,
  .select2-container--default .select2-results__option {
    font-size: 13px !important;
    line-height: 1.3;
    flex-wrap: wrap !important;
  }

  .select2-selection__rendered img {
    width: 24px !important;
    height: 24px !important;
    margin-right: 6px;
    object-fit: cover;
    border-radius: 4px;
  }

  .academia-option img {
    width: 20px !important;
    height: 20px !important;
  }
}
