/* CSS File */

/*===================================================
Project: Barcode/QR Product Traceability System | WorldEMS  
Developed By ModhaTech Team
====================================================*/

/* start global classes */
:root {
    /* body bg color */
    --bodyColor: #f8f6f4;
  
    /* box bg color */
    --boxColor: #eff0ef;
  
    /* dark brand color */
    --dark-brand-color: #202020;
  
    /* brand color */
    --brand-color: #2169b3;
  
    /* Primary Text Color */
    --primaryColor: #404742;
  
    /* title 2 Color (subtitle-color) */
    --title-2-color: #292836;
  
    /* Secondary Text Color */
    --secendaryColor: #5e5e5e;
  
    /* border radius */
    --border-radius: 5px;
  }
  
  * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Outfit", sans-serif;
    color: var(--primaryColor);
    background-color: var(--bodyColor);
    text-align: left;
    text-transform: capitalize;
    position: relative;
    overflow-x: hidden;
  }
  
  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }
  
  ::selection {
    color: var(--bodyColor);
    background-color: var(--brand-color);
  }
  
  .title {
    color: var(--primaryColor);
    font-size: 45px;
    font-weight: bold;
    position: relative;
    text-transform: capitalize;
  }
  
  .title-2 {
    color: var(--title-2-color);
    font-size: 15px;
    /* font-weight: bold; */
    position: relative;
    text-transform: capitalize;
  }
  
  .unique-text {
    color: var(--brand-color);
  }
  
  a,
  a:hover,
  a:focus {
    text-decoration: none;
  }
  
  .box {
    background-color: var(--boxColor);
    padding: 20px;
    border-radius: var(--border-radius);
    position: relative;
    height: 100%;
    z-index: 1;
    transition: color 300ms ease-in-out;
  }
  
  .box.box-hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-color: var(--brand-color);
    transition: transform 400ms ease-in-out;
    transform: scaleX(0);
    transform-origin: left;
    color: #f3f3f3;
    border-radius: var(--border-radius);
  }
  
  .box.box-hover:hover:before,
  .box.box-hover:focus:before {
    transform: scaleX(1);
  }
  
  .box.box-hover:hover,
  .box.box-hover:focus,
  .box.box-hover:hover a i,
  .box.box-hover:hover .box-icon i,
  .box.box-hover:hover > * {
    color: #f9f9f9;
  }
  
  .box.box-hover:hover > p {
    color: #def3de;
  }
  
  .home-rtl .box {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: end;
  }
  
  /* start buttons style */
  .btn,
  .btn-sec {
    border: 1px solid #2169b3;
    background: #2169b3;
    color: var(--bodyColor);
    font-weight: 800;
    border-radius: 40px;
    padding: 8px 25px;
    font-size: 20px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    text-transform: capitalize;
    align-items: center;
    text-align: center;
    letter-spacing: 0.5px;
    outline: none;
    font-weight: bold;
    transition: 0.8s all ease;
    cursor: pointer;
    z-index: 1;
  }
  
  .btn-sec {
    background-color: var(--boxColor);
    border: 1px solid var(--brand-color);
    color: var(--primaryColor);
  }
  
  .btn-sec:hover {
    color: var(--bodyColor);
  }
  
  .btn::before,
  .btn-sec::before {
    background: var(--boxColor);
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: all 0.6s ease;
    width: 100%;
    height: 0%;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  
  .btn-sec::before {
    background: var(--brand-color);
  }
  
  .btn:hover::before,
  .btn-sec:hover::before {
    height: 380%;
  }
  
  .learn-more {
    text-transform: capitalize;
    color: var(--brand-color);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background-color: transparent;
    display: flex;
    align-items: center;
  }
  
  .learn-more .bi {
    font-size: 25px;
  }
  
  /* end main button style */
  
  @media (max-width: 768px) {
    .btn {
      padding: 6px 18px;
      font-size: 16px;
    }
  
    .title {
      font-size: 35px;
    }
  
    .title-2 {
      font-size: 20px;
    }
  
    .pretitle {
      font-size: 14px;
    }
  
    p {
      font-size: 14;
      line-height: 28;
    }
  }
  
  p {
    color: var(--secendaryColor);
    font-size: 16px;
    line-height: 32px;
    font-weight: 400;
  }
  
  ul {
    list-style: none;
  }
  
  img {
    width: 100%;
  }
  
  /* end global classes */
  
  /*================== start navbar section ==================*/
  .navbar {
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(8px);
  }
  
  .navbar-toggler,
  .navbar-toggler:active,
  .navbar-toggler:focus {
    border: none;
  }
  
  .navbar .logo {
    width: 13rem;
  }
  
  @media (max-width: 990px) {
    .navbar .logo {
      width: 10rem;
      margin-bottom: auto;
    }
  
    .navbar {
      background-color: var(--boxColor);
    }
  
    .home-rtl .navbar #navbar {
      display: flex;
      flex-direction: column !important;
    }
  }
  
  .navbar #menu {
    color: var(--title-2-color);
    font-size: 30px;
  }
  
  
  .navbar.sticky {
    background-color: var(--boxColor);
    transition: 1s;
  }
  
  .navbar ul li a:focus {
    background-color: transparent;
  }
  
  .navbar ul li a {
    font-weight: 600;
    text-transform: capitalize;
    color: var(--secendaryColor) !important;
  }
  
  .navbar ul li a:hover,
  .navbar ul li a.active {
    color: #2169b3 !important;
  }
  
  .navbar .dropdown-menu {
    background-color: var(--boxColor) !important;
  }
  
  .navbar .dropdown-menu .dropdown-item {
    color: var(--title-2-color);
    background-color: var(--boxColor);
  }
  
  /*================== End navbar section ==================*/
  
  /*============== start FAQ section ==========*/
  /* Existing styles */
  .faq .box h4 {
    color: var(--title-2-color);
    font-size: 20px;
    font-weight: 600;
  }

  .faq .box i {
    font-size: 25px;
    color: var(--brand-color);
  }

  .rotate-icon {
    transition: transform 0.3s ease-in-out;
  }

  .rotate-icon.rotated {
    transform: rotate(180deg);
  }

  /* Mobile Responsive */
  @media (max-width: 576px) {
    .faq {
      padding: 20px 10px !important;
    }

    .faq .heading h1 {
      font-size: 22px;
      text-align: center;
      margin-bottom: 10px;
    }

    .faq .heading .pretitle {
      font-size: 14px;
      text-align: center;
    }

    .faq .heading p {
      font-size: 14px;
      text-align: center;
      padding: 0 5px;
    }

    .faq img {
      width: 100%;
      height: auto;
      margin-bottom: 20px;
    }

    .faq .box {
      padding: 10px;
      border-radius: 8px;
      background-color: #f9f9f9;
    }

    .faq .box h4 {
      font-size: 16px;
      display: flex;
      align-items: center;
    }

    .faq .box i {
      font-size: 18px;
      margin-left: 8px;
    }

    .faq .box p {
      font-size: 14px;
      margin-top: 8px;
    }
  }
  /*============== End FAQ section ==========*/
  
  /*============== Start Footer section ==========*/
  .footer {
    background-color: #1c1d1c;
  }
  
  .footer .box {
    background-color: var(--dark-brand-color);
  }
  
  .footer .box p {
    color: var(--secendaryColor);
  }
  
  .footer .box .logo img {
    width: 50%;
  }
  
  .footer .box .icon {
    color: #fff;
    background-color: var(--brand-color);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
  }
  
  .footer .box h4 {
    color: #b6b6b6;
  }
  
  .footer .box p {
    color: #a2a1a1;
  }
  
  .footer h4 {
    color: #b6b6b6;
    font-size: 18px;
    font-weight: 600;
  }
  
  .footer ul {
    margin: 0;
    padding: 0;
  }
  
  .footer ul li {
    color: #ddd;
    cursor: pointer;
  }
  
  .footer ul li a {
    font-size: 14px;
    font-weight: 400;
    text-transform: capitalize;
    color: #ddd;
  }
  
  .footer ul li i {
    font-size: 12px;
  }
  
  .footer .copyrights a {
    color: #d8d8d8;
  }
  
  .footer hr {
    color: #0d6efd;
  }
  
  /*============== End Footer section ==========*/
  
  /* ================= start 404 page ===================== */
  .fzf {
    width: 100%;
    overflow: hidden;
    height: 100%;
    display: grid;
    place-items: center;
    place-content: center;
  }
  
  .fzf .content {
    margin-top: 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15%;
  }
  
  .fzf .content img {
    width: 70%;
  }
  
  .fzf .content h1 {
    font-size: 60px;
    text-transform: uppercase;
    font-weight: bold;
    margin-block: 1rem;
  }
  
  /* ================= end 404 page ===================== */
  
  /* ================= start login page + register page  ===================== */
  
  .auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .auth input {
    border: 0;
    outline: 0;
    margin-block: 0.5rem;
  }
  
  /* ================= end login page + register page  ===================== */
  
  .light-mode-logo,
  .dark-mode-logo {
    transition: display 0.3s ease;
  }
  

  .field-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    z-index: 2;
  }
  

