
.card img:hover {
  transform: scale(1.02);
  transition: 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.event-header .overlay {
  animation: fadeIn 1.5s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animated {
  opacity: 0;
  animation: fadeIn 1.5s ease-in-out forwards;
}
.lightboxOverlay {
  background: rgba(0,0,0,0.9) !important;
}

.text-muted:hover {
  color: #dc3545 !important; /* Bootstrap merah */
}

.btn-secondary[disabled] {
  background-color: #ccc;
  border-color: #ccc;
  color: #333;
}

@keyframes bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

#cart-badge.bump {
  animation: bump 0.3s;
}


.event-banner-bg {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.card h2 {
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}
.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.2);
  color: #fff;
}


  .search-type-form select {
    min-width: 220px;
  }

  input[name="bib"]:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    border-color: #dc3545;
  }

  input[type="file"]:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    border-color: #0d6efd;
  }



   .custom-tabs-bar {
  display: flex;
  justify-content: left;
  align-items: left;
  flex-wrap: wrap;
  gap: 1rem;
}

.custom-tabs-bar form {
  width: 100%;
  max-width: 400px;
}

.custom-tabs-bar .host-selector {
  border-radius: 50px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  border: 1px solid #ced4da;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-tabs-bar .host-selector:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
  outline: none;
}



.timestamp-overlay {
  position: absolute; 
  bottom: 0; 
  left: 0; 
  width: 100%; 
  background: rgba(0, 0, 0, 0.45); 
  font-size: 0.85rem; 
  text-align: center;
}

.badge.bg-secondary {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
}


.timestamp-overlay:hover {
  opacity: 1;
}
.card:hover .photo-overlay {
  opacity: 1;
}
.photo-overlay {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9;
}

.glightbox:hover .photo-overlay {
  opacity: 1;
  top: 0;
}
.loading-overlay {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  background-color: rgba(5, 5, 5, 0.3);
  backdrop-filter: blur(8px);
  z-index: 11;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 0 5px #ff0202ff;
  color: #ffffffff;
}

.btn-preview {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.btn-preview:hover {
  background: #dc3545;
  color: #fff;
  transform: scale(1.05);
}

.page-link:hover,
.page-link:focus {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.page-item.active .page-link {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: #fff !important;
}
.canvas-thumb {
  width: 450px;
  height: 450px;
  overflow: hidden;
  position: relative;

  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  background-color: #f9f9f9;
  transition: transform 0.3s ease;
}

.canvas-thumb:hover {
  transform: scale(1.02);
}

.canvas-thumb canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;

}



.ratio-box {
  position: relative;
  width: 100%;
}

.ratio-box.ratio-3x2 { padding-top: 66.6667%; }
.ratio-box.ratio-16x9 { padding-top: 56.25%; }
.ratio-box.ratio-1x1 { padding-top: 100%; }

.ratio-box > * {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.tip-blink {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
  animation: blinkGlow 1.5s ease-in-out infinite;
}

@keyframes blinkGlow {
  0% {
    text-shadow: 0 0 5px #ffc107, 0 0 10px #ffc107;
    opacity: 1;
  }
  50% {
    text-shadow: none;
    opacity: 0.6;
  }
  100% {
    text-shadow: 0 0 5px #ffc107, 0 0 10px #ffc107;
    opacity: 1;
  }
}

.feature-note {
  font-size: 0.85rem;
  color: #dc3545; /* Bootstrap danger red */
  animation: pulseSoft 2s ease-in-out infinite;
}

@keyframes pulseSoft {
  0% {
    opacity: 0.6;
    text-shadow: 0 0 3px #f5c6cb;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 8px #f8d7da;
  }
  100% {
    opacity: 0.6;
    text-shadow: 0 0 3px #f5c6cb;
  }
}


  .gallery-thumb {
    aspect-ratio: 4/3;
    width: 100%;
    min-height: 220px;
    max-height: 400px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;

  }
  .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.3s;
  }
  .gallery-thumb img:hover {
    transform: scale(1.04);
  }
  .card.border-0.shadow-sm.position-relative {
    margin-bottom: 2px !important;
  }
  #galleryGrid > .col-md-3, #galleryGrid > .col-sm-6, #galleryGrid > .col-12 {
    padding-left: 2px;
    padding-right: 2px;
  }


@keyframes spinBah {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Group Hour Box Styling */
#groupHourBox {
  min-height: 180px;
  position: fixed;
  top: 10%;
  right: 0;
  z-index: 999;
  width: 190px;
  max-width: 90vw;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 10px;
  height: auto;
  scroll-behavior: smooth;
  display: block;
}

#hourListBah {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}



  #groupHourBox::-webkit-scrollbar {
    width: 8px;
    background: #f5f5f5;
    border-radius: 12px;
  }
  #groupHourBox::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d32f2f 60%, #ff7961 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(220,53,69,0.18);
  }
  #groupHourBox::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff3d00 60%, #d32f2f 100%);
  }

