/* STYLES DO SETUP - GERALDO 13/12/2024 */

.container_carga {
  text-align: center;
  margin-top: 15px;
}
a.btn {
  color: #0056b3;
}

.setup button.btn.btn-success {
  width: 30%;
}
.setup div.btn.btn-success{
  width:30%;
}
button {
  color: #000;
}

div#output,
.logs {
  text-align: left;
  
}

div#output {
  text-align: left;
  background: #202a44;
  color: #fff;
  padding: 5px;
}

input[type='submit'] {
  max-width: 30%;
}

/* novos */
/* Geral */
form {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
  display: inline-block;
  color: #333;
}

#cargasga input[type='file'],
select,
input[type='submit'] {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

input[type='text'],
input[type='password'] {
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: all 0.3s ease;
  padding: 20px;
}

.form_input{
  margin-bottom: 10px;
}

input[type='file']:hover,
select:hover {
  border-color: #0078d7;
}

input[type='submit'] {
  background-color: #7089ac; /* Verde para confirmar */
  color: #fff;
}

input[type='submit']:hover {
  background-color: #5e779a;
}

/* Steps */
.stepa,
.stepb,
.stepc {
  height: 550px; /* height todos os steps */
  display: flex;
  margin: auto;
  /* max-width: 880px; */
  width: 100%;
  justify-content: space-between;
  flex-direction: column;
}
/* Indicadores de Progresso */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 20px;
}

.step-indicator div {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #ccc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.step-indicator .btnActive {
  background-color: #0078d7; /* Active step color */
}

.step-indicator .completed {
  background-color: #28a745; /* Completed step color */
}

/* Connecting Line (Always visible gray) */
.step-line {
  height: 4px;
  background-color: #ccc; /* Default gray color */
  flex-grow: 1;
  transition: background-color 0.3s ease;
}

/* Change line color when step is active or completed */
.step-indicator .completed + .step-line {
  background-color: #28a745; /* Completed line color */
}

.just-end {
  justify-content: flex-end;
}

/* Estilização do Progress Bar */
.progress {
  -webkit-appearance: none;
  appearance: none;
  width: 50%;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #e6e6e6;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Parte preenchida do progress */
.progress::-webkit-progress-bar {
  background-color: #e6e6e6;
  border-radius: 10px;
}

.progress::-webkit-progress-value {
  background: linear-gradient(to right, #0078d7, #00aaff);
  border-radius: 10px 0 0 10px;
}

.progress::-moz-progress-bar {
  background: linear-gradient(to right, #0078d7, #00aaff);
  border-radius: 10px 0 0 10px;
}

/* Ajuste visual para navegadores que suportam ::progress-bar */
.progress::-ms-fill {
  background: linear-gradient(to right, #0078d7, #00aaff);
  border-radius: 10px 0 0 10px;
  border: none;
}

/* Progresso acima de 99% */
.progress[value='100']::-webkit-progress-value,
.progress[value='100']::-moz-progress-bar {
  border-radius: 10px;
}

progress {
  background-color: rgb(185, 65, 255);
  width: 250px;
  margin-bottom: 0 !important;
  height: 10px;
  -webkit-animation: animate-stripes 5s linear infinite;
  animation: animate-stripes 5s linear infinite;
}

progress[value]::-webkit-progress-value::before {
  content: '80%';
  position: absolute;
  right: 0;
  top: -125%;
  border-radius: 50%;
}

/* Texto da porcentagem */
p.progress_percentage {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-top: 10px;
}

.setup_container h1 {
  font-size: 2em;
}

.setup_container {
  display: flex;
  flex-direction: column;
}

.select_setp_options {
  flex: 1 0;
}

#cargasga .form-control {
  /*     max-width: 30%; */
  border-radius: 5px;
}

.container_page {
  max-width: 1300px;
  margin: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
  border-radius: 8px; /* Levemente arredondado para um visual moderno */
  padding: 20px; /* Espaço interno para evitar que o conteúdo encoste nas bordas */
  background-color: #fff; /* Fundo branco para destacar o conteúdo */
  background-size: 100%;
  padding: 5vh 5vw;
}

.btn_setup {
  border-top: 1px solid;
  .btn {
    margin-top: 5px;
  }
}

.totvs {
  max-width: 220px;
  border-radius: 5px;
  border: 2px solid #0a2a56;
  box-shadow: 0px 0px 15px #0a2a56;
}
.welcome__tit1e {
  text-align: center;
  font-weight: bold;
  color: #0a2a56;
}

/* Parent container styling */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px)); /* Dynamic columns */
  gap: 1rem; /* Space between items */
  max-height: 300px; /* Set a maximum height */
  overflow-y: auto; /* Enable scrolling if necessary */
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  list-style: none; /* Remove default bullet points */
}

/* Individual item styling */
.checkbox-grid .form-check {
  display: flex;
  align-items: center;
  gap: 1rem;
}

i.fas {
  font-size: 2rem;
}

.logs {
  height: 300px;
  overflow: scroll;
  position: relative;
}

.logs .text-center {
  position: sticky;
  top: 0;
  width: 100%;
}

/* Container para organizar o elemento */
.file-input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 50px;
  max-width: 400px;
  margin: 20px auto;
}

/* Esconde o input de arquivo original */
.file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Estilização do label */
.file-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: #f4f4f9;
  border: 2px solid #0a2a56;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s, background-color 0.3s;
}

/* Botão interno para escolher arquivo */
.file-button {
  background-color: #0a2a56;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.file-button:hover {
  background-color: #0a2a56;
}

/* Texto de arquivo selecionado */
.file-name {
  margin-left: 10px;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Efeito ao passar o mouse sobre o label */
.file-label:hover {
  background-color: #eaf2ff;
  border-color: #0056b3;
}

.welcome__title {
  text-align: left;
  h2 {
    font-weight: bold !important;
  }
}
h2 {
  line-height: 2.5rem;
}

.welcome__text:first-letter {
  font-weight: bold;
  font-size: 2em;
}
.welcome__text {
  font-size: 1.5em;
}
.btn-primary {
  width: 150px;
}
.checked_tables {
  margin-block: 10px;
  font-weight: bold;
}

.form_new_instancia {
  flex-basis: 300px;
  font-size: 1.6rem;
  padding: 1rem;
}

i#iconToggle,
i#iconToggle2 {
  margin-left: -30px;
  cursor: pointer;
}

span.toggleInput-eye-slash_setup {
  position: absolute !important;
  right: 5px !important;
  top: 8px;
  cursor: pointer !important;
}
.min_height {
   min-height: 320px;
}

.right_col {
  overflow: hidden; /* ajusta o scroll que estava parecendo desnecessariamente */
}

figure:has(img) img {
  width: 70%;
  border: 2px solid #0a2a56;
  border-radius: 8px;
  box-shadow: 0px 0px 15px #0a2a56;
}

input.validation_error{
  border: 1px solid red !important;
}
span.validation_error{
  color: red;
  font-size: small;
}
div.validation_error {
  height: 10px;
}

input.validation_success{
  border: 1px solid green !important;
}

.setupblock_error{
  pointer-events: none;
  background-color: red !important;
}

.setup_error {
  cursor: pointer;
  background: #9e2a2b !important;
  padding: 4px 10px;
  color: #fff;
  border-radius: 4px !important;
}