* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif !important;
  background: linear-gradient(135deg, #e3e4e8bd, #f2e7c4c7), url(/img/fondo_elecciones.jpg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0px;
  background-size: cover;
}

.mobile {
  display: none;
}

.desktop {
  display: block;
}

.container {
  max-width: 400px;
  width: 100%;
}


.login-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.header {
  background: linear-gradient(135deg, #e3e4e8, #f2e7c4);
  color: white;
  padding: 40px 30px 20px;
  text-align: center;
}

.header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.header img {
  width: 300px;
  height: auto;
  margin-bottom: 15px;
}

.header p {
  font-size: 14px;
  opacity: 0.9;
}

.create-account {
  display: inline-block;
  margin-top: 20px;
  color: white;
  font-size: 12px;
  text-decoration: underline;
}

.login-form {
  padding: 30px;
  text-align: center;
}

.login-form h2 {
  margin-bottom: 20px;
  color: #d84315;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Poppins', sans-serif !important
}

.input-group {
  position: relative;
  margin-bottom: 15px;
}

.input-group .icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #facc15;
  font-size: 18px;
}

.input-group input {
  width: 100%;
  padding: 10px 10px 10px 40px;
  border: none;
  border-radius: 30px !important;
  background: #facc1552;
  font-size: 14px;
  outline: none;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin: 15px 0;
}

.form-options a {
  color: #f44336;
  text-decoration: none;
}

.login-button {
  background-color: #facc15;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn {
  border-radius: 30px;
  transition: background 0.3s ease;
  font-weight: bold;
}
.btn:hover {
    box-shadow: 0px 2px 4px 1px #00000087;
    text-shadow: 1px 1px 5px #00000087;
}
.btn-outline-warning:hover {
  color: white;
}

.login-button:hover {
  background-color: #000;
  color: #fff;
}

.carousel-indicators {
    margin-bottom: -0.5rem;
}

.carousel-indicators [data-bs-target] {
    border: solid 1px #0000008c;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #000000d2;
}

/*Loader*/
/* HTML: <div class="loader"></div> */
div#load {
    position: fixed;
    background: #d88f2b99;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    align-content: center;    
}
.loader {
  width: 15px;
  aspect-ratio: 1;
  position: relative;
  margin: auto;
}
.loader::before,
.loader::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #000;
}
.loader::before {
  box-shadow: -25px 0;
  animation: l8-1 1s infinite linear;
}
.loader::after {
  transform: rotate(0deg) translateX(25px);
  animation: l8-2 1s infinite linear;
}

@keyframes l8-1 {
    100%{transform: translateX(25px)}
}
@keyframes l8-2 {
    100%{transform: rotate(-180deg) translateX(25px)}
}

/*End Loader*/

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Para Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/*Admin*/

.navbar-brand img {
  height: 30px;
}

#listIndicadores input{
  text-align: center;
}


.name:hover {
    cursor: pointer !important;
    text-shadow: 1px 1px 5px #00000087;
  }

.card-body.max-height {
    min-height: calc(100vh - 16rem);
}

.title-container {
    border-bottom: 1px solid #facc15;
    margin-bottom: 1rem;
}

.title-container h3,
.modal-title{
  color: #facc15;
}

.text-muted {
    font-style: italic;
    font-size: 0.8rem;
}

.editorHTML {
  background-color: #fff;
  min-height: 200px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 10px;
}

.ql-toolbar.ql-snow + .ql-container.ql-snow {
    border-top: 1px solid #ccc;
}

.ql-toolbar.ql-snow {
    border-radius: 8px;
    background: lightgray;
}

/*nav.bg-danger-subtle,
.offcanvas.bg-danger-subtle,
.container-fluid.bg-danger-subtle
{
  background: linear-gradient(-135deg, #f5793b, #facc15) !important;
  color: white !important;
  font-weight: 700;
}*/

nav.bg-danger-subtle, .offcanvas.bg-danger-subtle, .container-fluid.bg-danger-subtle {
    /* background: linear-gradient(-135deg, #f5793b, #facc15) !important; */
    background: transparent;
    background-color: transparent !important;
    color: #facc15 !important;
    font-weight: 500;
}
.navbar-nav {
    background: #ffffffa3;
    border-radius: 30px;
}
nav.bg-danger-subtle .navbar-brand {
  color: #facc15 !important;
}
nav.bg-danger-subtle .nav-link {
  color: #000 !important;
  border: solid 1px;
}
nav.bg-danger-subtle .nav-link:hover {
  color: #fff !important;
  background: #000;
}

svg.bi.flex-shrink-0 {
    height: 30px;
    width: 30px;
}