#groupHourBox .card-header {
  background: #ff0000ff;
  color: #fff;
  font-weight: bold;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;

  text-align: center;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(211,47,47,0.12);
}
#hourListBah {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 48px;
  width: 100%;
}
#hourListBah .hour-btn-bah {
  width: 100%;
  text-align: center;

  font-size: 1.1em;
  font-weight: 600;
  background: #d32f2f;
  color: #fff;
  border: none;
  box-shadow: none;
  padding: 8px 0;
  transition: background 0.2s;
}
#hourListBah .hour-btn-bah.grey {
  background: #757575;
  color: #fff;
}
#hourListBah .minit-btn-bah {
  width: 90%;
  margin-left: 10%;
  text-align: left;

  font-size: 0.98em;
  font-weight: 500;
  background: #ff7961;
  color: #fff;
  border: none;
  box-shadow: none;
  padding: 7px 12px;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
#hourListBah .minit-btn-bah:hover {
  background: #ff3d00;
  color: #fff;
}

.bib-progress, .face-progress {
  box-shadow: 0 2px 10px rgba(220,53,69,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.progress-bar {
  transition: width 0.3s cubic-bezier(.4,2,.3,1);
}


/* Custom migrated classes from inline style */
.custom-cart-icon {
  position: fixed;
  right: 16px;
  bottom: 90px; /* 10px above scroll-top button */
  z-index: 1002;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(220,53,69,0.18);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d32f2f;
  cursor: pointer;
}
.custom-cart-icon-i {
  font-size: 2rem;
  color: #d32f2f;
}
.custom-cart-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #d32f2f;
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.95em;
  font-weight: bold;
  min-width: 22px;
  text-align: center;
}
.custom-scroll-top-btn {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 32px;
  z-index: 1001;
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}
.restore-group-hour-btn {
  position: fixed;
  top: 20%;
  right: 0;
  z-index: 1001;
  font-size: 1.3em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  text-shadow: 0 2px 6px #fff, 0 1px 2px #d32f2f;
}

/* Vertical button style for Show Timeline */
.restore-group-hour-btn {
  writing-mode: initial;
  text-align: center;
  height: auto;
  width: 48px;
  padding: 8px 0;
  font-size: 1em;
  border-radius: 16px 0 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.vertical-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  letter-spacing: 0px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  line-height: 1.1;
}
.custom-spinner-bah {
  display: inline-block;
  width: 148px;
  height: 148px;
  border: 16px solid #d32f2f;
  border-top: 6px solid #fff;
  border-radius: 50%;
  animation: spinBah 1s linear infinite;
  box-shadow: 0 0 6px 2px #d32f2f, 0 0 18px 4px #ffffff, 0 0 4px 1px #fff inset;
  filter: drop-shadow(0 0 4px #ff0202) drop-shadow(0 0 3px #ffffff);
}
.custom-spinner-text-bah {
  color: #d32f2f;
  font-weight: 500;
  font-size: 1.1em;
  margin-top: 8px;
  text-shadow: 0 0 6px #ffffff, 0 0 3px #ff0202;
}
.cart-lightbox-bah {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.98);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(220,53,69,0.18);
  z-index: 2000;
  padding: 32px 24px 18px 24px;
  text-align: center;
  min-width: 240px;
}

/* Shared style for search select and buttons */
.search-flex-item {
  flex: 1 1 auto;
  min-width: 160px;
  max-width: 160px;
}
/* Custom merah border for Search By BIB Number button */
.btn-outline-primary.search-flex-item {
  border-color: #dc3545 !important;
  color: #dc3545 !important;
}
.btn-outline-primary.search-flex-item:hover,
.btn-outline-primary.search-flex-item:focus {
  color: #000000 !important;
  background-color: #dc3545 !important;
}
.btn-outline-grouptime.search-flex-item {
  border-color: #2f04f1 !important;
  color: #2f04f1 !important;
}
.btn-outline-grouptime.search-flex-item:hover,
.btn-outline-grouptime.search-flex-item:focus {
  color: #000000 !important;
  background-color: #2f04f1 !important;
}

.linkcartphoto {
  text-decoration: none;
  color: #000000;
}


@media (max-width: 900px) {
  #groupHourBox {
    top: 20% !important;
    right: 0 !important;
    left: unset !important;
    width: 50vw !important;
    max-width: 160px !important;
    z-index: 99999 !important;
    height: auto !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    font-size: 0.95em !important;
  }
  #hourListBah {
    max-height: calc(100vh - 170px);
    overflow-y: auto;
  }
  #groupHourBox .card-header {
    font-size: 1em !important;
    padding: 12px 6px 10px 6px !important;
  }
  #hourListBah .hour-btn-bah {
    font-size: 1em !important;
    padding: 7px 0 !important;
  }
  #hourListBah .minit-btn-bah {
    font-size: 0.92em !important;
    padding: 6px 10px !important;
  }
  .search-flex-item {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
  }

}


@media screen and (max-width: 600px) {
  .event-banner .overlay {
    padding: 1rem 1.5rem;
    text-align: center;
  }

  .event-banner h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .event-banner p {
    margin-top: -15px;
    font-size: 0.95rem;
    margin-bottom: -15px;
  }

  .event-banner .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .event-banner .qr-button {
    margin-top: 1rem;
  }
  .search-flex-item {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
  }

}



  @media (max-width: 768px) {
    .card-body form {
      flex-direction: column;
      align-items: stretch;
      gap: 0.5rem;
    }
  }


@media(max-width: 600px) {
  .timestamp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.45);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
  }
}

