/* custom.css */

/* Define the new primary color */
:root {
    --bs-primary: #2e2e2e;
}

/* Override container padding */
.container{
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 0.5rem;
}

/* Keep navbar fixed on top */
.navbar {
  position: relative;
  z-index: 1010;
}

/* Override .btn-primary */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

/* Override .btn-outline-primary */
.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

/* Optional: use new primary for navbar too */
.navbar-dark.bg-dark {
    background-color: var(--bs-primary) !important;
}

/* Consistent field sizing */
.slab-filter-field {
    min-width: 120px;
    flex-grow: 1;
}

/* Button row styling */
.slab-filter-buttons {
    gap: 0.5rem;
    margin-top: 1rem;
}

.slab-filter-button a,.slab-filter-button button{
    min-width: 100px;
    width: 100%;
}

/* Magnifying glass effect for slab images */
.magnify-container {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  width: 100%;
  display: inline-block;
}

.magnify-container .magnify-slab {
  transition: transform 0.2s ease;
  transform-origin: center center;
  width: 100%;
  height: auto;
  display: block;
}

.magnify-container:hover .magnify-slab {
  transform: scale(2.75);
}

.custom-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1055;
}

/* Showcase page background */
.showcase-page {
    min-height: 100vh;
    position: relative;
}

/* Background video for showcase */
.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.slab-button-group{

    gap: 0.5rem;
  }

/* Optional overlay for contrast */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.138);
  z-index: 0;
  pointer-events: none;
}

/* Foreground content for showcase */
.content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Showcase logo styling */
.showcase-logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* Showcase CTA button styling */
.showcase-cta {
  transition: all 0.3s ease;
}

.showcase-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-link {
    color: var(--bs-primary) !important;
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: black;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slab page specific styling */
.slab-page {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.slab-page .row {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.slab-filter-form {
    margin-bottom: 1rem;
}

.slab-card-grid .col {
    margin-bottom: 1rem;
}


/* Optional overlay for contrast */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.138); /* darken video */
  z-index: 0;
  pointer-events: none; /* Ensure clicks pass through to underlying elements */
}

/* Foreground content for showcase */
.content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}



/* Showcase CTA button styling */
.showcase-cta {
  transition: all 0.3s ease;
}

.showcase-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);

}

/* Slab page specific styling */
.slab-page {
    padding-top: 1rem;    /* equivalent to py-3 */
    padding-bottom: 1rem; /* equivalent to py-3 */
}

/* Ensure rows respect container padding in slab page */
.slab-page .row {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Add vertical spacing between form rows */
.slab-filter-buttons {
    margin-top: 1rem; /* py-3 equivalent between filter fields and buttons */
}

/* Add vertical spacing between form and slab cards */
.slab-filter-form {
    margin-bottom: 1rem; /* py-3 equivalent after the form */
}

/* Add vertical margin to slab cards */
.slab-card-grid .col {
    margin-bottom: 1rem; /* py-3 equivalent bottom margin for each card */
}

/* Status pill styling */
.status-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

/* Status: Available (1) - Bootstrap Success Green */
.status-1 {
    background-color: #198754 !important;
    color: white !important;
}

/* Status: Sold (2) - Bootstrap Danger Red */
.status-2 {
    background-color: #dc3545 !important;
    color: white !important;
}

/* Status: Reserved (3) - Bootstrap Warning Yellow */
.status-3 {
    background-color: #ffc107 !important;
    color: #000 !important;
}

/* Status: Consumed/Processed (4) - Bootstrap Secondary Gray */
.status-4 {
    background-color: #6c757d !important;
    color: white !important;
}

/* Main Image Zoom on Hover - Constrained to Container */
#mainImage {
    transition: transform 0.2s ease;
    cursor: zoom-in;
    transform-origin: center center;
}

#mainImage:hover {
    transform: scale(2);
    cursor: zoom-out;
}



