:root {
  --primary-color: rgba(7, 47, 84, 1);
  --secondary-color: rgba(251, 193, 8, 1);
  --green-color: rgba(52, 199, 89, 1);
  --red-color: rgba(255, 45, 85, 1);
}

body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  background-color: rgba(238, 238, 238, 1);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
}

.text-green {
  color: var(--green-color);
}

.text-red {
  color: var(--red-color);
}

.text-blue {
  color: var(--primary-color);
}

.text-yellow {
  color: var(--secondary-color);
}

header {
  margin-bottom: 20px;
}

.top-header {
  background-color: #fff;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  margin-bottom: 12px;
}

.top-header h1 {
  color: rgba(38, 38, 38, 1);
  font-weight: 600;
  font-style: SemiBold;
  font-size: 22px;
  margin: 0;
}

.powered-by {
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  overflow: hidden;
}

.powered-by-text {
  background-color: rgba(7, 47, 84, 0.8);
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 4px;
}

.powered-by-images {
  background-color: #eee;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.powered-by-images img {
  display: inline-block;
  height: 22px;
}

.bottom-header {
  background-color: var(--primary-color);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}

.location {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.toggle-container {
  display: flex;
  align-items: center;
}

.custom-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.toggle-input {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 53px;
  height: 30px;
  background-color: #fff;
  border-radius: 15px;
  transition: background-color 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: rgba(179, 179, 179, 1);
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked + .toggle-slider {
  background-color: var(--secondary-color);
}

.toggle-input:checked + .toggle-slider::before {
  transform: translateX(23px);
  background-color: var(--primary-color);
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(38, 38, 38, 1);
}


main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
  min-height: 0;
}

.auction-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.car-images {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-image-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 428px);
  overflow: hidden;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.thumbnails-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(1, 1, 1, 0.5);
  padding: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 8px;
}

.thumbnails-scroll {
  display: flex;
  gap: 8px;
  min-width: max-content;
  padding: 4px 0;
}

.thumbnail-item {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail-item:hover {
  border-color: var(--secondary-color);
  transform: scale(1.05);
}

.thumbnail-item.active {
  border-color: #fff
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
  transform: scale(1.1);
}

/* Custom scrollbar for thumbnails */
.thumbnails-container::-webkit-scrollbar {
  height: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
  background: #555;
  border-radius: 3px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.thumbnails-container::-webkit-scrollbar-thumb:hover {
  background: #eee;
}

.car-info {
  background-color: #fff;
  height: 228px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.car-specs {
  border-bottom: 1.5px solid #ddd;
  padding: 12px 24px;
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.car-grades {
  display: flex;
  gap: 40px;
}

.car-grade {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.car-grade span {
  font-weight: 300;
  font-size: 16px;
}

.grade {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 25px;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
}

.grade-green {
  background-color: var(--green-color);
}

.grade-red {
  background-color: var(--red-color);
}

.grade-blue {
  background-color: rgba(0, 122, 255, 1);
}

.car-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.car-data-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 400;
}

.car-description {
  padding: 12px 24px;
}

.car-description h3 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
}

.car-description p {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.auction-bid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bid-header {
  background-color: #fff;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lot {
  display: inline-flex;
  flex-direction: column;
}

.lot-label {
  font-size: 16px;
  font-weight: 300;
  color: #fff;
  text-transform: uppercase;
  background-color: var(--primary-color);
  padding: 4px 8px;
  text-align: center;
}

.lot-value {
  font-size: 35px;
  text-align: center;
  font-weight: 400;
  background-color: rgba(212, 212, 212, 1);
  padding: 4px 8px;
}

.car-name {
  font-size: 25px;
  font-weight: 500;
  color: rgba(38, 38, 38, 1);
}

.bid-break {
  border: 1px solid var(--red-color);
  display: none;
  align-items: center;
  justify-content: center;
  /*height: 52px;*/
  color: var(--red-color);
  font-size: 25px;
  font-weight: 600;
  border-radius: 5px;
  text-align: center;
  padding: 10px;
}

.bid-panel-header {
  display: show;
  align-items: center;
  justify-content: center;
  color: rgba(38, 38, 38, 1);
  background-color: #fff;
  font-size: 25px;
  font-weight: 600;
  border-radius: 5px;
  text-align: center;
  padding: 10px;
}

.bidding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prev-bid,
.current-bid,
.next-bid {
  background-color: #fff;
  border-radius: 10px;
}

.prev-bid,
.next-bid {
  width: 125px;
  height: calc(100% - 16px);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.current-bid {
  flex: 1;
}

.side-bid-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-bottom: 1.5px solid #ddd;
  width: 100%;
}

.side-bid-icon img {
  width: 24px;
  height: 24px;
}

.side-bid-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px;
  font-size: 16px;
  font-weight: 400;
}

.side-bid-lot {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: var(--primary-color);
}

.side-bid-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.side-bid-image {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 5px;
  overflow: hidden;
}

.side-bid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-bid-status {
  text-align: center;
  text-transform: uppercase;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.15);
  color: #fff;
  backdrop-filter: blur(4px);
}

.side-bid-label {
  font-size: 12px;
  font-weight: 400;
}

.side-bid-price {
  font-size: 14px;
  font-weight: 600;
}

.side-bid-winner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 0;
  border-top: 1.5px solid #ddd;
  width: 100%;
}

.side-bid-unavailable {
  font-size: 14px;
  font-weight: 400;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 5px;
  border: 0.5px solid var(--primary-color);
}

.current-bid {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(38, 38, 38, 1);
  font-size: 20px;
  font-weight: 500;
}

.starting-price {
  font-weight: 700;
  font-size: 25px;
  color: var(--primary-color);
}

.current-price {
  font-weight: 700;
  font-size: 25px;
  color: var(--green-color);
}

.leading-bid {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--primary-color);
}

