@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --sidebar-width: 270px;
}

* {
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f6f8fa;
  margin: 0;
  padding: 0;
  height: 100vh;
  /* Aggiunto per estendere l'altezza della pagina */
}

.navbar-light {
  background-color: white;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #e7e7e7;
}

.navbar-light .navbar-brand {
  color: rgba(0, 0, 0, .9);
  font-weight: 500;
  font-size: 2rem;
}

.profile-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.sidebar {
  width: var(--sidebar-width);
  background-color: #242526;
  flex-shrink: 0;
  height: 100vh;
  /* Modificato per estendere l'altezza della sidebar */
  padding-top: 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.right-site {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  /* Aggiunto per garantire che il contenuto riempia lo spazio rimanente */
}

.sidebar-link {
  color: #ffffff;
  padding: 10px 20px;
  margin: 5px 0;
}

.sidebar-link:hover {
  color: white;
  background-color: #495057;
  border-radius: 5px;
}

.sidebar .nav-item .active {
  color: white;
  background-color: #3a3b3c;
  border-radius: 5px;
}

.voting-times {
  border-top: 1px solid #444;
  padding-top: 10px;
  margin-top: 20px;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.sidebar-logo img {
  width: 250px;
}

.nav-item {
  margin-left: 10px;
  margin-right: 10px;
}

.voting-times {
  margin-left: 10px;
  margin-right: 10px;
}

.voting-times p {
  color: white;
}

#indietro {
  margin: 10px;
}

#indietro svg {
  margin-right: 10px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.election-card {
  background-color: white;
  border: 1px solid #e3e3e3;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.election-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.election-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.election-title h5 {
  margin-bottom: 0;
}

.election-datas {
  margin-right: 30px;
}

.badge-votazioni{
  font-size: medium;
}

.badge-building {
  background-color: #f0ad4e;
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-programmata {
  background-color: #6c757d;
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-in-corso {
  background-color: #257a53;
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-finito {
  background-color: #0d6efd;
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
}

#filtro-elezioni {
  width: 20%;
}

#cerca-elezioni {
  width: 50%;
}

#submit-cerca {
  margin-left: 10px;
}

.icon {
  font-size: 1.5rem;
}

footer {
  border-top: 1px solid #dee2e6;
}

h5 {
  margin: 0;
}

.navbar .btn-link {
  color: black;
}

.list-group-item-cdl {
  background-color: #f8f9fa;
  padding: 0px;
  padding-left: 15px;
}

.list-group-item .list-group {
  margin-top: 15px;
}

#logo-partiti {
  height: 50px;
}

#card-lista {
  width: 21rem;
}

.candidati .card-candidato {
  margin-top: 10px;
}

.alert {
  margin-bottom: 0rem;
}

.toast-success {
  background-color: #28a745 !important;
  color: white !important;
}

.toast-success .close {
  color: white !important;
}

.toast-error {
  background-color: #c61704 !important;
  color: white !important;
}

.toast-error .close {
  color: white !important;
}

.alert-warning {
  border-color: #ffdc72;
}

.pro-badge {
  font-size: 13px;
  background: #e8e77c;
  text-transform: uppercase;
  padding: 2px 5px;
  color: #787d81;
  border-radius: 1px;
  margin-left: 5px;
}