.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: auto;
  margin-left: auto;
}

.status-dot.upcoming {
  background-color: #2FA628; /* Green */
  animation: pulse 2s infinite;
}


.status-dot.past {
  background-color: #B0B0B0; /* Gray */
}

/* Optional pulse effect */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 166, 40, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(47, 166, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 166, 40, 0); }
}

@keyframes pulse-yellow {
  0% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 184, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 184, 0, 0); }
}

.status-dot.soon {
  background-color: #FFB800; /* Yellow */
  animation: pulse-yellow 2s infinite;
}

.status-dot.future {
  background-color: green; /* Yellow */
}

#market_map_base{
  height:100%;
}

#market_details_base {
  height:100%
}

#martket_details{
  height:100%;
  background-color: white;
}

#market_map {
  height: 100%;
  background-color: white;
}

#market_map_mapRow{
  width:75%;
  background-color: white;
}
#market_map_vendorRow{
  width:25%;
  background-color: white;
  border-left:solid 2px var(--border-color);
}

#market_map_mapContainer {
  aspect-ratio: 1 / 1;
  width: 40%;
  background-color: turquoise;
  margin:20px;
}
/* CSS */
.filter-buttons {
  gap: 8px;
}

/* give the checked buttons a distinct look */
.filter-buttons sl-button[checked] {
  --sl-button-bg-color: var(--sl-color-primary-600);
  --sl-button-color: white;
}

.market-vendor-popup {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background-color: white;
  border-radius: 6px;
  box-shadow: var(--sl-shadow-large);
  font-size: 14px;
  color: var(--sl-color-neutral-900);
}

.market-vendor-popup__icon {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  background-color: var(--sl-color-neutral-200);
}

.market-vendor-popup__name {
  font-weight: 600;
  line-height: 1.2;
}

.market_map_toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-bottom: 1px solid var(--sl-input-border-color);
}
#market_vendor_requirements{
  height:250px;
}
#market_vendor_list{
  flex:1;
}

.mv_requirementsText {
  font-size: 14px;
  line-height: 14px;
  color: var(--sl-color-neutral-600);
  font-weight: 600;
  margin-bottom: 5px;
}

#requirementshead{
  font-weight: 600;
  margin-bottom: 10px;
}

.mv_requirementsValue{
  font-weight: 400;
}

#market_vendor_requirements{
  padding:10px;
  border-top: 1px solid var(--sl-color-neutral-200);
}

.mv_logo{
  width: 100%;
  height:100%;
}

.mv_logoBox{
  width:40px;
  height:40px;
  overflow:hidden;
  border-radius:5px;
  margin:5px;
}

.market_vendors_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.market_vendor_empty {
  padding: 12px;
  font-size: 14px;
  color: var(--sl-color-neutral-600);
}

.mv_vendor_name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width:190px;
}

.market_vendors_header {
  align-items: center;
  gap: 8px;
}

.market_vendors_title {
  font-weight: 600;
}

.market_vendor_count_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 49, 130, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.mv_item{
  cursor: pointer;
}

#mv_tableProperties{
  height:300px;
  background-color: white;
    border-top: 1px solid var(--sl-color-neutral-200);
}

#mv_tableListBox{
  height:375px;
overflow-y: scroll;
}

#mv_tableListBox .vb_objectListItem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

#mv_tableListBox .vb_objectListItem.is-selected {
  background-color: var(--sl-color-primary-100);
  color: var(--sl-color-neutral-1000);
}

#mv_tableListBox .obj_icons sl-icon {
  margin-right: 4px;
  --sl-icon-size: 16px;
}

#mv_tableListBox .obj_icons sl-icon.obj_icon {
  display: inline-flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 18px;
}

#mv_tableListBox .obj_icons sl-icon.obj_icon.is-active {
  opacity: 1;
}

#mv_tableListBox .obj_icons sl-icon:last-child {
  margin-right: 0;
}

#mv_tableListBox .obj_name {
  flex: 1;
}

#mv_tableListBox .obj_icons {
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  justify-content: flex-end;
  gap: 4px;
}

#mv_tableListBox .obj_name,
#mv_tableListBox .obj_icons {
  padding: 0 4px;
}

#mv_tableListBox .obj_id {
  display: none;
}

#market_map_tableRow{
  width:300px;
  background-color: white;
}

  .calendar-container {
    width: 300px;
    margin: 20px auto;
    font-family: sans-serif;
  }

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

  .calendar-header button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
  }

  .calendar-header span {
    font-weight: bold;
    font-size: 16px;
  }

  .calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }

  .day,
  .blank {
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    user-select: none;
  }

  .day {
    background: #f0f0f0;
    cursor: pointer;
  }

  .day.selected {
    background: var(--affiliBlue);
    color: white;
    font-weight: bold;
  }

  .weekday-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
  }

  #selectedDaysCard{
    margin:20px auto;
    height:300px;
  }

#selectedDaysCard::part(base) {
  height: 300px;
  overflow-y: auto;
}

#selectedDaysCard::part(header){
  background:var(--affiliBlue);
  color:white;
}

.market_time_input{
  width: 150px;
}
#summaryMarketHeader{
  height:40px;
  background-color: var(--affiliBlue);
  color: white;
  text-align: center;
  line-height: 40px;
}
#summaryMarketDatesList{
  overflow-y: scroll;
  border-left: 1px solid var(--sl-color-neutral-200);
  border-right: 1px solid var(--sl-color-neutral-200);
  border-bottom: 1px solid var(--sl-color-neutral-200);
  padding: 10px;
  height: 175px;
  width:150px;
}

.date-item{
  margin-left: 5px;
  margin-right:5px;
}

