:root {
  --project-color-primary: #cff9e9;
  --project-color-secundary: #1a77b5;
}
.navbar,
header,
footer {
  z-index: 2;
  background-color: var(--project-color-secundary);
  background: transparent;
  color: #ffffff;
}

.c-pointer {
  cursor: pointer;
}

.navbar-light .navbar-nav .nav-link.disabled {
  color: rgba(255, 255, 255, 0.78);
}

.navbar-light .navbar-nav .nav-link {
  color: #000;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .show > .nav-link {
  background-color: var(--project-color-primary);
  color: #000 !important;
}

.title-table {
  background-color: var(--project-color-secundary);
  color: #ffffff;
}

.border-rounded-theme {
  border: 4px SOLID #929795;
}
.border-rounded-theme-secundary {
  border: 4px SOLID var(--project-color-secundary);
}

.td-image label,
.td-name label,
.td-office label,
.td-branco label,
.td-nulo label {
  cursor: pointer;
}

.mesgs {
  width: 100%;
}

.msg_history {
  height: 450px;
  overflow-y: auto;
}

.all-docs {
  height: 500px;
  overflow-y: auto;
}

.box-height {
  height: 522px;
}

.incoming_msg_img {
  display: inline-block;
  width: 6%;
}

.received_msg {
  display: inline-block;
  padding: 0 0 0 10px;
  vertical-align: top;
  width: 100%;
}

.received_withd_msg {
  width: 90%;
}

.time_date {
  color: #747474;
  display: block;
  font-size: 12px;
  margin: 3px 0px 5px 6px;
}

.incoming_msg,
.outgoing_msg {
  overflow: hidden;
  margin: 26px 0 26px;
  text-align: justify;
}

.sent_msg {
  width: 80%;
  padding: 0 0 0 10px;
  display: inline-block;
  vertical-align: top;
}

.sent_msg p,
.received_withd_msg p {
  background: #ebebeb none repeat scroll 0 0;
  border-radius: 3px;
  font-size: 1.2em;
  margin: 0;
  padding: 5px 10px 5px 12px;
  width: 100%;
}

.sent_msg p {
  background: var(--project-color-secundary) none repeat scroll 0 0;
  color: #fff;
}

.type_msg {
  position: relative;
}

.input_msg_write input {
  background: rgb(255, 255, 255) none repeat scroll 0 0;
  border: medium none;
  color: #4c4c4c;
  font-size: 1.2em;
  min-height: 48px;
  width: 100%;
  padding: 2% 7% 2% 2%;
}

.input_msg_write input {
  background: rgb(255, 255, 255) none repeat scroll 0 0;
  border: medium none;
  color: #4c4c4c;
  font-size: 1.2em;
  min-height: 48px;
  width: 100%;
  padding: 2% 7% 2% 2%;
}

.form-check-input {
  width: 1.3em;
  height: 1.3em;
}

.msg_send_btn {
  cursor: pointer;
  height: 25px;
  position: absolute;
  right: 20px;
  top: 11px;
  width: 25px;
}

.msg_send_btn:active {
  width: 27px;
  height: 27px;
}

.nameUser {
  color: var(--project-color-secundary);
  text-transform: uppercase;
}

#tabVotacao .nav-item {
  width: 30%;
}

#tabVotacao .nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
  color: #fff;
  background-color: var(--project-color-secundary);
  border-color: #dee2e6 #dee2e6 #fff;
  width: 100%;
}

#tabVotacao #doc-tab,
#tabVotacao #home-tab,
#tabVotacao #profile-tab {
  width: 100%;
  font-size: 1em;
  font-weight: bold;
}

.title-votacao {
  font-weight: bold;
}

.questionCipa {
  font-size: 1.4em;
  background-color: #ececec;
  padding: 1%;
}

.request {
  padding: 0 1%;
}

.btn.btn-votacao {
  background-color: var(--project-color-secundary);
  color: #fff;
  width: 50%;
  transition: all 0.3s;
}

.btn.btn-votacao:hover {
  background-color: var(--project-color-secundary);
}

/* #formAssembleia {
  min-height: 405px;
} */

.text-center.sub-assembl {
  font-size: 1.2em;
}

.bg-cro {
  background-color: var(--project-color-secundary);
}

.box-documento h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4a4a4a;
}

.box-documento {
  background-color: #ffffff;
  padding: 0.7rem 2rem;
  margin-bottom: 1rem;
  text-decoration: none;
}

.box-documento:hover {
  opacity: 0.7;
}

.box-documento .fa-file-pdf {
  font-size: 2rem;
  color: var(--project-color-secundary);
}

.sectionLoginSelf .form-group {
  margin-top: 0%;
}

.sectionLoginSelf .card-body {
  background: #f9f9f9;
}

.btn-primary {
  background-color: var(--project-color-secundary);
  border-color: color-mix(
    in srgb,
    var(--project-color-secundary) 80%,
    #000 20%
  );
  border-radius: 12px;
  box-shadow: 0 10px 25px color-mix(in srgb, var(--project-color-secundary) 35%, transparent);
}