.icon-circle {
  border-radius: 80%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  font-size: 1.5rem;
}

/* ===================================================
   PREMIUM DASHBOARD UI ENHANCEMENT
====================================================== */

/* --- Base & Typography --- */
body {
    background-color: #f4f7fc; /* A soft, professional background color */
    font-family: 'Inter', 'Outfit', sans-serif; /* A modern, clean font */
}

.dashboard-container {
    max-width: 1600px;
}

/* --- Dashboard Header --- */
.dashboard-header h2 {
    font-weight: 700;
    color: #1a202c;
}
.dashboard-header .form-select {
    min-width: 200px;
    border: 1px solid #e2e8f0;
}


/* The new 'light black' / dark gray theme for the cards */
.stats-card-dark {
    background: linear-gradient(45deg, #2c3e50, #46637f); /* A sophisticated dark slate gradient */
}

.stats-card-premium {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stats-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.2);
}
.stats-card-premium .card-body {
    position: relative;
    z-index: 2;
}

/* Generic styling for the decorative background icon */
.stats-card-premium::after {
    font-family: 'bootstrap-icons';
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 7rem;
    opacity: 0.1;
    z-index: 1;
    line-height: 1;
}

/* Specific classes to control which background icon is shown */
.icon-bg-box::after { content: '\F1C0'; } /* bi-box-seam */
.icon-bg-person::after { content: '\F4D2'; } /* bi-person-check */


