body {
    font-family: 'Arial', sans-serif;
    background-color: #5e9d45;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.wrapper {
    width: 100%;
    /* max-width: 600px; */
    max-width: 768px;
    min-height: 78vh;
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;

}

.topo {
    display: flex;
    align-items: center;
    justify-content: center;
    /* flex-wrap: wrap; */
    /* padding: 1rem; */
    /* margin-top: -30px; */
    gap: 6rem;
    /* width: 100%; */
    /* box-sizing: border-box; */
}

h1{
    color:#fff;
    text-transform: uppercase;
}

h2 {
    color: #ffffff;
    font-size: 20px;
    font-weight: bolder;
    text-transform: uppercase;
    text-align: center;
}  

/* .topo h1 {
    flex: 1;
    text-align: center;
    margin: 0;
    color: #fcfcfc;
    text-transform: uppercase;
    font-size: 1.8rem;
}

.topo .logo {
    width: 100px;
    height: auto;
} */

.logo{
    width: 100px;
    height: auto;
}

pre {
    text-transform: uppercase;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

legend {
    font-size: 14px;
    color: #777b81;
    margin-top: 1rem;
    text-transform: uppercase;
    font-weight: bolder;
}

label {
    font-size: 10px;
    color: #2d791a;
    margin-top: 1rem;
    text-transform: uppercase;
    font-weight: bolder;
}

label {
    display: block;
    margin-bottom: 6px;
}

.obri{
    color: red;
    font-size: 10px;
}

input[type="file"] {
    height: 30px;
    margin-top: 4px;
    border-radius: 4px;
    font-weight: bolder;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

input[type="file"]{
    border: none;
}

#nome, #tipousuario, #apelido, #profissao, #usustatus,
#anos, #sapato, #calca, #cep, #logradouro, #bairro, #numero, 
#complemento, #latitude, #longitude, #usudatatermo, 
input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select {

    height: 30px;
    margin-top: 4px;
    border-radius: 4px;
    font-weight: bolder;
    text-align: center;
    text-transform: uppercase;
    /* width: 100%; */
    padding: 0 0.5rem;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

#inputPassword, #inputConfirm {
    height: 30px;
    margin-top: 4px;
    border-radius: 4px;
    font-weight: bolder;
    text-align: center;
    /* text-transform: uppercase; */
    /* width: 100%; */
    padding: 0 0.5rem;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

#bairro, #logradouro, #latitude, #longitude{
    background-color: #d9dada;
    
}

.select-instrumento, input[type="date"], .insta{
    display: flex;
    justify-content: center;
    width: 200px;
    height: 30px;
    margin-top: 4px;
    border-radius: 4px;
    font-weight: bolder;
    /* text-align: center; */
    text-transform: uppercase;
    /* width: 100%; */
    padding: 0 0.5rem;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

.select-camisa, input[type="number"]{
    display: flex;
    justify-content: center;
    width: 150px;
    height: 30px;
    margin-top: 4px;
    border-radius: 4px;
    font-weight: bolder;
    text-align: center;
    text-transform: uppercase;
    /* width: 100%; */
    padding: 0 0.5rem;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

/* AJAX BUSCAR NOME RIMISTA */
.lista-sugestoes {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    width: 40%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
}

.lista-sugestoes div {
    padding: 6px 10px;
    cursor: pointer;
}

.lista-sugestoes div:hover {
    background-color: #f2f2f2;
}

#instrumento, #numeroinstrumento, #taginstrumento, #statusinstrumento{
    display: flex;
    justify-content: center;
    width: 150px;
    height: 30px;
    margin-top: 4px;
    border-radius: 4px;
    font-weight: bolder;
    text-align: center;
    text-transform: uppercase;
    /* width: 100%; */
    padding: 0 0.5rem;
    box-sizing: border-box;
    border: 1px solid #ccc;
}

.foto-instrumento {
    display: flex;
    flex-direction: column;
    align-items: center;       /* Centraliza horizontalmente */
    justify-content: center;   /* Centraliza verticalmente */
    text-align: center;
    gap: 8px;                  /* Espaço entre label, imagem e input */
    width: 100%;
    margin: 0 auto;
    background-color: #fafafa;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}

.foto-instrumento img {
    width: 150px;
    height: 150px;
    border: 1px solid #ccc;
    border-radius: 8px;
    object-fit: cover;
    max-width: 100%;
    aspect-ratio: 1 / 1; /* Mantém proporção quadrada */
    background-color: #f7f7f7;
}

.foto-instrumento input[type="file"] {
    width: auto;
    max-width: 90%;
    margin: 0 auto;
    display: block;
    cursor: pointer;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 4px;
    text-align: center;
    font-size: 0.9rem;
}

.usuario{
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.instrumento{
    display: inline-block;
}

.inst{
    /* font-size: 12px; */
    font-weight: bolder;
    color: red;
}

.choice{
    display: block;
    flex-wrap: wrap;
    flex-direction: column;
    font-weight: bolder;
}


.mais{
    margin-right: 25px;
    position: relative;
}
/* .usuario .form-group {
    flex: 1;
  } */

.pass{
    display: flex;
    justify-content: center;
}

.menor{
    display: flex;
    justify-content: center;
    gap: 5px;
}

input[type="checkbox"] {
    transform: scale(1.5);
    margin-right: 5px;
    cursor: pointer;
}

input[type="submit"], button[type="submit"] {
    background-color: #2e6020;
    color: white;
    padding: 0.6rem 0.5rem;
    border: none;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    width: auto;
    margin: 1rem auto 0 auto;
    display: block;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover, button[type="submit"]:hover {
    background-color: #7d7f7c;
}

input[type="reset"] {
    display: inline-block;
    background-color: #3c7327;
    color: white;
    padding: 0.6rem 0.5rem;
    border: none;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    width: auto;
    margin: 1rem auto 0 auto;
    display: block;
    transition: background-color 0.3s ease;
}

input[type="reset"]:hover {
    background-color: #7d7f7c;
}

.hidden {
    display: none;
  }

  #usupai,
  #usumae, .nome {
      width: 100%;
      height: 30px;
      margin-top: 4px;
      border-radius: 4px;
      font-weight: bolder;
      text-align: center;
      text-transform: uppercase;
      padding: 0 0.5rem;
      box-sizing: border-box;
      border: 1px solid #ccc;
  }
  
  .form-group.responsavel {
      flex: 1;
      min-width: 250px;
  }
  
  label[for="usupai"],
  label[for="usumae"] {
      display: block;
      margin-bottom: 6px;
  }

.help-block{
    color: red;
    font-size: 10px;
}

.div-center{
    display: flex;
    justify-content: center;
}

.form-instrumento {
    flex: 1;
    min-width: 250px;
}

.radio-group {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}
  
.choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: normal;
    font-size: 14px;
}

.vestuario {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
  
.form-vestuario{
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.termo, .termocheckbox{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 12px;
}

.termo > span{
    font-size: 15px;
    font-weight: bolder;
    text-transform: uppercase;
}

span > a{
    color: red;
    font-size: 15px;
    font-weight: bolder;
    text-transform: uppercase;
    /* text-decoration: none;    */
}

.termocheckbox > input[type="checkbox"] {
    transform: scale(1.5);
    margin-right: 5px;
    cursor: pointer;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    /* display: flex;
    align-items: center; */
    position: absolute;
    right: 8px;
    top: 55%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 16px;
    padding: 0;
}

.toggle-password:hover {
    color: #000;
}




/* Responsivo para tablets */
@media (max-width: 1024px) {
    .wrapper {
        padding: 1.5rem;
    }

    .logo {
        width: 100px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .help-block{
        color: red;
        font-size: 10px;
    }
}

/* Responsivo para celulares */
@media (max-width: 600px) {
    .form-group.responsavel {
        width: 100%;
    }

    #usupai,#usumae,#camisa,#sapato,#calca,.select-instrumento {
        width: 100%;
        font-size: 0.9rem;
    }

    label[for="usupai"],
    label[for="usumae"] {
        font-size: 9px;
    }

    /* .form-instrumento{
        display: flex;
        justify-content: center;
    }

    .radio-group{
        width: 100%;
    } */

    .topo{
        /* flex-direction: column; */
        /* align-items: center; */
        gap: 2rem;
    }

    .logo {
        width: 60px;
    }

    h1 {
        font-size: 1.2rem;
    }

    pre {
        font-size: 14px;
    }

    input {
        font-size: 0.9rem;
        width: 100%;
    }

    .usuario{
        display: flex;
        justify-content: center;
        /* width: 100%; */
    }

    #apelido{
        margin-right: 100px;
    }

    #usupai, #usumae{
        width:100%;
    }

    legend,
    label {
        font-size: 9px;
    }

    .help-block{
        color: red;
        font-size: 10px;
    }

    .password {
        display: flex;
        /* align-items: center; */
        justify-content: space-between;
        justify-content: center;
        font-weight: bolder;
    }

}

/* FOOTER*/

footer{
    position: relative;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    display: flex;
    width: 100%;
    bottom: 0;
    align-items: center;
    justify-content: center;  
    /* z-index: -1; */
    /* border: #000 1px solid; */

}

#anoatual, span{
    margin-left: 4px;
}

@media (min-width: 336px) and (max-width: 700px) {

    .traco{
        display: none;
    }
    
    footer{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }


}
@media (max-width: 700px) {
    .foto-instrumento img {
        width: 70%;
        max-width: 160px;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }

    .foto-instrumento input[type="file"] {
        width: 85%;
        font-size: 0.9rem;
    }
}

/*  REGISTRAR INSTRUMENTO */

/* ESTILOS EXISTENTES: */
/* Ajuste exclusivo do campo RFID */
#taginstrumento {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

#instritcaracter, #instritobs {
    width: 100%;
    max-width: 100%;
    height: 30px;
    margin-top: 4px;
    padding: 0 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
#taginstrumento.tag-buscando {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

#taginstrumento.tag-sucesso {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* =======================================
 * ESTILOS DE FEEDBACK DE LED (NOVOS)
 * ======================================= */

/* LED Azul: Leitura inicial/Busca ativa (1 beep curto) */
#taginstrumento.tag-azul {
    border-color: #2196F3 !important;
    box-shadow: 0 0 10px rgba(33, 150, 243, .7);
}

#taginstrumento.tag-verde {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 10px rgba(76, 175, 80, .7);
}

#taginstrumento.tag-amarelo {
    border-color: #FFC107 !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, .7);
}

#taginstrumento.tag-vermelho {
    border-color: #F44336 !important;
    box-shadow: 0 0 10px rgba(244, 67, 54, .9);
}


.tag-info {
    margin-top: 8px;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 6px;
    font-size: 13px;
    color: #333
}
.form-group .tag-info {
    width: 100%;
    box-sizing: border-box;
}