/* public/styles/dashboard.css */

/* Estilos gerais da página */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    margin-top: -50px;
    padding: 120px;
}

h1, h2 {
    margin-top: 0;
    color: #0078d4;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.user-details {
    margin-right: 20px;
}

/* Estilo para o container dos botões */
.buttons-container {
    display: flex;
    justify-content: space-between; /* Distribui os botões nos dois extremos */
    width: 97%; /* Ocupa toda a largura disponível */
    padding: 0px 0px; /* Espaçamento ao redor dos botões */
    margin-bottom: 15px;
}

/* Estilo do botão "Sair" */
.logout-button {
    background-color: #ff4c4c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    /* margin-bottom: 3px; */
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #e63939;
}

/* Estilo do botão "Nova Requisição" */
.nova-requisicao-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 25px;
    /* margin-top: 10px; */
    /* margin-bottom: -5px; */
    margin-right: -30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.nova-requisicao-button:hover {
    background-color: #005a9e;
}

.dark-red {
    color: #8B0000; /* Vermelho escuro */
    font-weight: bold;
}

.requisicao-container {
    border: 1px solid #666; /* Define a largura, estilo e cor da borda */
    padding: 10px;          /* Adiciona um espaço interno para o conteúdo */
    border-radius: 5px;     /* (Opcional) Arredonda os cantos da borda */
    margin-bottom: 15px;
}


.requisicao-resumo {
    font-weight: bold;
    font-size: 18px;
    color: #0078d4;
    justify-content: space-between;
    align-items: center;
}

.requisicao-resumo p {
    margin: 4px 0; /* Define margens verticais menores */
    line-height: 1.2; /* Controle adicional do espaço entre linhas */
}


