/* LIST VIEW */
.list-view-edit-listing-container {
  transition: 0.3s ease-in-out all;
  background: white;
  margin-top: 1rem !important;
  margin-bottom: 40px;
}

/* General Wrapper Styles */
.list-view-exhibitor-wrapper.list-view {
  display: flex;
  align-items: flex-start;
  border-radius: 4px;
  margin-bottom: 0px;
  margin-top: 1rem !important;
  padding: 0;
  background-color: #fff;
  box-shadow: var(--listing-box-shadow);
  transition: all 0.4s ease;
  height: 200px;
  color: var(--heading-colour);
  z-index: 1;
  overflow: hidden;
}

.list-view-exhibitor-wrapper.list-view:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.125);
}

.list-view-exhibitor-wrapper.list-view > div {
  padding: 1rem;
}

/* Containers */
.list-view-logo-container,
.list-view-info-container,
.list-view-buttons-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* Logo container */
.list-view-logo-container {
  margin-right: 10px;
  min-width: 100px;
  align-items: center;
  margin: 0;
  width: 120px;
  padding-top: 2rem !important;
  background: #e7e7e7;
}

.list-view-profile-image,
.list-view-no-profile-image {
  height: var(--my-listing-company-logo-size);
  width: var(--my-listing-company-logo-size);
  max-width: var(--my-listing-company-logo-size) !important;
  max-height: var(--my-listing-company-logo-size) !important;
  object-fit: contain;
  border-radius: 5%;
  border: 1px solid white;
  box-shadow: 0 0 8px 3px rgba(0, 0, 0, 0.125);
  background: white;
}

/* Info Container */
.list-view-info-container {
  flex: 1;
}

/* Buttons Container */
.list-view-buttons-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  min-width: 200px;
}

/* List view buttons */
.list-view-buttons-container button {
  transition: 0.2s all ease;
}

.list-view-buttons-container .list-view-edit-listing-btn,
.list-view-buttons-container .list-view-preview-listing-btn {
  text-transform: uppercase;
  background: var(--accent-colour);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.35rem;
  border: 1px solid #e7e7e7;
}

.list-view-buttons-container .list-view-edit-listing-btn:hover,
.list-view-buttons-container .list-view-preview-listing-btn:hover {
  background: #e7e7e7cc;
}

/* .list-view-buttons-container .list-view-preview-listing-btn {
  background: var(--heading-colour);
  color: #f7f7f7;
}

.list-view-buttons-container .list-view-preview-listing-btn:hover {
  background: var(--heading-colour-opacity);
} */

