/* GERAL (mantido igual) */
body {
  padding: 0;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

/* TELA DE LOGIN - VERSÃO COM LOGOS */
.login-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow-y: auto;
  background: linear-gradient(135deg, #66a593, #4b86b4);
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/assets/vca.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: -1;
}

.login-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* NOVOS ESTILOS PARA AS LOGOS */
.login-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.login-logo {
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: all 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.05);
}

/* Restante do CSS permanece igual */
.login-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
}

.login-button {
  width: 100%;
  padding: 12px;
  font-weight: bold;
  border-radius: 8px;
  background-color: #66a593;
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  margin-top: 10px;
}

.login-button:hover {
  background-color: #4b86b4;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-message {
  width: 100%;
  min-height: 50px;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-error-message {
  padding: 10px;
  margin: 0;
  width: 100%;
  text-align: center;
  border-radius: 8px;
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.mb-4 {
  text-align: center;
  width: 100%;
  font-size: 1.5rem;
  margin-bottom: 20px !important;
}

/* RESPONSIVIDADE (mantida igual) */
@media (max-width: 768px) {
  .login-logos {
    flex-direction: column;
    gap: 15px;
  }
  
  .login-logo {
    height: 40px;
  }

  .login-inner {
    padding: 25px;
    margin: 20px;
    max-width: 350px;
  }
  
  .login-input,
  .login-button {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .login-inner {
    padding: 20px;
    margin: 15px;
    max-width: 300px;
  }
  
  .login-input,
  .login-button {
    font-size: 14px;
  }
}

.login-button {
  width: 300px;
  margin-top: 10px;
}

.login-message {
  width: 300px;
  min-height: 40px;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-error-message {
  padding: 6px 12px;
  margin: 0;
  width: 100%;
  text-align: center;
}

.main-content {
  display: none;
}

/* BARRA LATERAL (DESKTOP) */
.fixed-radio-items {
  width: 14%;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 10px;
  overflow-y: auto;
  background-color: #f8f9fa;
  z-index: 100;
}

.fixed-radio-items img {
  width: 93%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* CONTEÚDO PRINCIPAL */
#apuracao-container,
#dynamic-content-container,
#dynamic-content-container-right {
  width: 86%;
  margin-left: 14%;
}

/* CARDS */
.card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  margin: 10px;
  overflow: hidden;
}

.card-body {
  padding: 10px;
}

.card-resumo {
  margin-bottom: 10px;
}

/* GRÁFICO */
.dash-graph,
.js-plotly-plot {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden !important;
}

.card-grafico {
  overflow: visible;
  padding: 0;
  width: 100%;
}

/* TOTALIZADOR */
#apuracao-totalizador {
  text-align: right;
  margin-top: 15px;
  font-weight: bold;
}

/* SEPARADOR ENTRE GRÁFICOS */
.graph-separator {
  border-top: 1px solid #ccc;
  margin-top: 25px;
  margin-bottom: 25px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  #btn-toggle-menu {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1101;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  #side-menu {
    display: none;
  }

  .fixed-radio-items {
    width: 50%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: white;
    z-index: 1000;
    overflow-y: auto;
    padding: 15px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  }

  .fixed-radio-items img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    margin-bottom: 10px;
  }

  #apuracao-container,
  #dynamic-content-container,
  #dynamic-content-container-right {
    width: 100%;
    margin-left: 0;
  }

  .dash-graph,
  .js-plotly-plot {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px auto 0 auto !important;
    height: auto !important;
    min-height: 550px !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  .card-grafico {
    padding: 0 !important;
    overflow: visible !important;
  }

  .js-plotly-plot .yaxislayer-above text {
    font-size: 10px !important;
  }

  #apuracao-totalizador {
    text-align: center !important;
    font-size: 0.9rem;
    margin-top: 15px;
  }

  .apuracao-row {
    display: flex;
    flex-direction: column;
  }

  #apuracao-col-grafico,
  #apuracao-col-cards {
    width: 100% !important;
    max-width: 100%;
  }

  #apuracao-cards .card-resumo {
    width: 80%;
    margin: 10px auto;
  }

  /* GERAIS PARA TODOS OS GRUPOS */
  .grafico-efetivo-card,
  .grafico-comissionado-card,
  .grafico-agente-card,
  .grafico-aposentado-card,
  .grafico-estagiario-card,
  .grafico-total-card {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
  }

  /* ... (restante do CSS mobile permanece igual) ... */
}