/* --- The rest of the premium styles from the previous response remain the same --- */
/* (Styles for .icon-circle-lg, .stats-label, .stats-value, etc.) */

.icon-circle-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background-color: rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem;
}
.stats-label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    opacity: 0.9;
    color: #ffffff;
}
.stats-value {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
}
.stats-period {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: #ffffff;
}

/* --- Action Card --- */
.action-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}
.action-card .btn-lg {
    font-weight: 600;
}

/* --- Premium Stats Cards --- */
.stats-card-premium {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stats-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.stats-card-blue {
    background: linear-gradient(45deg, #4e54c8, #8f94fb);
}
.stats-card-green {
    background: linear-gradient(45deg, #1d976c, #93f9b9);
}
.stats-card-premium .card-body {
    position: relative;
    z-index: 2;
}
.stats-card-premium::after { /* Faded background icon */
    content: '';
    font-family: 'bootstrap-icons';
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 7rem;
    opacity: 0.15;
    z-index: 1;
}
.stats-card-blue::after { content: '\F1C0'; /* box-seam icon */ }
.stats-card-green::after { content: '\F4D2'; /* person-check icon */ }

.icon-circle-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background-color: rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem;
}
.stats-label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}
.stats-value {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
}


.stats-card-blue {
  background: linear-gradient(45deg, #4e54c8, #8f94fb);
}
.stats-card-green {
  background: linear-gradient(45deg, #1d976c, #93f9b9);
}
.stats-card-orange {
  background: linear-gradient(45deg, #f2994a, #f2c94c);
}
.stats-card-red {
  background: linear-gradient(45deg, #e74c3c, #f1948a);
}


/* --- Chart & Feed Cards --- */
.chart-card,
.daily-feed-card {
    border: none;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f1f3f5;
    padding: 1rem 1.25rem;
    font-weight: 600;
}
.daily-feed-card .list-group-item {
    border-bottom: 1px solid #f1f3f5 !important;
    padding: 1rem 1.25rem;
    transition: background-color 0.2s ease;
}
.daily-feed-card .list-group-item:hover {
    background-color: #f8f9fa;
}
.daily-feed-card .list-group-item:last-child {
    border-bottom: none !important;
}

/* Soft badges for a modern look */
.badge.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.1);
    color: #157347; /* Darker success color */
    font-weight: 600;
    padding: 0.5em 0.8em;
}

/* --- FAQ Section --- */
.faq-section {
    background-color: #fff;
    border-radius: 12px;
    margin-top: 2rem;
}
.faq-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.faq-item a {
    color: inherit;
    text-decoration: none;
    padding: 1.25rem;
    display: block;
}
.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
}
.faq-item p.collapse {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: #6c757d;
}

/* --- Responsive Adjustments --- */
@media (max-width: 767.98px) {
    .dashboard-header {
        align-items: flex-start !important;
    }
    .stats-value {
        font-size: 2.25rem;
    }
}

/* ===================================================
   PREMIUM PRODUCT LIST UI
====================================================== */

/* --- Filter Card --- */
.filter-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.filter-card .card-header {
    background-color: #fff;
    border-bottom-color: transparent;
    transition: border-color 0.2s ease;
}
.filter-card .card-header[aria-expanded="true"] {
    border-bottom-color: #e9ecef;
}
.filter-card .card-header[aria-expanded="false"] .filter-arrow {
    transform: rotate(-90deg);
}
.filter-arrow {
    transition: transform 0.3s ease;
}

/* --- Product Cards --- */
.product-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.product-card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #adb5bd;
}
.product-image-placeholder .bi {
    font-size: 2.5rem;
    line-height: 1;
}
.product-card .card-title {
    color: #212529;
}
.status-badge {
    font-weight: 600;
    padding: 0.3em 0.65em;
    font-size: 0.75rem;
    border-radius: 6px;
    display: inline-block;
}
.status-completed { background-color: rgba(25, 135, 84, 0.1); color: #157347; }
.status-paused { background-color: rgba(255, 193, 7, 0.15); color: #856404; }
.status-in-progress { background-color: rgba(13, 110, 253, 0.1); color: #0a58ca; }


/* --- Empty State --- */
.empty-state-container {
    padding: 4rem 2rem;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 12px;
}

/* ===================================================
   Scan History Page - Responsive Adjustments
====================================================== */

/* Style for the filter input fields */
.filter-input {
    min-width: 160px;
    cursor: pointer;
}

/* Style for the table to improve readability */
#scanTable {
    min-width: 600px; /* Ensures the table is scrollable on small devices */
}

/* Darker header for better contrast */
#scanTable thead.table-dark {
    background-color: #212529; /* Standard Bootstrap dark */
    border-color: #32383e;
}


/* --- Media Queries for Fine-Tuning --- */

/* Tablet and below (screens smaller than 992px, where the 'lg' breakpoint hits) */
@media (max-width: 991.98px) {
    .scan-count-badge {
        width: 100%;
        text-align: center;
    }
    .filter-input {
        flex-grow: 1; /* Allow inputs to grow and fill space */
    }
}

/* Mobile phones (screens smaller than 768px) */
@media (max-width: 767.98px) {
    /* Reduce top margin for a better fit on smaller screens */
    .container[style*="margin-top: 100px"] {
        margin-top: 50px !important;
    }

    /* Reduce table font size to prevent text from wrapping excessively */
    #scanTable th, #scanTable td {
        font-size: 0.9rem;
        padding: 0.6rem 0.4rem;
    }

    #scanTable .badge {
        font-size: 0.75rem;
    }
}

