@import './components/fullcalendar.css';
@import './components/tooltips.css';

.custom-tab-menu {
  width: 100%;
}

section.jadwal-lelang {
  padding: 0 50px 50px 50px;
}

.jadwal-lelang .custom-tab-menu .nav-tabs {
  width: 100%;
  padding: 0;
  justify-content: flex-start;
  position: relative;
}

.jadwal-lelang .tab-content>.tab-pane {
  height: auto;
}

.jadwal-lelang .custom-tab-menu .nav-tabs::after {
  content: '';
  z-index: -1;
  width: 100%;
  height: 2px;
  display: block;
  background: #d0d0d0;
}

.jadwal-lelang .custom-tab-menu .nav-item {
  display: flex;
  flex-direction: column;
  width: fit-content;
  overflow: hidden;
  position: relative;
  width: 50%;
}

.jadwal-lelang .custom-tab-menu .nav-item .nav-link .icon {
  z-index: 1;
  margin-right: 15px;
  filter: grayscale(1);
}

.jadwal-lelang .custom-tab-menu .nav-item .nav-link .text {
  width: 70%;
  text-align: center;
}

.jadwal-lelang .custom-tab-menu .nav-item .nav-link {
  width: 100%;
  color: rgb(91, 91, 91);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: NexaBold;
  justify-content: unset;
  background: white;
  padding: 15px 30px 15px 30px;
  position: relative;
  overflow: hidden;
}

.jadwal-lelang .custom-tab-menu .nav-tabs .nav-link.active .icon {
  filter: none;
}

.jadwal-lelang .custom-tab-menu .nav-tabs .nav-link.active {
  color: #212c68;

  display: flex;
  align-items: center;
  font-family: NexaBold;
  justify-content: center;
}

.jadwal-lelang .custom-tab-menu .nav-tabs .nav-link.active+.nav-line {
  transform: scaleX(1);
}

.jadwal-lelang .custom-tab-menu .nav-tabs .nav-line {
  transition: 300ms linear;
  width: 100%;
  transform: scaleX(0);
  border-bottom: 4px solid #212c68;
  border-radius: 2px 2px 0 0;
  margin: 0 auto;
  content: '';
  display: block;
}

/* .jadwal-lelang .custom-tab-menu .nav-tabs .nav-link.active:after {
  border:none;
} */

.jadwal-lelang .title {
  color: rgb(33, 44, 104);
  font-size: 22px;
  font-family: NexaHeavy;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 30px 0;
}

.jadwal-lelang .title .icon {
  margin-top: -5px;
  margin-right: 15px;
}

.jadwal-lelang .schedule .item {
  background: white;
  border-radius: 5px;
  position: relative;
  padding: 15px;
  margin-bottom: 30px;
}

.jadwal-lelang .schedule .item .date {
  color: rgb(33, 44, 104);
  font-size: 22px;
  font-family: NexaHeavy;
  margin-bottom: 8px;
}

.jadwal-lelang .schedule .item .location {
  color: rgb(33, 44, 104);
  font-size: 18px;
  font-family: NexaBold;
}

.jadwal-lelang .schedule .item .address {
  color: rgb(91, 91, 91);
  font-size: 14px;
  font-family: NexaReg;
  margin: 15px 0;
}

.jadwal-lelang .schedule .item .detail-schedule {
  color: rgb(0, 0, 0);
  font-size: 14px;
  font-family: NexaReg;
  margin-bottom: 30px;
}

.jadwal-lelang .schedule .item .btn-black {
  background: black;
  color: white;
  padding: 5px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  margin-right: 15px;

  font-size: 12px;
  font-family: NexaReg;
  text-transform: uppercase;
  letter-spacing: 0px;
}

.jadwal-lelang .schedule .item .btn-black .icon {
  margin-right: 8px;
}

.jadwal-lelang .schedule .item .btn-black .icon .material-icons {
  font-size: 18px;
}

.jadwal-lelang .schedule .item .icon-motor,
.jadwal-lelang .schedule .item .icon-car {
  max-width: 80px;
  overflow: hidden;
  position: absolute;
  bottom: 0;
  right: 0;
}

.jadwal-lelang .schedule .item .icon-motor img,
.jadwal-lelang .schedule .item .icon-car img {
  width: 100%;
  transform: scaleX(-1);
}

/* Calendar Styling */
.jadwal-lelang .calendar-wrapper {
  padding: 15px;
  background: white;
}