.status-container {
    margin-top: 10px;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.status-item {
    color: #666;
    font-size: 14px;
    margin: 4px 0;
    padding-left: 20px;
    position: relative;
}

.status-item.last-completed {
    color: #0078d4;
    font-weight: bold;
    font-size: 15px;
}

.status-item.future {
    color: #d3d3d3;
}

.status-item.completed {
    text-decoration: line-through;
}

.status-item.cancelled {
    color: red;
    font-weight: bold;
}



.status-item.alert-danger {
    color: red;
}

.send-report-button {
    padding: 10px 20px;
    background-color: #0078d4;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.send-report-button:hover {
    background-color: #005a9e;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.editar-btn {
    background-color: #007bff; /* Azul padrão */
    color: #fff; /* Texto branco */
    border: none; /* Remove a borda padrão */
    padding: 10px 20px; /* Espaçamento interno */
    font-size: 14px; /* Tamanho do texto */
    border-radius: 5px; /* Borda arredondada */
    cursor: pointer; /* Mostra o cursor de mão */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Animação suave */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

.editar-btn:hover {
    background-color: #0056b3; /* Azul mais escuro ao passar o mouse */
    transform: scale(1.05); /* Leve aumento ao passar o mouse */
}

.editar-btn:active {
    background-color: #003d80; /* Azul ainda mais escuro ao clicar */
    transform: scale(0.98); /* Leve redução ao clicar */
}

.editar-btn:focus {
    outline: 2px solid #80bdff; /* Realce ao focar com teclado */
    outline-offset: 2px; /* Espaço entre o botão e o realce */
}


  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .modal-actions {
    margin-top: 20px;
  }
  
  .modal-actions button {
    margin: 0 10px;
  }  

  .modal-actions .btn-confirm {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
  }
  
  .modal-actions .btn-cancel {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .modal-actions .btn-confirm:hover {
    background-color: #218838;
  }
  
  .modal-actions .btn-cancel:hover {
    background-color: #c82333;
  }

  .modal-actions .btn-confirmCancel:hover {
    background-color: #c82333;
  }

  .modal-actions .btn-voltar:hover {
    background-color: #d3d3d3;
  }

  .prestacao-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
  }
  
  .prestacao-btn:hover {
    background-color: #218838;
  }
  
  .status-item {
    color: #666;
    font-size: 14px;
    margin: 4px 0;
    padding-left: 20px;
    position: relative;
  }
  
  .status-item.completed {
    text-decoration: line-through; /* Riscado */
  }
  
  .status-item.last-completed {
    color: #0078d4;
    font-weight: bold;
  }
  
  .status-item.alert-danger {
    color: red; /* Destaque para "Diária Cancelada" */
    font-weight: bold;
  }
  .status-item.archived {
    color: darkgreen;
    font-weight: bold;
}




.cancel-btn {
  background-color: #dc3545; /* Vermelho mais claro */
  justify-content: flex-end;
}

.cancel-btn:hover {
  background-color: #c82333; /* Vermelho escuro ao passar o mouse */
}

/* Organização dos botões e da lista */
.button-status-container {
  display: flex;
  justify-content: flex-end; /* Botões alinhados à direita */
  align-items: flex-start; /* Alinhamento superior */
  gap: 10px; /* Espaçamento entre botões e lista */
}

.status-container {
  flex: 1; /* Ocupa o espaço restante */
  text-align: left; /* Alinhamento do texto à esquerda */
  justify-content: flex-start;
}

/* Estilo da lista de status */
.status-item {
  position: relative;
  padding-left: 25px;
  margin: 8px 0;
  font-size: 14px;
  color: #666;
}

.status-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  transform: translateY(-50%);
}

.status-item.completed::before {
  background-color: #28a745; /* Verde para concluído */
}

.status-item.last-completed::before {
  background-color: #0078d4; /* Azul para o último concluído */
}

.status-item.future::before {
  background-color: #ccc; /* Cinza para status futuros */
}

.status-item.alert-danger {
  color: #dc3545; /* Vermelho para alertas */
  font-weight: bold;
}

/* Efeito de foco para botões */
button:focus {
  outline: 2px solid #0078d4;
  outline-offset: 2px;
}

.button-group {
  display: flex; /* Define um layout flexível */
  justify-content: flex-end; /* Alinha os itens (botões) à direita */
  gap: 10px; /* Adiciona espaçamento uniforme entre os botões */
  margin-top: 10px; /* Adicione espaçamento superior, se necessário */
}

.button-group button {
  padding: 8px 16px; /* Ajuste o preenchimento do botão */
  font-size: 14px; /* Ajuste o tamanho da fonte */
  border: none; /* Remova bordas padrão (opcional) */
  border-radius: 4px; /* Adicione bordas arredondadas */
  cursor: pointer; /* Mude o cursor para indicar interatividade */
}

.prestacao-btn {
  background-color: #4CAF50; /* Cor específica para este botão */
  color: white;
}

.cancelar-diaria-btn {
  background-color: #f44336; /* Cor específica para o botão Cancelar */
  color: white;
}

.mudar-status-btn {
  background-color: #2196F3; /* Cor específica para o botão Mudar Status */
  color: white;
}

@media (max-width: 768px) {
  .button-group {
      flex-direction: column; /* Empilha os botões verticalmente */
      align-items: flex-end; /* Alinha os botões à direita */
  }
}

.button-container {
  display: flex;
  justify-content: flex-end; /* Alinha os botões à direita */
  gap: 10px; /* Espaçamento entre os botões */
  margin-top: 10px; /* Ajuste conforme necessário */
}

.requisicao-container .prestacao-btn,
.requisicao-container .cancel-btn,
.requisicao-container .status-btn {
  padding: 8px 16px; /* Ajuste de espaçamento interno */
  font-size: 14px; /* Tamanho da fonte */
  border-radius: 4px; /* Bordas arredondadas */
  cursor: pointer; /* Indica que o elemento é clicável */
}

.requisicao-container .prestacao-btn {
  background-color: #4CAF50; /* Verde */
  color: #fff;
}

.requisicao-container .cancel-btn {
  background-color: #f44336; /* Vermelho */
  color: #fff;
}

.requisicao-container .status-btn {
  background-color: #4CAF50; /* Azul */
  color: #fff;
}
/* Estilo para o botão Confirmar */
#confirmStatusChange {
  background-color: #4CAF50; /* Verde */
  color: white; /* Cor do texto */
  border: none; /* Sem borda */
  padding: 10px 20px; /* Espaçamento interno */
  font-size: 16px; /* Tamanho da fonte */
  font-weight: bold; /* Texto em negrito */
  border-radius: 5px; /* Bordas arredondadas */
  cursor: pointer; /* Cursor de clique */
}