.btn-primary:hover {
  border-color: var(--project-color-secundary);
  background: color-mix(in srgb, var(--project-color-secundary) 80%, #000 20%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(31, 122, 237, 0.25);
  transition: all 0.3s ease-in-out;
}

.btn-primary:focus {
    background: color-mix(in srgb, var(--project-color-secundary) 80%, #000 20%);
    box-shadow: none;
}

.btn-secundary {
  background-color: #b3ffe2;
  border-color: #b3ffe2;
  color: var(--project-color-secundary);
}

.bg-post-form {
  background: #f9f9f9;
}

@media (max-width: 767px) {
  .h1-responsive {
    font-size: 1.4rem;
  }
}

.responsive-text {
  display: none;
}

#pills-tab {
  justify-content: center;
}

.chat .nav-item {
  width: 33.3%;
}

.chat .nav-item .nav-link {
  width: 100%;
  background-color: var(--project-color-secundary);
  color: #ffffff;
  font-weight: 600;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--project-color-primary);
  color: var(--project-color-secundary);
}

.border-primary {
  border-color: var(--project-color-secundary) !important;
}

.form-check-input:checked {
  background-color: #19b97c;
  border-color: #19b97c;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgb(207, 249, 233);
}

.form-check input,
.form-check label {
  cursor: pointer;
}

.contact p a {
  color: #262424;
  text-decoration: none;
}

.contact .fas {
  color: #fff;
  padding: 0.5rem;
  background-color: #52bc00;
  border-radius: 50%;
}

#footer {
  box-shadow: 0 1rem 2.1rem rgb(0, 0, 0.175) !important;
}

.voto-nulo-branco {
  width: 6rem;
  text-align: center;
}

.table > :not(caption) > * > * {
  white-space: nowrap;
}

.navbar-light .navbar-nav .nav-link:hover {
  background-color: #fff;
}

.border-end {
  border-right: 1px solid #dee2e670 !important;
}

.election-period .list-group-item {
  font-size: 1.3rem;
}

.time-eleicao {
  font-weight: 600;
}

.list-group-item.active {
  padding: 1rem 1.25rem;
  border-color: var(--project-color-secundary);
}

.list-group-item.active,
.accordion-button {
  background-color: var(--project-color-secundary);
  color: #ffffff;
  font-weight: 600;
}

.accordion-button.collapsed::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed) {
  color: var(--project-color-secundary);
}

.accordion-body {
  font-size: 1.3rem;
  text-align: justify;
  border-left: 0.2rem solid #e7f1ff;
  border-right: 0.2rem solid #e7f1ff;
  border-bottom: 0.2rem solid #e7f1ff;
  background-color: #fff;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.btn-light {
  color: var(--project-color-secundary);
  background-color: #e7f1ff;
  border-color: #e7f1ff;
  padding: 0.7rem 1.2rem;
}

.btn-light:hover {
  color: var(--project-color-secundary);
  background-color: #c3dcff;
  border-color: #c3dcff;
}

.table-comprovante td {
  padding: 0.4rem;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
}

.td-comprovante-title {
  font-weight: 600;
}

.navbar-light .navbar-toggler {
  /* color: rgba(255, 255, 255, 0.55); */
  border-color: rgba(255, 255, 255, 0.55);
}

.modal-header {
  background-color: var(--project-color-secundary);
  color: #ffffff;
}

.btn-close {
  background: var(--project-color-primary)
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center/1em auto no-repeat;
}

.box-candidato {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px SOLID #929795;
  background-clip: border-box;
  word-break: break-word;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.box-candidato:hover {
  background-color: rgba(0, 0, 0, 0.13);
}

.box-img-candidato img {
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: top;
  object-position: top;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

#verticalListCandidatos .box-info-candidato {
  border-top: 1px SOLID #929795;
  margin-top: 1rem;
  padding-top: 1rem;
}

#counter {
  font-weight: 600;
}
.vote-counter {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  position: fixed;
  bottom: 10%;
  left: 0;
  right: 0;
  width: 21%;
  margin: 0 auto;
  border: 1px SOLID #84f7cb;
  border-radius: 0.25rem !important;
  padding: 0.5rem 1rem;
  background-color: #cff9e9;
  color: #373737;
  -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25),
    0 5px 15px 2px rgba(0, 0, 0, 0.2) !important;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25), 0 5px 15px 2px rgba(0, 0, 0, 0.2) !important;
}

.w-space-break {
  white-space: break-spaces !important;
}

.success-content.bg-success {
  background-color: #198754c4 !important;
}

.text-justify {
  text-align: justify;
}

#modalBodyVoto .table-comprovante td {
  font-size: 1.2rem !important;
}

@media (max-width: 570px) {
  .chat .nav-item {
    width: 100%;
  }
  .nome-eleicao {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  #ytElejaOnline {
    height: 200px;
  }

  .contact {
    text-align: center;
  }

  .sectionLoginSelf {
    margin-top: 10%;
  }

  .btn-action-comprovante .btn-primary {
    font-size: 1rem;
  }

  .vote-counter {
    width: 92.5%;
    bottom: 5%;
  }

  .vote-content .btn {
    font-size: 0.7rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .vote-counter {
    width: 50%;
  }
}

@media (min-width: 992px) and (max-width: 1228px) {
  .vote-counter {
    width: 30%;
  }
}

@media (min-width: 500px) and (max-width: 767px) {
  #ytElejaOnline {
    height: 300px;
  }
}