.imgTablaCandidato{
  margin: auto;
  display: block;
  height: 150px;
  width: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.puntuacion {
    font-size: 2rem;
    font-weight: bold;
}

.dropdown-item:hover {
  background-color: #facc1552;
}
.nav-link{
  border-radius: 30px !important;
}
.nav-link.active{
    background: #000;
    color: #fff !important;    
}
.nav-link:hover{
    background: #facc1552;
    color: #000 !important; 
    border: solid 1px #facc15;   
}
.btn-logout.nav-link:hover{
    background: rgba(255, 0, 0, 0.603);
    color: #fff !important; 
    border: solid 1px red;   
}
.navbar-toggler {
  border-color: #facc15 !important;
  color: #000 !important;
}
.navbar-toggler-icon{
  color: #000 !important;
}
.navbar-toggler:focus
 {
    box-shadow: 0 0 0 #facc15;
}
.offcanvas-title{
  color: white !important;
  font-weight: 700;
}

.content {
  background-color: #ffffffa3 !important;
  min-height: calc(100vh - 6rem);
  margin-bottom: 1rem;
}
.card {
  background: #ffffff54;
}
p.card-text {
    color: #00000087;
    font-weight: 100;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

  .sidebar {
    background-color: #facc15;
    color: white;
    min-height: 100vh;
    padding: 1rem;
  }
  .sidebar a {
    color: white;
    text-decoration: none;
  }
  .sidebar a:hover {
    text-decoration: underline;
  }
  .card-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #facc15;
  }
  .card-title span {
    color:#333
  }
  .circle-progress {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 8px solid #e6e6e6;
    border-top-color: #d32f2f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #5a4fcf;
  }

  /*box candidato*/

  .candidato-box {
    background: linear-gradient(135deg, #fffceb, #fefefe);
    border-radius: 20px;
    width: 250px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    margin: auto;
    cursor: pointer;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.candidato-box:hover{
  box-shadow: 0 5px 15px #facc15;
}

.candidato-box.zoom{
  zoom: 160%;
}

.content-candidato .card-body {
    max-height: 30rem;
    height: 30rem;
    overflow-y: auto;
}

.candidato-box h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(#facc15 75%, #e5e7eb 0%);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-content {
    background: #fff;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 1px #eee;
}

.circle-content .time {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.circle-content .label {
    font-size: 0.9rem;
    color: #999;
}

.circle-content .imgTablaCandidato {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.carousel-inner {
    min-height: calc(100vh - 25rem);
}

  /*end box candidato*/

.carousel-control-next-icon,
.carousel-control-prev-icon
 {
   background-color: black;
    border-radius: 50%;
    box-shadow: 0px 0px 4px 2px black;
}
.carousel-control-next {
    right: -5.5rem;
}
.carousel-control-prev {
    left: -5.5rem;
}

.tendenciaSelect {
  background-color: #facc1552 !important;
}
.fa-newspaper{
  color:#facc15;
  margin-right: 1rem;
}

.accordion-button:not(.collapsed){
  background-color: #facc1552 !important;
}

.modal-dialog.max-w {
    max-width: 90vw !important;
}

#content-tendencia img,
.content-candidato img,
.accordion-body img,
#contenidoPreview img {
    max-width: 100%;
    height: auto;
}

/* Fijar ancho de la primera columna */

#tablaIndicadores th,
#tablaIndicadores td{
  text-align: center !important;
  min-width: 120px;
}

table.dataTable thead th {
  text-align: center !important;
}

#tablaIndicadores th:first-child,
#tablaIndicadores td:first-child {
    width: auto;
    min-width: 200px;
    white-space: nowrap;
    background-color: beige;
    font-weight: 300;
    text-align: left !important;
}


/* Asegura que el header quede encima de celdas */
#tablaIndicadores th {
    z-index: 3;
}

.dataTable thead tr th, .table-striped-columns>:not(caption)>tr>th>:nth-child(2n) {
    background: beige;
    box-shadow: inset 0 0 0 9999px beige;
}


nav.navbar.navbar-warning.bg-warning {
    background: linear-gradient(135deg, #fffceb, #fefefe) !important;
    border-radius: 30px;
}

.navbar-warning .navbar-brand{
  margin-left: 2rem;
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 20px;
  }

  .header img {
    width: 250px;
}

  .login-form {
    padding: 20px;
  }

  .name {
    display: none;
  }

  body{
    background-size: 200% 100%;
  }

  .mobile {
    display: block;
  }

  .desktop {
    display: none;
  }

  .card-title {
    font-size: 1.2rem;
    height: auto;
    width: 80vw;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .card-title span {
    display: block;
    margin: auto;
  }

  .navbar-warning .navbar-brand{
    margin-left: auto;
  }

  .navbar-warning .dropdown{
    margin: auto;
    display: block;
    width: 100%;
  }

  .navbar-warning .dropdown button{
    width: 100%;
  }

  .dt-buttons {
    text-align: center;
  }

  .carousel-control-next {
    right: -1.125rem;
    display: none;
  }
  .carousel-control-prev {
    left: -1.125rem;
    display: none;
  }
  li.nav-item {
    margin: auto;
  }
  a.nav-link {
    width: 90vw;
    margin: auto;
    text-align: center;
  }
  li.nav-item {
    margin: 5px auto;
  }
  .navbar-collapse {
    margin-top: 5px;
  }
  .navbar-nav {
    box-shadow: 0px 2px 6px 1px #0000006e;
  }
  a.nav-link.btn-logout {
    color: red;
  }
  body {
    overflow-x: hidden;
  }

  .candidato-box.zoom{
    zoom: 100%;
  }

  .content-candidato .card-body {
    max-height: none;
    height: auto;
  }
}