.jadwal-lelang .calendar-wrapper .calendar-indicator {
  margin-top: 15px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.jadwal-lelang .calendar-wrapper .calendar-indicator .indicator {
  display: flex;
  flex-direction: row;
  margin-right: 10px;

  margin-bottom: 8px;
}

.jadwal-lelang .calendar-wrapper .calendar-indicator .indicator .icon {
  margin-right: 5px;
}

.jadwal-lelang .marker-window-info {
  display: flex;
  flex-direction: column;
}

.jadwal-lelang .marker-window-info .auction-date {
  padding: 5px 10px;
  margin-bottom: 10px;
  background: rgb(238, 51, 66);
  color: rgb(255, 255, 255);
  font-size: 10px;
  font-family: NexaReg;
}

.jadwal-lelang .marker-window-info .icon-wrapper {
  display: flex;
  flex-direction: row;
  margin-bottom: 10px;
}

.jadwal-lelang .marker-window-info .icon-wrapper img:nth-child(2) {
  margin-left: -10px;
}

.jadwal-lelang .marker-window-info .icon-wrapper img.bw {
  filter: grayscale(100%) brightness(2.5);
  z-index: -1;
}

.jadwal-lelang .marker-window-info .location-title {
  color: rgb(62, 66, 142);
  font-size: 12px;
  font-family: NexaHeavy;
}

.jadwal-lelang .marker-window-info .address,
.jadwal-lelang .marker-window-info .hotline {
  color: rgb(62, 66, 142);
  font-size: 10px;
  font-family: NexaReg;
}

.jadwal-lelang .marker-window-info .hotline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.marker-window-info .hotline .material-icons {
  font-size: 18px;
  background: #ee3342;
  border-radius: 50%;
  color: white;
}

.jadwal-lelang .marker-window-info .divider {
  width: 100%;
  height: 1.5px;
  margin: 10px 0;
  background: #212c68;
}

.bid-schedule .fc .fc-daygrid-day.fc-day-today {
  background: transparent;
}

.bid-schedule .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  position: relative;
}

.bid-schedule .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number:before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: '';
  display: block;
  background-color: #ee3342;
  position: absolute;
  right: 25%;
  top: calc(65% - 10px);
}

.bid-schedule .fc .fc-daygrid-day.has-event .fc-daygrid-day-frame {
  background-color: #212c68;
  border-radius: 5px;
}

.bid-schedule .fc .fc-scroller-harness {
  overflow: unset;
}

.tooltips>.onright {
  display: flex;
  flex-wrap: wrap;
  max-width: 500px;
  padding-bottom: 5px;
  flex-direction: row;
}

.tooltips .marker-window-info {
  flex: 250px;
  max-width: 250px;
  margin: 0 0px 10px;
  padding: 0 3px;
  display: inline-flex !important;
}

.tips-number {
  z-index: 0;
}

