/* ===== Participants Database Table Styling ===== */

/* Make the table full width and responsive */
.wp-list-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.wp-list-table th,
.wp-list-table td {
  text-align: center;
  vertical-align: middle;
  padding: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* ===== Profile Image (ID Card Style) ===== */
.profile-field img {
  width: 130px;        /* image width */
  height: 200px;       /* image height (taller like ID card) */
  object-fit: cover;   /* crop without distortion */
  border-radius: 8px;  /* smooth corners */
  border: 2px solid #ccc;
  display: block;
  margin: 0 auto;
  background: #f9f9f9;
}

/* ===== View Profile Button ===== */
.zip-field a {
  display: inline-block;
  padding: 8px 16px;
  background: #0073e6;   /* button color */
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  white-space: nowrap;   /* keep text in one line */
}

/* Button Hover Effect */
.zip-field a:hover {
  background: #005bb5;
  color: #ffeb3b; /* yellow text on hover */
}

/* ===== Search Form Styling ===== */
.pdb-searchform {
  margin-bottom: 20px;
  width: 100%;
}

.pdb-searchform select,
.pdb-searchform input[type="text"] {
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
}

.search-form-submit,
.search-form-clear {
  padding: 8px 16px;
  background: #0073e6;
  color: #fff;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-form-submit:hover,
.search-form-clear:hover {
  background: #005bb5;
  color: #ffeb3b; /* yellow text on hover */
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .wp-list-table,
  .wp-list-table thead,
  .wp-list-table tbody,
  .wp-list-table th,
  .wp-list-table td,
  .wp-list-table tr {
    display: block;
    width: 100%;
  }

  .wp-list-table thead {
    display: none; /* hide table headers on small screens */
  }

  .wp-list-table tr {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
  }

  .wp-list-table td {
    border: none;
    text-align: center;
    padding: 10px;
  }

  /* Resize image on mobile */
  .profile-field img {
    width: 100px;
    height: 150px;
  }

  /* Smaller button on mobile */
  .zip-field a {
    padding: 6px 12px;
    font-size: 13px;
  }
}


.pdb-list .image-field-wrap img {
    height: 150px; 
    max-width: inherit;
}


/* Align search form to the right */
.pdb-searchform fieldset {
  display: flex;
  justify-content: flex-end; /* move everything to the right */
  align-items: center;
  flex-wrap: wrap;
  gap: 10px; /* spacing between elements */
  width: 100%;
}

.pdb-searchform select,
.pdb-searchform input[type="text"],
.search-form-submit,
.search-form-clear {
  margin: 5px 0;
}



.pdb-list .pagination, .pdb-pagination {
    overflow: auto;
    text-align: left;
    display: none;
}
