
body {
    background-color: #f5f7fa;
}

input:focus, select:focus {
    border-color: #003366 !important;
    box-shadow: 0 0 0 0.2rem rgba(0,51,102,.25);
}

.bg-primary {
    background-color: #0B4474 !important;
}


  
  .btn-voltar {
  background-color: #003366;
  color: white;
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.btn-voltar:hover {
  background-color: #00264d;
  color: white;
}

 .btn-verde {
  background-color: #32CD32;
  color: white;
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.btn-verde:hover {
  background-color: #228B22;
  color: white;
}

main {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.carteirinha {
  width: 300px;
  height: 540px;
  background-color: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  gap: 10px; /* Espaço uniforme entre os elementos */
}

/* Estrutura da ordem dos elementos */
.carteirinha {
  width: 300px;
  height: 540px; /* Altura fixa */
  background-color: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px; /* Reduzi o padding */
  box-sizing: border-box;
  position: relative; /* Para posicionamento absoluto do rodapé */
}

/* Título superior - fixo no topo */
.titulo-superior {
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  margin-bottom: 5px;
}

/* Foto - tamanho fixo centralizado */
.foto-container {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #003366;
  background-color: white;
  margin: 10px 0;
  flex-shrink: 0;
}

.foto-circular {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Área de conteúdo - cresce para ocupar espaço disponível */
.conteudo-superior {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 5px; /* Espaçamento reduzido entre elementos */
}

.qr-code-container {
  margin: 5px 0;
}

.conteudo-central {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.rodape {
  width: calc(100% - 30px); /* Considera o padding */
  text-align: center;
  font-size: 9px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  position: absolute;
  bottom: 15px;
  left: 15px;
}

/* Nome e função */
.dados-pessoa {
  text-align: center;
  margin-bottom: 10px;
  width: 100%;
}

.nome {
  font-size: 16px;
  display: block;
}

/* Comum - fica abaixo dos dados da pessoa */
.comum {
  font-size: 13px; /* Tamanho um pouco menor */
  text-align: center;
  line-height: 1.3;
}

/* QR Code - fica no final */
.qr-code {
  margin: 10px 0;
}


.aviso {
  font-size: 11px;
  line-height: 1.3;
  max-width: 90%;
}

.funcao-box {
    width: 100%;
    padding: 5px 8px;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    margin-top: 4px;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.4;
    color: black;
	font-weight: 700;
}

/* Adicione no final do seu arquivo CSS existente */

/* Menu Superior */
.bg-primary-dark {
    background-color: #0a3d6b !important;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white;
    background-color: rgba(255,255,255,0.1);
}

/* Menu Mobile */
.offcanvas-body .nav-link {
    padding: 12px 20px;
    color: #333;
    border-left: 3px solid transparent;
}

.offcanvas-body .nav-link.active {
    color: #0B4474;
    background-color: rgba(11, 68, 116, 0.1);
    border-left: 3px solid #0B4474;
}

.offcanvas-body .nav-link:hover {
    background-color: #f8f9fa;
}

/* Ajuste do conteúdo principal */
main {
    margin-top: 20px;
    padding-bottom: 20px;
}

/* Corrige espaçamento no mobile */
@media (max-width: 991.98px) {
    header {
        padding-bottom: 0 !important;
    }
}