.counter {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  height: 35px;
}

.counter-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  background-color: var(--primary-color);
  padding: 0 24px;
  color: #fff;
  height: 100%;
}

.counter-number {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 500;
  /*background-color: rgba(212, 212, 212, 1);*/
  width: 60px;
  height: 100%;
}

.counter-number + .counter-number {
  border-left: 1px solid #aaa;
  border-right: 1px solid #aaa;
}

.counter-status {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-color);
  font-weight: 600;
  font-size: 16px;
  padding: 0 24px;
  height: 100%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.btn-bid {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  height: 42px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  width: 100%;
}

.btn-bid:hover {
  scale: 1.01;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-bid:disabled {
  background-color: rgba(179, 179, 179, 1);
  color: #fff;
  cursor: not-allowed;
}


.auction-history {
  background-color: #fff;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-height: calc(100vh - 700px);
}

.auction-history table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.auction-history thead {
  background-color:rgba(212, 212, 212, 1);
  display: table;
  width: 100%;
  table-layout: fixed;
  position: sticky;
  top: 0;
  z-index: 10;
}

.auction-history th {
  padding: 8px;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  color: rgba(38, 38, 38, 1);
  border-right: 1px solid #eee;
  border-bottom: 4px solid rgba(238, 238, 238, 1);
  width: 33.33%;
}

.auction-history th:last-child {
  border-right: none;
}

.auction-history tbody {
  display: block;
  width: 100%;
  max-height: calc(100vh - 678px);
  overflow-y: auto;
}

.auction-history tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
  background-color: #fff;
}

.auction-history tbody tr:nth-child(even) {
  background-color: rgba(245, 245, 245, 1);
}

.auction-history tbody tr td {
  padding: 8px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(38, 38, 38, 1);
  border-right: 1px solid #E0E0E0;
  width: 33.33%;
}

.auction-history tbody tr td.text-green {
  color: var(--green-color);
}

.auction-history tbody tr td.text-red {
  color: var(--red-color);
}

.auction-history tbody tr td.text-blue {
  color: var(--primary-color);
}


.auction-history td {
  padding: 8px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(38, 38, 38, 1);
  border-right: 1px solid #E0E0E0;
  width: 33.33%;
}

.auction-history td:last-child {
  border-right: none;
}

.auction-history td:nth-child(2),
.auction-history td:nth-child(3) {
  text-align: center;
}

.bidding-break .auction-history {
  max-height: calc(100vh - 706px);
}

.bidding-break .auction-history tbody {
  max-height: calc(100vh - 744px);
}

.bidding-break .bid-break {
  display: flex;
}

.loader_bg {
     position: fixed;
     z-index: 9999999;
     background: rgba(238, 238, 238, 1);
     width: 100%;
     height: 100%;
}

.loader {
     height: 100%;
     width: 100%;
     position: absolute;
     left: 0;
     top: 0;
     display: flex;
     justify-content: center;
     align-items: center;
}

.loader img {
     width: 100px;
}