.nav-wrap {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.tab-vehicle-wrapper {}

.df-tabs {
  display: inline-flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}

.df-tab {
  font-size: 1rem;
  padding: 10px 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  line-height: 1;
  text-align: center;
}

.df-tab.active {
  border-bottom: 3px solid var(--secondary-500);
  color: var(--secondary-500);
  cursor: default;
  font-weight: 700;
}

.tab-type-wrap {
  display: inline-flex;
  border-radius: 40px;
  border: 1px solid #B2B2B2;
  padding: 4px;
}

.tab-type-wrap .tab-type {
  padding: 6px 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tab-type-wrap .tab-type.active {
  background: var(--secondary-500);
  color: white;
  border-radius: 20px;
  cursor: default;
}

@media (max-width: 991px) {
  .fc .fc-daygrid-day-bg .fc-bg-event span {
    padding: 1px 10px !important;
  }

  .fc-day-sat .tooltips>.onright,
  .fc-day-fry .tooltips>.onright,
  .fc-day-thu .tooltips>.onright {
    right: 0 !important;
  }
}

@media (max-width: 767px) {
  .jadwal-lelang .custom-tab-menu .nav-item .nav-link {
    padding: 15px 15px;
  }

  section.jadwal-lelang {
    padding: 0 0 40px;
  }

  .tab-type .tab-text {
    display: none;
  }

  /* .custom-tab-menu .nav-tabs .nav-link.active:after{
    display: none;
  } */
  .jadwal-lelang .custom-tab-menu .nav-tabs {
    justify-content: space-around;
  }

  .bid-schedule .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number:before {

    right: auto;
    left: 15%;
    top: calc(65% - 10px);
  }

  .bid-schedule .fc .fc-daygrid-day-bg .fc-bg-event span {
    padding: 4px 5px;
    font-size: 11px;
    position: absolute;
    top: 6px;
    right: 0px;
    background: #ee3342;
  }

  .bid-schedule .fc .fc-daygrid-day-number {
    margin-top: 0;
    padding: 5px 15px 0;
    line-height: 1.7;
  }

  .tooltips>.onright {
    width: auto;
    flex-direction: column;
  }

  .tooltips .marker-window-info {
    flex: 100%;
    max-width: none;
  }

  .calendar .fc .fc-daygrid-day-bg .fc-bg-event span {
    font-size: 11px !important;
    height: 16px !important;
    border-radius: 0;
    padding: 0 !important;
    line-height: normal;
    width: 16px !important;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    top: 8px;
    right: 0px;
    font-weight: bold;
  }

  .nav-wrap {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* Auction content panels */
.auction-content {
  display: none;
}

.auction-content.active {
  display: block;
}

/* Tab hover effects */
.df-tab:hover:not(.active) {
  color: var(--secondary-500);
  opacity: 0.8;
}

.tab-type:hover:not(.active) {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 20px;
}

/* Tab transitions */
.df-tab,
.tab-type {
  transition: all 0.2s ease;
}

/* Schedule Grid Layout */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 20px 0 0;
  padding-top: 0;
}

/* First row items have no margin-top (for 5 columns) */
.schedule-grid>.car-card:nth-child(-n+5) {
  margin-top: 0;
}

/* Car Card Styling */
.car-card {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid #E5E5E5;
  box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* .car-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
} */

.car-card-bg {
  position: absolute;
  bottom: 0;
  left: 0;
}

.car-card-bg .car-image {
  width: 102px;
  height: 98px;
}

.car-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  height: 100%;
}

/* Tips Section Revamp */
.tips-title-wrapper {
  text-align: center;
  margin: 50px 0 24px;
}

.tips-title {
  color: #212c68;
  font-family: NexaHeavy;
  font-size: 18px;
  margin-bottom: 10px;
}

.tips-subtitle {
  color: #212c68;
  font-family: 'NexaReg', sans-serif;
  font-size: 16px;
  margin: 0;
}

@media (max-width: 767px) {
  .tips-subtitle {
    display: none;
  }
}

.tips-grid {
  display: flex;
  flex-wrap: wrap;
  row-gap: 24px;
  column-gap: 30px;
}

.tips-card {
  width: 350px;
  /* Fixed width to match design rough proportions */
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.tips-card-image {
  position: relative;
  overflow: visible;
  /* Allow badge to stick out if needed, but usually inside */
  margin-bottom: 24px;
}

.tips-card-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
  /* background: #f0f0f0;  Placeholder bg if needed */
}

.tips-badge {
  position: absolute;
  bottom: -15px;
  /* Half overlapping */
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: #001871;
  /* Dark blue */
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'NexaBold', sans-serif;
  font-size: 18px;
  font-weight: bold;
  z-index: 2;
}

.tips-text {
  color: #212c68;
  font-family: NexaReg;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  /* Text is left-aligned in design cards */
  padding-top: 0;
}

/* Mobile Tips Number - Hidden on Desktop */
.tips-number-mobile {
  display: none;
}

/* Adjust grid for responsiveness */
@media (max-width: 768px) {
  .tips-card {
    width: 100%;
    padding: 0 0 12px 0;
    flex-direction: row;
    /* Horizontal layout for number + text */
    align-items: flex-start;
    border-bottom: 1px solid #001871;
    margin-bottom: 12px;
    gap: 8px;
  }

  .tips-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .tips-title-wrapper {
    margin: 24px auto 16px;
    max-width: 250px;
  }

  /* Hide image on mobile */
  .tips-card-image {
    display: none;
  }

  /* Show and style mobile number */
  .tips-number-mobile {
    display: block;
    color: var(--secondary-500);
    font-family: NexaHeavy;
    font-size: 32px;
    min-width: 30px;
  }

  .tips-text {
    font-size: 16px;
    line-height: 1.5;
    padding-top: 5px;
    /* Visual alignment with number */
  }

  .tips-grid {
    row-gap: 0;
    /* Let margin-bottom handle spacing */
  }
}

/* Status Badge Styles */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 2px;
  font-family: NexaReg;
  font-size: 12px;
  line-height: 1.25;
}

.status-badge.live {
  background: #FFFFFF;
  border: 1px solid #EF3340;
  padding-right: 4px;
}

.status-badge.live .live-label {
  background: #EF3340;
  color: #FFFFFF;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 2px;
}

.status-badge.live .live-dot {
  width: 8px;
  height: 8px;
  background: #EF3340;
  border-radius: 50%;
  margin-left: 2px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.status-badge.live .viewer-count {
  color: #EF3340;
  font-weight: 400;
  margin-left: 2px;
}

.status-badge.upcoming {
  background: #F2F2F2;
  border: 1px solid #E5E5E5;
  padding: 2px 4px;
  gap: 4px;
}

.status-badge.upcoming .clock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-badge.upcoming .upcoming-text {
  color: #666666;
  font-weight: 400;
}

/* Card Info Styles */
.car-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.car-card-info .location-name {
  font-family: 'NexaHeavy', 'Nexa', sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
  color: #001871;
}

.car-card-info .date,
.car-card-info .time {
  font-family: 'NexaBold', 'Nexa', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: #001871;
}

/* Motor Card Variation */
.motor-card .car-card-bg {
  left: -30px;
  bottom: -5px;
}

section.tips-section {
  background-color: white;
}

/* Responsive Grid */
@media (max-width: 1199px) {
  .schedule-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 991px) {
  .schedule-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .car-card-info .location-name {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .car-card-bg {
    left: -5px;
  }
}
