:root {
  --project-color-primary: #cff9e9;
  --project-color-secundary: #1a77b5;
}

header,
footer {
  background-color: var(--project-color-secundary);
  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: #ffffff;
}

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

.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: var(--project-color-secundary);
}

.btn-primary.disabled, .btn-primary:disabled {
  background-color: var(--project-color-secundary);
  border-color: var(--project-color-primary);
}

.btn-primary:hover {
  background-color: #00538a;
  border-color: #00538a;
}

.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:focus,
.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;
}

.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;
}

.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) !important;
  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;
  margin-top: 20px !important;
  width: 60%;
  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: 0.7rem;
  }

  .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;
  }
}

/* PARTE TERMO NOVO */

.termo-container {
  padding: 2rem 0;
}

.termo-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.termo-header {
  background: var(--project-color-secundary);
  color: white;
  text-align: center;
  padding: 1rem;
  border-radius: 20px 20px 0 0;
}

.termo-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.termo-subtitle {
  font-size: 1rem;
  margin: 0.5rem 0 0 0;
  opacity: 0.9;
}

.termo-body {
  padding: 2rem;
}

.logo-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo-container img {
  max-width: 250px;
  height: auto;
  border-radius: 10px;
}

.termo-text-container {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

.termo-text-container::-webkit-scrollbar {
  width: 8px;
}

.termo-text-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.termo-text-container::-webkit-scrollbar-thumb {
  background: var(--project-color-secundary);
  border-radius: 4px;
}

.termo-text-container::-webkit-scrollbar-thumb:hover {
  background: var(--project-color-secundary);
}

.termo-text {
  color: #495057;
  margin-bottom: 1rem;
  text-align: justify;
}

.termo-text:last-child {
  margin-bottom: 0;
}

.checkbox-container {
  background: #fff3cd;
  border: 2px solid #ffeaa7;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.checkbox-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--project-color-secundary);
  cursor: pointer;
}

.checkbox-label {
  font-weight: 600;
  color: #856404;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.footer-simple {
  text-align: center;
  margin-top: 1.5rem;
  padding: 1rem;
  color: #fff;
  font-size: 0.9rem;
}

.footer-simple a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.footer-simple a:hover {
  text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
  .termo-container {
    padding: 1rem;
  }

  .termo-card {
    margin: 0 1rem;
  }

  .termo-header {
    padding: 1.5rem;
  }

  .termo-title {
    font-size: 1.4rem;
  }

  .termo-body {
    padding: 1.5rem;
  }

  .termo-text-container {
    max-height: 300px;
    padding: 1rem;
  }

  .checkbox-container {
    padding: 1rem;
  }

  .logo-container img {
    max-width: 200px;
  }
}

/* Melhorias para acessibilidade */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Alto contraste */
@media (prefers-contrast: high) {
  .termo-text-container {
    border-width: 3px;
  }

  .checkbox-container {
    border-width: 3px;
  }
}