/* RESPONSIVO */
@media (max-width: 768px) {
  #btn-toggle-menu {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1101;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  #side-menu {
    display: none; /* Oculta a barra lateral no mobile */
  }

  .fixed-radio-items {
    width: 50%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: white;
    z-index: 1000;
    overflow-y: auto;
    padding: 15px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  }

  .fixed-radio-items img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    margin-bottom: 10px;
  }

  #apuracao-container,
  #dynamic-content-container,
  #dynamic-content-container-right {
    width: 100%;
    margin-left: 0;
  }

  .dash-graph,
  .js-plotly-plot {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px auto 0 auto !important;
    height: auto !important;
    min-height: 550px !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  .card-grafico {
    padding: 0 !important;
    overflow: visible !important;
  }

  .js-plotly-plot .yaxislayer-above text {
    font-size: 10px !important;
  }

  #apuracao-totalizador {
    text-align: center !important;
    font-size: 0.9rem;
    margin-top: 15px;
  }

  .apuracao-row {
    display: flex;
    flex-direction: column;
  }

  #apuracao-col-grafico,
  #apuracao-col-cards {
    width: 100% !important;
    max-width: 100%;
  }

  #apuracao-cards .card-resumo {
    width: 80%;
    margin: 10px auto;
  }

  /* GERAIS PARA TODOS OS GRUPOS */
  .grafico-efetivo-card,
  .grafico-comissionado-card,
  .grafico-agente-card,
  .grafico-aposentado-card,
  .grafico-estagiario-card,
  .grafico-total-card {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
  }

  .grafico-efetivo .js-plotly-plot,
  .grafico-comissionado .js-plotly-plot,
  .grafico-agente .js-plotly-plot,
  .grafico-aposentado .js-plotly-plot,
  .grafico-estagiario .js-plotly-plot,
  .grafico-total .js-plotly-plot {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box;
    overflow: hidden !important;
  }

  .grafico-efetivo .legend,
  .grafico-comissionado .legend,
  .grafico-agente .legend,
  .grafico-aposentado .legend,
  .grafico-estagiario .legend,
  .grafico-total .legend {
    position: relative !important;
    width: 100% !important;
    text-align: center !important;
  }

  .grafico-efetivo .svg-container,
  .grafico-comissionado .svg-container,
  .grafico-agente .svg-container,
  .grafico-aposentado .svg-container,
  .grafico-estagiario .svg-container,
  .grafico-total .svg-container {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .grafico-efetivo-card .card-body,
  .grafico-comissionado-card .card-body,
  .grafico-agente-card .card-body,
  .grafico-aposentado-card .card-body,
  .grafico-estagiario-card .card-body,
  .grafico-total-card .card-body {
    padding: 0 !important;
  }

  .grafico-efetivo .js-plotly-plot .legend,
  .grafico-comissionado .js-plotly-plot .legend,
  .grafico-agente .js-plotly-plot .legend,
  .grafico-aposentado .js-plotly-plot .legend,
  .grafico-estagiario .js-plotly-plot .legend,
  .grafico-total .js-plotly-plot .legend {
    position: relative !important;
    max-width: 50% !important;
    width: 100% !important;
    text-align: center !important;
    left: 0 !important;
    padding-right: 10px !important;
    box-sizing: border-box;
  }

  .grafico-efetivo .ytitle,
  .grafico-comissionado .ytitle,
  .grafico-agente .ytitle,
  .grafico-aposentado .ytitle,
  .grafico-estagiario .ytitle,
  .grafico-total .ytitle {
    display: none !important;
  }

  .grafico-efetivo .js-plotly-plot .main-svg,
  .grafico-comissionado .js-plotly-plot .main-svg,
  .grafico-agente .js-plotly-plot .main-svg,
  .grafico-aposentado .js-plotly-plot .main-svg,
  .grafico-estagiario .js-plotly-plot .main-svg,
  .grafico-total .js-plotly-plot .main-svg,
  .grafico-efetivo .svg-container,
  .grafico-comissionado .svg-container,
  .grafico-agente .svg-container,
  .grafico-aposentado .svg-container,
  .grafico-estagiario .svg-container,
  .grafico-total .svg-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  .grafico-efetivo .js-plotly-plot .yaxislayer-above,
  .grafico-comissionado .js-plotly-plot .yaxislayer-above,
  .grafico-agente .js-plotly-plot .yaxislayer-above,
  .grafico-aposentado .js-plotly-plot .yaxislayer-above,
  .grafico-estagiario .js-plotly-plot .yaxislayer-above,
  .grafico-total .js-plotly-plot .yaxislayer-above {
    transform: translateX(-10px) !important;
  }
}