.list-view-buttons-container .list-view-upgrade-listing-btn {
  background: var(--search-page-accent-2);
  color: var(--search-page-accent-1);
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
  border-radius: 1rem;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

.list-view-buttons-container .list-view-upgrade-listing-btn:hover {
  background: var(--search-page-accent-2-hover);
}

.list-view-buttons-container .list-view-edit-listing-btn:active,
.list-view-buttons-container .list-view-preview-listing-btn:active,
.list-view-buttons-container .list-view-upgrade-listing-btn:active {
  transform: scale(1.05);
}

.list-view-exhibitor-wrapper.selected {
  margin-left: 1rem;
}

.list-view-exhibitor-wrapper.incomplete-listing.selected {
  background: linear-gradient(
    to top,
    var(--my-listings-not-started-gradient-1) 0%,
    var(--my-listings-not-started-gradient-2) 2%,
    #ffffff 100%
  ) !important;
}

.list-view-exhibitor-wrapper.ongoing-listing.selected {
  background: linear-gradient(
    to top,
    var(--my-listings-in-progress-gradient-1) 0%,
    var(--my-listings-in-progress-gradient-2) 2%,
    #ffffff 100%
  ) !important;
}

.list-view-exhibitor-wrapper.completed-listing.selected {
  background: linear-gradient(
    to top,
    var(--my-listings-completed-gradient-1) 0%,
    var(--my-listings-completed-gradient-2) 2%,
    #ffffff 100%
  ) !important;
}

.list-view-incomplete-label,
.list-view-ongoing-label,
.list-view-completed-label {
  margin-top: 0;
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.25rem 0.5rem;
  width: 120px;
}

.incomplete-tag,
.ongoing-tag,
.completed-tag {
  display: block;
  color: white;
  background: none;
  font-weight: normal;
  width: 100%;
  text-align: center;
}

.list-view-exhibitor-wrapper.incomplete-listing .list-view-logo-container {
  background-color: var(--not-started-colour-opacity);
  border-right: 1px solid var(--not-started-colour);
}

.list-view-exhibitor-wrapper.ongoing-listing .list-view-logo-container {
  background-color: var(--in-progress-colour-opacity);
  border-right: 1px solid var(--in-progress-colour);
}

.list-view-exhibitor-wrapper.completed-listing .list-view-logo-container {
  background-color: var(--completed-colour-opacity);
  border-right: 1px solid var(--completed-colour);
}

/* Style for not started posts */

.list-view-incomplete-label {
  padding: 0.25rem 0.5rem;
  background: var(--not-started-colour);
}

.list-view-exhibitor-wrapper.incomplete-listing {
  border: 1px solid var(--my-listings-not-started-border);
  position: relative;
}

/* Style for ongoing posts */
.list-view-exhibitor-wrapper.ongoing-listing {
  border: 1px solid var(--my-listings-in-progress-border);
  position: relative;
}

.list-view-ongoing-label {
  background: var(--in-progress-colour);
}

/* Style for completed posts */
.list-view-exhibitor-wrapper.completed-listing {
  border: 1px solid var(--my-listings-completed-border);
  position: relative;
}

.list-view-completed-label {
  background: var(--completed-colour);
}

/* list view event infor */
.event-info-card {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.event-info-item span {
  font-size: 1rem;
  color: var(--heading-colour);
}

.event-info-item .stand-number {
  color: #303133;
  font-weight: bold;
  font-size: 1.2rem;
}

.event-info-item .exhibiting-name {
  color: var(--heading-colour);
  font-weight: bold;
  text-transform: uppercase;
  margin-left: 0.25rem;
  position: relative;
}

.event-info-item .exhibiting-name::before {
  content: "|";
  margin-right: 0.25rem;
}

.event-info-item:nth-of-type(3) span {
  font-size: 0.9rem;
}

.event-info-item:nth-of-type(4) span {
  font-size: 0.7rem;
}

.event-info-item > a:hover {
  text-decoration: none;
}

.event-info-item > a:hover span {
  color: var(--accent-colour);
}

/* Percentage Code */
.list-view-completion-info {
  display: flex;
  color: var(--heading-colour);
  bottom: 0;
  font-size: 0.8rem;
  flex-direction: row;
  justify-content: end;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.list-view-completion-info .completion-percentage {
  font-weight: bold;
}

.list-view-exhibitor-wrapper.incomplete-listing .completion-percentage {
  color: var(--not-started-colour);
}

.list-view-exhibitor-wrapper.ongoing-listing .completion-percentage {
  color: var(--in-progress-colour);
}

.list-view-exhibitor-wrapper.completed-listing .completion-percentage {
  color: var(--completed-colour);
}

/* Size of the donut chart */
.list-view-completion-info .donut-chart {
  position: relative;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: conic-gradient(
    #3ae690 0%,
    #3ae690 var(--percentage),
    #e7e7e7 var(--percentage),
    #e7e7e7 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

/* Inner circle size */
.list-view-completion-info .donut-chart-inner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-view-completion-info .percentage-label {
  font-size: 0.8em;
}

.donut-chart:hover .percentage-label::after {
  content: "Completion Percentage";
  position: absolute;
  top: 50%;
  left: -400%; /* Position tooltip to the left of the donut chart */
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}
/* Upgrade/Dropdown Code */
.list-view-dropdown {
  display: inline-block;
}

.list-view-dropbtn {
  background-color: #e7e7e7;
  color: #333;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.list-view-dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 4px 4px 8px 0px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.list-view-dropdown-content a {
  color: black;
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
  font-size: 0.75rem;
}

.list-view-dropdown-content a:hover {
  background-color: #e7e7e7;
  text-decoration: none;
}

.list-view-dropdown:hover .list-view-dropdown-content {
  display: block;
}

.list-view-dropdown:hover .list-view-dropbtn {
  background: var(--search-page-accent-2);
}

.list-view-completion-info .completed-fields {
  width: 100%;
  text-align: end;
  margin-right: 1rem;
  color: var(--completed-colour);
}

.list-view-completion-info .missing-fields ul {
  margin: 0;
  color: var(--in-progress-colour);
}

.list-view-completion-info .missing-fields li {
  font-size: 0.6rem;
  line-height: 1.2;
}

/* Responsive adjustments */
@media (min-width: 960px) and (max-width: 1350px) {
  .list-view-exhibitor-wrapper.list-view {
    flex-direction: column;
    height: auto;
    position: relative;
  }

  .list-view-buttons-container {
    width: 100%;
    background: #f7f7f7;
    align-items: center;
    height: auto;
    flex-direction: row;
    padding: 0.75rem !important;
  }

  .list-view-info-container {
    width: 100%;
    text-align: center;
    height: auto;
  }

  .list-view-logo-container {
    width: 100%;
    height: auto;
    padding-top: 1rem !important;
    border-right: none !important;
  }

  .list-view-completion-info {
    justify-content: center;
  }

  .list-view-completion-info .completed-fields {
    width: auto;
    display: none;
  }

  .list-view-completion-info .missing-fields {
    margin-right: 1rem;
  }

  .list-view-buttons-container .list-view-edit-listing-btn,
  .list-view-buttons-container .list-view-preview-listing-btn {
    padding: 0.5rem;
    font-size: 0.7rem !important;
  }

  .list-view-completion-info {
    width: auto;
  }

  .event-info-card * {
    font-size: 0.8rem !important;
  }

  .list-view-profile-image,
  .list-view-no-profile-image {
    height: 50px;
    width: 50px;
    max-width: 50px;
    max-height: 50px;
  }

  .incomplete-tag,
  .ongoing-tag,
  .completed-tag {
    font-size: 0.8rem;
    padding: 0.2rem 0;
  }

  .list-view-incomplete-label,
  .list-view-ongoing-label,
  .list-view-completed-label {
    width: auto;
    border-bottom-right-radius: 4px;
  }
}

@media (max-width: 680px) {
  .list-view-exhibitor-wrapper.list-view {
    flex-direction: column;
    height: auto;
    position: relative;
  }

  .list-view-buttons-container {
    width: 100%;
    background: #f7f7f7;
    align-items: center;
    height: auto;
    flex-direction: row;
    padding: 0.75rem !important;
  }

  .list-view-info-container {
    width: 100%;
    text-align: center;
    height: auto;
  }

  .list-view-logo-container {
    width: 100%;
    height: auto;
    padding-top: 1rem !important;
    border-right: none !important;
  }

  .list-view-completion-info {
    justify-content: center;
  }

  .list-view-completion-info .completed-fields {
    width: auto;
    display: none;
  }

  .list-view-completion-info .missing-fields {
    margin-right: 1rem;
  }

  .list-view-buttons-container .list-view-edit-listing-btn,
  .list-view-buttons-container .list-view-preview-listing-btn {
    padding: 0.5rem;
    font-size: 0.7rem !important;
  }

  .list-view-buttons-container .list-view-edit-listing-btn {
    background: white;
  }

  .list-view-completion-info {
    width: auto;
  }

  .event-info-card * {
    font-size: 0.8rem !important;
  }

  .list-view-profile-image,
  .list-view-no-profile-image {
    height: 50px;
    width: 50px;
    max-width: 50px;
    max-height: 50px;
  }

  .incomplete-tag,
  .ongoing-tag,
  .completed-tag {
    font-size: 0.8rem;
    padding: 0.2rem 0;
  }

  .list-view-incomplete-label,
  .list-view-ongoing-label,
  .list-view-completed-label {
    width: auto;
    border-bottom-right-radius: 4px;
  }
}