/* ===================================================
   Raise Ticket Page - UI Enhancements
====================================================== */

/* --- Card Headers --- */
.ticket-form .card-header,
.ticket-history .card-header {
    background-color: var(--brand-color); /* Use your brand color */
    padding: 1rem 1.5rem;
}

/* --- Status Badges in History Table --- */
.status-badge {
    color: #fff;
    font-weight: 600;
    padding: 0.4em 0.7em;
    font-size: 0.8rem;
}
.status-badge.status-open {
    background-color: #0d6efd; /* Bootstrap blue */
}
.status-badge.status-in-progress {
    background-color: #ffc107; /* Bootstrap warning */
    color: #000;
}
.status-badge.status-completed {
    background-color: #00a7c1; /* Bootstrap warning */
    color: #000;
}
.status-badge.status-paused {
    background-color: #ff0707; /* Bootstrap warning */
    color: #000;
}
.status-badge.status-closed {
    background-color: #198754; /* Bootstrap success */
}

/* --- Toast Message Styling --- */
#toast-messages {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1055; /* Higher than most elements */
  min-width: 300px;
}

/* --- General Table Styling --- */
.ticket-history .table {
    margin-bottom: 0; /* Remove default bottom margin when inside a card */
}

/* ===================================================
   Raise Ticket Page - Responsive Adjustments
====================================================== */

@media (max-width: 767.98px) {
    .container.my-5 {
        margin-top: 6rem !important; /* Reduce top space on mobile */
        margin-bottom: 2rem !important;
    }
    
    .card-body.p-4 {
        padding: 1.5rem !important;
    }

    /* Make table fonts smaller to fit more content */
    .ticket-history .table th,
    .ticket-history .table td {
        font-size: 0.85rem;
        padding: 0.6rem 0.4rem;
    }

    #toast-messages {
        right: 10px;
        left: 10px;
        top: 10px;
        min-width: unset;
    }
}

