/* css/avaliacoes.css */

.avaliacoes-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px; /* Espaço entre o título e o botão */
}

.page-header h1 {
    color: #333;
    font-size: 2em;
}

#aluno-selector-section {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#aluno-selector-section label {
    font-weight: bold;
}

#aluno-select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    min-width: 250px;
}

.arquivos-categoria {
    margin-bottom: 30px;
}

.arquivos-categoria h2 {
    font-size: 1.5em;
    color: #47ADB2; /* Cor do tema */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arquivos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.arquivo-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.arquivo-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.arquivo-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
}

.arquivo-card .btn {
    margin-right: 5px;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.arquivo-card .btn:hover {
    opacity: 0.85;
}

.privacy-notice {
    margin-top: 30px;
    padding: 15px;
    background-color: #f0f8ff; /* AliceBlue */
    border: 1px solid #d1e7fd; /* Um azul claro para a borda */
    border-radius: 5px;
    text-align: center;
    font-size: 0.9em;
    color: #0c5460; /* Um azul escuro para o texto */
}

.privacy-notice i {
    margin-right: 8px;
    color: #17a2b8; /* Info blue */
}

/* Estilos para o Modal de Comparação */
.modal-large {
  max-width: 90vw;
  width: 90vw;
}
.modal-large .modal-body {
    min-height: 70vh; /* Aumenta a altura mínima do corpo do modal */
}

.comparacao-controles {
    margin-bottom: 15px;
    text-align: center;
}

.comparacao-controles .btn {
    margin: 0 5px;
}

/* Modo Lado a Lado */
.comparacao-area-lado-a-lado {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.comparacao-area-lado-a-lado .zoom-img-container {
  position: relative;
  overflow: hidden;
  background: #222;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  height: 60vh;
  min-height: 320px;
}
.comparacao-area-lado-a-lado .zoom-img {
  transition: transform 0.12s linear;
  will-change: transform;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.comparacao-area-lado-a-lado .data-comparacao {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 3px 8px;
  border-radius: 0 0 8px 8px;
  font-size: 0.98em;
  z-index: 2;
  pointer-events: none;
}

/* Modo Sobreposta */
.comparacao-area-sobreposta {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: 320px;
  margin: 0 auto 50px auto;
  display: block;
  padding-bottom: 40px;
}
.comparacao-area-sobreposta .imagem-sobreposta-container {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 320px;
}
.comparacao-area-sobreposta img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.3s;
  background: #222;
}

/* Modo Alternar */
.comparacao-area-alternar {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comparacao-area-alternar .imagem-alternar-container {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 320px;
}
.comparacao-area-alternar img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.3s;
  background: #222;
}

/* Slider containers */
#sobreposicao-slider-container,
#zoom-slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  gap: 8px;
}

#sobreposicao-slider-container {
    position: static;
    margin-top: -30px; /* sobe um pouco para ficar logo abaixo da imagem */
    margin-bottom: 10px;
    z-index: 10;
    background: #fff;
    padding: 8px 0 0 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    width: 100%;
    max-width: 500px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Agrupamento por pose */
.pose-section {
    margin-bottom: 32px;
    padding: 18px 16px 12px 16px;
    background: #f7fafb;
    border-radius: 8px;
    border: 1px solid #e3e8ee;
    box-shadow: 0 1px 4px rgba(71,173,178,0.04);
}
.pose-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #47ADB2;
    font-size: 1.15em;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.pose-section .btn {
    margin-bottom: 10px;
}

/* Modal de seleção de fotos para comparação */
.modal-selecao-comparacao {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-selecao-comparacao > div {
    background: #fff;
    padding: 24px 20px 18px 20px;
    border-radius: 10px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.modal-selecao-comparacao h4 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #47ADB2;
    font-size: 1.1em;
}
.modal-selecao-comparacao label {
    display: block;
    margin-bottom: 10px;
    font-size: 1em;
    cursor: pointer;
}
.modal-selecao-comparacao input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #47ADB2;
}
.modal-selecao-comparacao .btn {
    margin-top: 10px;
    min-width: 90px;
}
.modal-selecao-comparacao .btn-secondary {
    margin-left: 10px;
}

/* Alternar ao clicar */
.comparacao-area-alternar {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.comparacao-area-alternar .imagem-container-comparacao {
    position: absolute;
    top: 0; left: 0; width: 100%;
    text-align: center;
}
.comparacao-area-alternar .imagem-container-comparacao:first-child {
    z-index: 1;
}
.comparacao-area-alternar .imagem-container-comparacao:nth-child(2) {
    z-index: 2;
}
.comparacao-area-alternar img {
    transition: opacity 0.3s;
}


/* Responsividade */
@media (max-width: 768px) {
    .arquivos-list {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }

    #aluno-selector-section {
        flex-direction: column;
        align-items: flex-start;
    }

    #aluno-select {
        width: 100%;
    }

    .comparacao-area-lado-a-lado {
        flex-direction: column;
        align-items: center;
    }
    .comparacao-area-lado-a-lado .imagem-container-comparacao {
        width: 95%;
        margin-bottom: 15px;
    }
}
@media (max-width: 900px) {
  .modal-large { width: 98vw; max-width: 98vw; }
  .comparacao-area-lado-a-lado { flex-direction: column; gap: 8px; }
  .imagem-container-comparacao { max-width: 100%; }
}
.foto-data-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: #47adb2a9;
  color: #fff;
  font-size: 0.95em;
  padding: 3px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(71,173,178,0.10);
  opacity: 0.93;
  pointer-events: none;
  z-index: 2;
}

