
  .candidate-list {
    display: flex;
    flex-direction: column;
    width: 80%;
    gap: 20px;
    margin-bottom: 50px;
  }

  .categories-list-header{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
  }
  
  .categories-list-header h1{
    font-size: 5rem;
    background: linear-gradient(135deg, rgb(26, 102, 255), rgb(204, 102, 255));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
  }
  
  .categories-list-header p{
    font-size: 2rem;
    color: #6c757d;
  }
  
  .candidate-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
}

/* Hide search icon by default */
#search-icon {
  display: none;
}

/* Show and style search icon on mobile */
@media (max-width: 768px) {
  #search-icon {
    display: inline-block;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    margin-left: 10px;
    vertical-align: middle;
  }
}

/* Match .header-search i styling from categories page for consistency */
.header-search i {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  font-size: 17px;
  color: #fff;
  cursor: pointer;
}


    .candidate-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        flex-wrap: wrap;
  }
  
  .candidate-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
  }

  .box-image{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  .badge {
    width: 30px;
    height: 30px;
    background-color: #2563eb;  
    color: white;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    position: absolute;
    top: -8px;
    right: -8px;
  }
  
  .profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
  }
  
  .details h3 {
    margin: 0;
    font-size: 2rem;
    color: #111;
  }
  
  .details p {
    margin: 4px 0;
    font-size: 1.4rem;
    color: #6c757d;
  }
  
  .details .id {
    font-weight: bold;
    margin-right: 8px;
  }
  
  .votes {
    margin-top: 6px;
    font-size: 1.3rem;
    color: #444;
  }
  
  .progress-bar {
    background: #e5e7eb;
    height: 6px;
    border-radius: 6px;
    margin-top: 4px;
    width: 100%;
  }
  
  .filled {
    height: 100%;
    background-color: #2563eb;
    border-radius: 6px;
  }
  
  .vote-btn {
    background-color: #2563eb;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
  }
  
  .vote-btn:hover {
    background-color: #1e40af;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .candidate-card{
        padding: 10px;
    }
    .vote-btn {
      align-self: flex-end;
      width: 100%;
    }

    .candidate-list{
        width: 95%;
    }
    .categories-list-header h1{
        font-size: 27px;
  }
}
  