#confirmStatusChange:hover {
  background-color: #45a049; /* Verde mais escuro no hover */
}

/* Negrito para os textos */
#currentStatus b,
#nextStatus b {
  font-weight: bold;
}

.btn-confirmCancel {
  background-color: red;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

.btn-confirmCancel:hover {
  background-color: darkred;
}

.solicitado-em {
  font-size: 12px; /* Tamanho menor */
  color: #555; /* Cor diferenciada */
  font-style: italic; /* Opcional: itálico */
}

.edit-btn {
  background-color: #007bff; /* Azul */
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.edit-btn:hover {
  background-color: #0056b3; /* Azul mais escuro no hover */
}
.folder-link-container {
    margin-top: 8px;
}

.folder-link {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* Espaço entre o emoji e o texto */
  border: 2px solid #0078d4; /* Apenas a borda azul */
  padding: 6px 10px;
  border-radius: 5px;
  background: linear-gradient(to bottom, #f5f5f5, #e0e0e0); /* Efeito leve de botão */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Pequena sombra para efeito 3D */
  text-decoration: none;
  color: #0078d4;
  font-weight: bold;
  font-size: 14px;
}

.folder-link:hover {
  background: linear-gradient(to bottom, #e0e0e0, #d0d0d0);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}


.folder-link:active {
  /* Simula o botão sendo pressionado */
  box-shadow: 0 1px 0 #0078d4;       /* Aproxima a sombra do topo */
  transform: translateY(2px);
}


.pendente-prestacao {
  background-color: rgba(255, 0, 0, 0.2); /* Fundo vermelho claro */
  border: 2px solid red;
  padding: 10px;
  border-radius: 5px;
}

.aviso-prestacao {
  color: red;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}
.finalidade-texto {
  color: #000 !important;  /* Preto */
  font-weight: normal !important; /* Remove o negrito */
}
.status-btn {
  background-color: #28a745;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.status-btn:hover {
  background-color: #218838;
}
/* 
Novo header
.main-header {
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
  padding: 20px 0;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.header-title {
  margin-top: 15px;
  font-size: 24px;
  color: #005a9e;
  font-weight: 600;
}

body {
  margin: 0;
  padding: 120px 20px 20px; /* Top | Horizontal | Bottom */
/* }

h1:first-of-type {
  margin-top: 30px;
} */ 

.spinner-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* Inicialmente escondido */
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8); /* Fundo semi-transparente */
  z-index: 1000;
  flex-direction: column; /* Alinha os elementos em coluna */
  
}

.spinner-container img {
  width: 100px; /* Tamanho maior */
  height: 100px;
  animation: spin 1s linear infinite; /* Adiciona a animação */
}
/* Animação para girar */
@keyframes spin {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}
/* Faixa de título da seção */
.titulo-secao {
  background-color: #e8e8e8;  /* Tom de cinza suave */
  padding: 10px 15px;
  font-size: 18px;
  color: #333;
  font-weight: bold;
  width: 100%;
  margin: 20px 0 10px 0;
  border-radius: 4px;
  box-sizing: border-box;
  text-align: left;  /* Alinha à esquerda */
}


/* Container da seção de diárias */
.requisicoes-section {
  margin-bottom: 20px;
}

.btn-mostrar-todas {
  padding: 12px 20px;          /* Mais preenchimento para um botão maior */
  font-size: 16px;             /* Tamanho de fonte maior */
  border-radius: 4px;
  background-color: #007bff;   /* Cor azul padrão */
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 20px 0;             /* Espaçamento vertical */
  display: inline-block;      /* Para definir tamanho uniforme se necessário */
}


.btn-mostrar-todas:hover {
  background-color: #005a9e;  /* Azul mais escuro no hover */
}

.btn-mostrar-mais {
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 4px;
  background-color: transparent;   /* fundo transparente */
  color: #007bff;                  /* azul padrão do texto */
  border: 2px solid #007bff;       /* contorno azul */
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 20px 0;
  display: inline-block;
}

.btn-mostrar-mais:hover{
  background-color: #007bff;   /* fundo azul no hover */
  color: #fff;                 /* texto branco no hover */
}


/* Mensagem para seções sem itens (caso use em criarTituloSecao ou similar) */
.no-items {
  font-style: italic;
  color: #555;
  padding: 10px;
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.button-row {
  display: flex;      /* Cria um contêiner flex */
  gap: 10px;          /* Espaçamento horizontal entre os botões */
  margin-top: 10px;   /* Espaçamento superior opcional */
  align-items: center; /* Alinha os itens verticalmente (opcional) */
}

/* Caso queira centralizar os botões no contêiner */
.button-row {
  justify-content: center; /* Ou flex-end, flex-start, etc. */
}
.nenhuma-diaria {
  font-size: 14px;
  color: #999; /* cinza claro */
}
/* ====== MODAL OVERLAY ====== */
.modal2-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;              /* Oculto por padrão */
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5); /* Fundo semitransparente */
  z-index: 9999;              /* Fica na frente de quase tudo */
}

/* ====== CONTEÚDO DO MODAL ====== */
.modal2-content {
  background-color: #fff;
  padding: 20px;
  width: 80%;                 /* Ajuste conforme desejar */
  max-width: 900px;           /* Limite de largura */
  border-radius: 8px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ====== BOTÃO DE FECHAR (X) ====== */
.close-modal2 {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* ====== BOTÃO DE INFORMAÇÕES ====== */
.info-button2 {  /* Azul */
  padding: 6px 12px;

  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  /* gap: 500px;  */
  background-color: transparent;   /* fundo transparente */
  color: #007bff;                  /* azul padrão do texto */
  border: 2px solid #007bff;       /* contorno azul */
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  /* margin: 20px 0; */
  display: inline-block;
  /* position: absolute; */
  top: 20px;    /* Ajuste conforme necessário */
  right: 20px;  /* Ajuste conforme necessário */
  /* margin-left: auto;     
  margin: 0 auto; */
  /* margin-right: -20px; */
  border-radius: 5px;
  font-size: 14px;

  /* margin-bottom: 15px; */
}

.info-button2:hover {
  background-color: #007bff;   /* fundo azul no hover */
  color: #fff;    /* Azul mais escuro no hover */
}
.pdf-container {
  width: 100%;
  height: 600px; /* altura desejada */
  overflow-y: auto;
  border: 1px solid #ccc; /* opcional, apenas para visualização */
}
.welcome-info-container {
  /* display: flex; */
  /* align-items: center; */
  gap: 70px; 
  /* margin-bottom: 15px; */
  /* margin-left: 20px;  */
  
  
    display: flex;
    /* gap: 10px;  */
    margin-top: 10px; 
    align-items: center;  
    justify-content: flex-start; 
    width: 97%;
    margin-bottom: 15px;
  
}

.welcome-text {
  font-size: 24px;
  margin: 0;
}

/* Trunca em 1 linha e mostra reticências */
.finalidade-texto {
  display: inline-block;
  max-width: 600px;      
  white-space: nowrap;   
  overflow: hidden;      
  text-overflow: ellipsis;
  vertical-align: top;      /* << antes era bottom, agora alinha o texto no topo */
  cursor: pointer;
}

/* Quando expandido, permite multiline */
.finalidade-texto.expanded {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* Link “(mostrar mais)” / “(mostrar menos)” mais sutil */
.toggle-finalidade {
  margin-left: 4px;
  font-size: 0.75em;         /* menor */
  color: #6c757d;            /* cinza sutil */
  text-decoration: none;
  vertical-align: top;       /* alinha no topo junto com o span */
}
.toggle-finalidade:hover {
  text-decoration: underline;
}

.user-info-wrapper {
  position: relative;
  max-width: 600px;
  margin: 1.5rem auto;
  padding-left: 60px;    /* espaço para a foto “fora” do card */
}

.user-info-card {
  background: rgba(255, 255, 255, 0); /* card transparente */
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 1rem 1.5rem;
}

.user-picture-outside {
  position: absolute;
  left: 0;                   /* “fora” do card, à esquerda */
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #005a9e;
  background: #fff;          /* garante contraste ao redor do círculo */
}

.user-details .welcome {
  margin: 0 0 0.25rem 0;
  font-size: 1.75rem;
  color: #005a9e;
}

.user-details p {
  margin: 0.15rem 0;
  font-size: 1rem;
}

.dark-red {
  color: #8B0000;
}