.btn-comparar-foto {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #fff;
  color: #47ADB2;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  box-shadow: 0 2px 8px rgba(71,173,178,0.10);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
  opacity: 0.8;
}
.btn-comparar-foto:hover {
  background: #47ADB2;
  color: #fff;
}

.pose-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  cursor: pointer;
}

.pose-thumb-loading {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border: 4px solid #47ADB2;
  border-top: 4px solid #e3e8ee;
  border-radius: 50%;
  animation: pose-thumb-spin 1s linear infinite;
  z-index: 2;
  background: transparent;
  display: block;
}

@keyframes pose-thumb-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg);}
    100% { transform: translate(-50%, -50%) rotate(360deg);}
}

.pose-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #f5f5f5;
}

.btn-camera {
    background: #fff;
    border: 1px solid #47ADB2;
    color: #47ADB2;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    font-size: 1.2em;
    transition: background 0.2s, color 0.2s;
}
.btn-camera:hover {
    background: #47ADB2;
    color: #fff;
}

.pose-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pose-header h3 {
  margin: 0;
  font-size: 1.1em;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #47ADB2;
}
input:checked + .slider:before {
  transform: translateX(22px);
}

.comparacao-area-lado-a-lado .zoom-img-container {
  position: relative;
  overflow: hidden;
  background: #222;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comparacao-area-lado-a-lado .zoom-img {
  transition: transform 0.12s linear;
  will-change: transform;
  max-width: 100%;
  max-height: 60vh;
  display: block;
}

/* Adicione ao seu CSS se quiser espaçamento entre os botões */
.btn-upload {
    background: #fff;
    border: 1px solid #47ADB2;
    color: #47ADB2;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 1.2em;
    transition: background 0.2s, color 0.2s;
}
.btn-upload:hover {
    background: #47ADB2;
    color: #fff;
}

.btn-atualizar {
    background: #fff;
    border: 1px solid #47ADB2;
    color: #47ADB2;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: background 0.2s, color 0.2s;
}
.btn-atualizar:hover {
    background: #47ADB2;
    color: #fff;
}

.card-obs-aluno {
  margin: 32px auto 0 auto;
  max-width: 650px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(71,173,178,0.08);
  padding: 24px 28px 20px 28px;
  text-align: left;
  border: 1px solid #e0f3f4;
}

.obs-aluno-header {
  display: flex;
  align-items: center;
  font-size: 1.15em;
  font-weight: 600;
  color: #47ADB2;
  margin-bottom: 12px;
  gap: 8px;
}

#obs-aluno-input {
  width: 100%;
  min-height: 70px;
  border-radius: 8px;
  border: 1px solid #bfe6e8;
  padding: 10px 12px;
  font-size: 1em;
  margin-bottom: 14px;
  resize: vertical;
  background: #f8fcfc;
  transition: border 0.2s;
}
#obs-aluno-input:focus {
  border: 1.5px solid #47ADB2;
  outline: none;
  background: #fff;
}

#btn-salvar-obs-aluno {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 1em;
  padding: 8px 18px;
  border-radius: 6px;
  background: #47ADB2;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
#btn-salvar-obs-aluno:hover {
  background: #39969b;
}
.foto-obs-input {
  width: 100%;
  border-radius: 8px;
  border: 1.5px solid #bfe6e8;
  padding: 10px 12px;
  font-size: 1em;
  margin-top: 12px;
  margin-bottom: 0;
  resize: vertical;
  background: #f8fcfc;
  transition: border 0.2s, background 0.2s;
  min-height: 54px;
  box-sizing: border-box;
  color: #333;
  box-shadow: 0 1px 4px rgba(71,173,178,0.04);
}
.foto-obs-input:focus {
  border: 1.5px solid #47ADB2;
  outline: none;
  background: #fff;
}

/* Modal de foto ampliada */
.modal-foto-ampliada {
  max-width: 96vw;
  width: 96vw;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(71,173,178,0.18);
  padding: 0;
}
#visualizar-foto-modal.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
}
#visualizar-foto-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 8px 28px;
  border-bottom: 1px solid #e0f3f4;
}
#visualizar-foto-modal .modal-header h3 {
  margin: 0;
  font-size: 1.15em;
  color: #ffffff;
}
#visualizar-foto-modal .btn-close {
  background: none;
  border: none;
  font-size: 2em;
  color: #47ADB2;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}
#visualizar-foto-modal .modal-body {
  padding: 24px 28px 24px 28px;
}
#zoom-foto-container {
  overflow: hidden;
  border-radius: 10px;
  background: #f5f5f5;
}
#visualizar-foto-img {
  cursor: grab;
  user-select: none;
  touch-action: none;
}
#visualizar-foto-img:active {
  cursor: grabbing;
}