/* ===================================================
   Scanning Pages - UI Enhancements
====================================================== */

.scan-card .card-header {
    background-color: var(--brand-color); /* Your primary brand color */
    padding: 1rem 1.5rem;
}

.scan-card .card-body {
    padding: 2rem !important;
}

.scan-card .form-control-lg {
    font-size: 1rem;
    letter-spacing: 1px;
}

.scan-card .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.scan-card .card-footer {
    padding: 1.5rem;
}

/* Assuming progress_tracker.html uses the .step-progress class */
.scan-card .card-footer .step-progress {
    margin: 0; /* Remove extra margins when inside the footer */
}


/* ===================================================
   Scanning Pages - Responsive Adjustments
====================================================== */

@media (max-width: 767.98px) {
    .container.my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .scan-card .card-body {
        padding: 1.5rem !important;
    }
    
    .scan-card .card-footer {
        padding: 1rem;
    }

    /* Adjust progress bar for mobile if it exists */
    .scan-card .step-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .scan-card .step:not(:last-child)::after {
        top: 14px;
        height: 2px;
    }
    .scan-card .step-label {
        font-size: 10px;
    }
}





/* ===================================================
   Capture Page - UI Enhancements
====================================================== */

.scan-card-final .card-header {
    background-color: var(--brand-color);
    padding: 1rem 1.5rem;
}

.camera-feed,
.image-placeholder,
#previewContainer #preview {
    border-radius: 8px;
    border: 3px solid #dee2e6; /* Bootstrap's light grey border */
    background-color: #f8f9fa; /* A very light grey background */
}

/* Style for the text placeholder before an image is captured */
.image-placeholder {
    width: 100%;
    min-height: 250px; /* Give it some default height */
    color: #6c757d; /* text-muted color */
    font-style: italic;
}

/* When preview is shown, hide the placeholder and show the image */
#previewContainer.has-image .image-placeholder {
    display: none !important;
}
#previewContainer.has-image #preview {
    display: block !important;
}

/* Container for the final QR code result */
.qr-result-container {
    background-color: #e9f5ff; /* A light blue to signify success/result */
    border: 1px solid #bde0fe;
    border-radius: 8px;
    padding: 1.5rem;
}

/* ===================================================
   Capture Page - Responsive Adjustments
====================================================== */
@media (max-width: 767.98px) {
    .scan-card-final .card-body {
        padding: 1rem !important;
    }
    
    .image-placeholder {
        min-height: 200px;
    }
}

















/* ===================================================
   QR Display Page - Premium UI Enhancements
====================================================== */

/* Set a subtle background to make the white cards pop */
body {
    background-color: #f8f9fa; 
}

/* --- Main Card Styling --- */
.product-summary-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.product-summary-card .card-header,
.product-summary-card .card-footer {
    background-color: #ffffff;
    border-color: #e9ecef;
}
.product-summary-card .card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}
.product-summary-card .card-footer {
    padding: 0.6rem 1rem;
    border-top: 1px solid #e9ecef;
}

/* --- Professional Traceability Table --- */
.traceability-table {
    width: 100%;
    border-collapse: collapse;
}
.traceability-table th, 
.traceability-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f5;
}
.traceability-table tr:last-child th,
.traceability-table tr:last-child td {
    border-bottom: none;
}
.traceability-table th {
    text-align: left;
    font-weight: 600;
    color: #6c757d; /* Muted text for labels */
    width: 40%;
}
.traceability-table td {
    text-align: left;
    font-weight: 500;
    color: #212529; /* Darker text for data */
}

/* --- Premium QR Label Wrapper --- */
.qr-label-wrapper {
    width: 100%;
    max-width: 320px;
    padding: 1.5rem;
    border: 2px dashed #adb5bd;
    border-radius: 10px;
    text-align: center;
    background-color: #fdfdff;
}
.qr-label-logo {
    max-height: 45px;
    margin-bottom: 1rem;
}
.qr-label-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.qr-label-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1rem;
}
.qr-label-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.qr-label-scan-text {
    font-size: 0.8rem;
    color: #adb5bd;
    margin-top: 1rem;
    margin-bottom: 0;
}


/* --- Responsive Adjustments --- */
@media (max-width: 767.98px) {
    .container.my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    h2 {
        font-size: 1.5rem;
    }

    .traceability-table th,
    .traceability-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

.imglogo {
  width: 80%;
  justify-content: center; 
}