#inviteVendors{
  margin-top:40px;
}

.market_dates_card{
  width:250px;
  height:300px;
  background-color: white;
  border: 1px solid var(--sl-color-neutral-200);
  border-radius: 5px;
  margin:40px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.market_card_header {
    height: 40px;
    background-color: var(--affiliBlue);
    color: white;
    text-align: center;
    line-height: 40px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
}
.market_dates_card_body {
  display: flex;
  gap: 10px; /* space between items */
  overflow-y: auto;
  padding: 10px;
  height: 240px; /* or whatever fits your layout */
  margin-left:15px;
}
.market_dates_card_footer{
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.market_dates_card_footer {
  height: auto; /* allow height to grow with content */
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background-color: #FAFAFA;
   border-top: 1px solid var(--sl-color-neutral-200);
}

  .day-dot {
    width:10px;
    height:10px;
    border-radius: 50%;
  }

  .day-label{
    font-size: 12px;
    margin-left:5px;
    line-height: 10px;
  }

  .dates_date_header{
    height:20px;
    color:white;
    text-align:center;
    font-size:12px;
  }

  .dates_day_box{
    width:50px;
    height:50px;
    border-radius:5px;
    border: 1px solid var(--sl-color-neutral-200);
    overflow:hidden;
    margin:5px;
  }

.dates_date_day {
    font-size: 16px;
    margin-top: 3px;
    text-align: center;
    font-weight: 600;
}

 #internalmarketNameInput{
  margin-top: 10px;
  margin-bottom:10px;
 }

 #marketSignupDeadlineInput{
  margin-top: 10px;
  margin-bottom:10px;
 }

 #market_object_list{
  background-color: white;
  overflow: hidden;
 }
#market_objectBox{
  width:100%;
  height:100%;
}

#market_canvas{
  background-color: white;
}



.vb_objectListItem{
  border-bottom: 1px solid var(--sl-color-neutral-200);
}

.vb_objectListItem_iconBox{
  width: 30px;
  height: 30px;
  border-right: 1px solid var(--sl-color-neutral-200);
  padding-top: 6px;
  padding-left: 5px;
}
#market-map-panel--properties{
  height:100%;
  overflow-y: scroll;
  background-color: white;
}

.property_assignBox{
  font-size: var(--sl-input-font-size-medium);
  height: var(--sl-input-height-medium);
  background-color: var(--sl-input-background-color);
  border: solid var(--sl-input-border-width) var(--sl-input-border-color);
  border-radius: var(--sl-input-border-radius-medium);
  margin-top:10px;
  margin-left:10px;
  margin-right:10px;
}

#property_vendorName{
  flex:1;
  margin: auto;
  margin-left: 15px;
  margin-right:10px;
}
#property_assignVendorClear {
    width: 24px;
    height: 40px;
    margin-right: 8px;
    font-size: 20px;
}

#property_assignVendorName{
  flex:1;
    flex:1;
  margin: auto;
  margin-left: 15px;
  margin-right:10px;
}

#property_vendorAssignBtn{
    margin-right: 10px;
    font-size: 24px;
    margin-top: auto;
    margin-bottom: auto;
}

:root.sl-theme-dark #martket_details,
:root.sl-theme-dark #market_map,
:root.sl-theme-dark #market_map_mapRow,
:root.sl-theme-dark #market_map_vendorRow,
:root.sl-theme-dark #market_map_tableRow,
:root.sl-theme-dark #market_map_mapContainer,
:root.sl-theme-dark #mv_tableProperties,
:root.sl-theme-dark #market_object_list,
:root.sl-theme-dark #market-map-panel--properties{
  background-color: var(--mm-dark-surface, #0f172a);
}

:root.sl-theme-dark #market_map_vendorRow,
:root.sl-theme-dark #market_map_tableRow,
:root.sl-theme-dark #mv_tableProperties,
:root.sl-theme-dark #market-map-panel--properties{
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .market_map_toolbar{
  background-color: #1C2530;
  border-bottom: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .market_dates_card{
  background-color: var(--mm-dark-surface, #0f172a);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  box-shadow: 0 18px 36px -28px rgba(2, 6, 23, 0.7);
}

:root.sl-theme-dark .market_card_header{
  background-color: #1C2530;
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .market_dates_card_body{
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .market_dates_card_footer{
  background-color: var(--mm-dark-surface-2, #111827);
  border-top: 1px solid var(--mm-dark-border-soft, rgba(148, 163, 184, 0.12));
}

:root.sl-theme-dark .market_vendors_title,
:root.sl-theme-dark .mv_vendor_name{
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .market_vendor_empty,
:root.sl-theme-dark .mv_requirementsText{
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .mv_logoBox{
  background-color: rgba(148, 163, 184, 0.12);
}

:root.sl-theme-dark .vb_objectListItem{
  border-bottom: 1px solid var(--mm-dark-border-soft, rgba(148, 163, 184, 0.12));
}

:root.sl-theme-dark .vb_objectListItem_iconBox{
  border-right: 1px solid var(--mm-dark-border-soft, rgba(148, 163, 184, 0.12));
}

:root.sl-theme-dark #mv_tableListBox .vb_objectListItem,
:root.sl-theme-dark #mv_tableListBox .obj_name,
:root.sl-theme-dark #mv_tableListBox .obj_icons{
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark #mv_tableListBox .vb_objectListItem.is-selected{
  background-color: rgba(148, 163, 184, 0.12);
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .market-vendor-popup{
  background-color: var(--mm-dark-surface-2, #111827);
  color: var(--mm-dark-text, #f8fafc);
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.6);
}