@media (max-width: 991px) {
  #user {
    width: 100%;
    border-right: 0 !important;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35) !important;
    /*padding-bottom: 0.5rem;
    margin-bottom: 1rem;*/
  }

  #navbarHeader {
    width: 100%;
  }

  .headerOneKey {
    width: 57% !important;
    text-align: right;
  }

  .navbar-brand img {
    width: 100%;
  }

  .contact {
    text-align: center;
  }
}

/* ==== MODERNIZAÇÃO DOS MODAIS ==== */
.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalFadeIn 0.3s ease-out;
}

.modal-header {
  border-bottom: none;
  padding: 1rem 1.5rem;
}

.modal-header h5,
.modal-header h6 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.modal-body {
  padding-bottom: 0;
}

.modal-footer {
  border-top: none;
  padding-top: 0;
  /* padding: 1rem 1.5rem 1.5rem; */
}

/* Botões refinados */
.modal .btn {
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.modal .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Cores específicas */
.modal-header.bg-success,
.modal-header.bg-danger {
  color: #fff;
  border-bottom: none;
}

.bg-success {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.bg-danger {
  background: linear-gradient(135deg, #dc3545, #ff6b6b);
}

/* Tabelas mais modernas */
.table-comprovante td {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  color: #212529;
}

/* Sucesso e erro estilizados */
.success-content {
  border-radius: 12px;
  padding: 2rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.bg-error {
  background: #f8d7da;
  border: 1px solid #f5c2c7;
  border-radius: 12px;
}

/* Animação suave */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 1rem;
  }

  .modal-content {
    border-radius: 12px;
  }

  .btn {
    font-size: 0.95rem;
  }
}

/* NOVO VOTO AG */

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    sans-serif;
  background: #f9fafc;
  color: var(--text-main);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 1rem;
  font-weight: 700;
  font-size: 1.2rem;
  background: #f1f3f5;
  border-bottom: 1px solid #dee2e6;
  color: #0f172a;
  text-align: center;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #777;
}

footer a {
  color: #444;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--project-color-secundary);
}

.form-label {
  font-size: large;
}

.form-control {
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid #ced4da;
}

.navbar-light .navbar-nav .nav-link {
  font-weight: 600;
  border-radius: 12px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  
  background: var(--project-color-secundary);
  color: #ffffff !important;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: #000 !important;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease-in-out !important;
}

.rounded-xl {
  border-radius: 12px !important;
}

.bg-logo {
  position: fixed;
  inset: 0;
  /*background: url('data:image/jpg;base64,{{ config_cliente["logo_cliente"] }}') no-repeat center center;*/
  background-size: cover;
  filter: blur(15px) saturate(180%);
  z-index: 0;
  pointer-events: none;
}

/* Vinheta: bordas escurecidas 
.bg-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
    background: radial-gradient(ellipse at center, transparent 80%, rgba(0,0,0,0.25) 100%);
}*/

.animate-appear {
    animation: fadeIn 0.5s ease-in-out;
    animation-delay: 0.25s;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
  text-align: center;
  margin: 60px 0 30px;
}

.page-header h1 {
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
  font-size: 28px;
}

.page-header p {
  color: #6b7280;
  margin-top: 8px;
  font-size: 15px;
}

.accordion-button {
  background: var(--project-color-secundary);
  color: #fff !important;
  font-weight: 600;
  border-radius: 12px !important;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: color-mix(in srgb, var(--project-color-secundary) 85%, #000 15%);
  box-shadow: none;
}

.accordion-body {
  border-radius: 0 0 12px 12px;
  border: 1px solid #e2e8f0;
  border-top: none;
  padding: 1.5rem;
  background: #f9fafb;
}

/* Novo layout: label acima, valor abaixo */
.info-item {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  padding: 6px 8px;
  transition: background 0.2s ease;
}

.info-item:hover {
  background: #f1f5f9;
}

.info-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.info-value {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.info-value mark {
  background: rgb(58 58 58 / 10%);
  color: var(--project-color-secundary);
  padding: 3px 6px;
  border-radius: 6px;
}

.btn-action-comprovante {
  margin-top: 1.5rem;
}

.no-comprovante {
  text-align: center;
  color: #6b7280;
  font-weight: 600;
  font-size: 18px;
}

@media (max-width: 768px) {
  .accordion-body {
    padding: 1rem;
  }
}

.accordion-collapse {
  border: none !important;
}

@media (max-width: 576px) {
  .accordion-collapse {
    min-width: unset !important;
  }
}

.modal-loading {
    padding: 40px 0;
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}
.modal-loading .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 10px;
    color: var(--project-color-secundary);
}

/* Contêiner responsivo dos itens */
  .info-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 15px;
  }

  /* Desktop: 2 colunas */
  @media (min-width: 768px) {
      .info-grid {
          grid-template-columns: 1fr 1fr;
      }
  }