@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mozilla+Headline:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&amp;display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&amp;display=swap');

/* ----------------------------------------------------
   Typography
---------------------------------------------------- */
input[type="password"],
input[type="email"],
input[type="text"],
input[type="file"],
input[type="num"],
input[type="number"],
textarea,
button,
body, p, select, a {
font-family: 'Work Sans', sans-serif !important;
font-size: 13px !important;
}

h1, h2, h3, h4, h5, h6 {
font-family: 'Syne', sans-serif !important;
font-weight: 600 !important;
}

.hdr-title {
font-family: 'Syne', sans-serif !important;
}

.rounded {
border-radius: 6px !important;
}

.text-lg { font-size: 30px !important; font-weight: 550 }
.text-sm { font-size: 13px !important; }
.text-xs { font-size: 12px !important; }
.text-bold { font-weight: 600 !important; }
.maincolor { color: #825de6 !important; }
.maincolor2 { color: #6336e3; }
.muted { color: #666; opacity: 0.7 !important; }
.parent-center {
  display: flex;
  justify-content: center;
}

input:focus {
    box-shadow: 0 0 0 2px rgba(59,130,246,.15);
}

/* ----------------------------------------------------
   Payment Link
---------------------------------------------------- */
.preview-img {
  border-radius: 10px;
  height: 290px;
  width: 100%;
  overflow: hidden;
}

/* Base rule */
.preview-img img {
  width: 100%;
  height: 100%;          /* ← REQUIRED */
  object-fit: cover;    /* ← DOES THE CROPPING */
  object-position: center;
  display: block;
}

/* Optional semantic class (safe to keep) */
.preview-crop {
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------
   Live Search
---------------------------------------------------- */
.customer-drop.customer-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    z-index: 9999;
    max-height: 260px;
    overflow-y: auto;
}

.customer-item {
    padding: 12px 15px;
    cursor: pointer;
}

.customer-item:hover {
    background: #f5f5f5;
}

.add-customer {
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* ----------------------------------------------------
   Side Navbar
---------------------------------------------------- */
.sidebar_nav .purple-li {
    background: #6336e3;
    color: #fff !important;
}

.sidebar_nav .purple-li span {
    color: #fff !important;
}

.sidebar_nav .purple-li a {
    color: #fff !important;
}

.sidebar_nav .purple-li li:hover {
    background: #222;
    color: #fff !important;
}

.sidebar_nav .purple-li:hover {
    background: #6336e3;
    color: #fff !important;
}

.sidebar_nav .open li:hover a {
    color: #f2eafb !important;
}

.sidebar_nav .open li.active,
.sidebar_nav .purple-li li:hover,
.sidebar_nav .open li:hover {
    background: #444 !important;
    color: #fff !important;
}

.sidebar_nav li:hover, .sidebar_nav .open {
    background: #222 !important;
    color: #fff !important;
}

.sidebar_nav .open li.active a,
.sidebar_nav li:hover a,
.sidebar_nav li:hover span,
.sidebar_nav .open a,
.sidebar_nav .open span,
.sidebar_nav .open li {
    color: #fff !important;
}

.sidebar_nav .open li a:hover {
    color: #ddd !important;
}

/* .date-time {
  display: flex;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
} */

/* ----------------------------------------------------
   (WebKit browsers)
---------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f2eafb;
}

::-webkit-scrollbar-thumb {
    background: #a485fb;
    border-radius: 10px;
    border: 2px solid #f2eafb;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== Scrollbar (Firefox) ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: #a485fb #f2eafb;
}

/* ----------------------------------------------------
   Logo (Responsive)
---------------------------------------------------- */
/* Desktop */
.navbar-left .logo-area {
  margin-left: -48px;
}

/* Tablets */
@media (max-width: 992px) {
  .navbar-left .logo-area {
    margin-left: -24px;
  }
}

.banner-feature__shape {
  width: 225px;
}

/* Mobile */
@media (max-width: 576px) {
  .navbar-left .logo-area {
    margin-left: -24px;
  }
  .banner-feature__shape {
  display: none;
}
}

/* ----------------------------------------------------
   Input Field Tooltip
---------------------------------------------------- */
.inline-tooltip {
    position: relative;
}

.info-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);

    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #999;
    color: #666;
    font-size: 11px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    background: #fff;
    z-index: 2;
}

/* Tooltip bubble */
.tooltip-text {
    visibility: hidden;
    opacity: 0;

    position: absolute;
    right: 0;
    top: -8px;
    transform: translateY(-100%);

    width: 250px;
    background: #333;
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;

    transition: opacity 0.2s ease;
    z-index: 10;
}

/* Arrow */
.tooltip-text::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 12px;
    border-width: 6px;
    border-style: solid;
    border-color: #111 transparent transparent transparent;
}

/* Show tooltip */
.info-icon:hover .tooltip-text,
.info-icon:focus .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip {
    padding-right: 40px;
}

/* ----------------------------------------------------
   Badges
---------------------------------------------------- */
.d-badge {
  display: inline-block;
  background: #51cea2;
  color: #fff !important;
  padding: 1px 5px 1px 5px;
  margin-right: 3px;
  font-size: 12px;
  font-weight: normal;
  border-radius: 5px;
  text-align: center;
}

.badge-green {
  display: inline-block;
  background: #51cea2;
  color: hsl(0, 0%, 100%) !important;
  padding: 3px 10px 2px 10px;
  font-size: 11px;
  font-weight: 550;
  border-radius: 3px;
  text-align: center;
}

.badge-orange {
  display: inline-block;
  background: #ff9223;
  color: hsl(0, 0%, 100%) !important;
  padding: 3px 10px 2px 10px;
  font-size: 11px;
  font-weight: 550;
  border-radius: 3px;
  text-align: center;
}

.badge-red {
  display: inline-block;
  background: #dc2626;
  color: #fff !important;
  padding: 3px 10px 2px 10px;
  font-size: 11px;
  font-weight: 550;
  border-radius: 3px;
  text-align: center;
}

.badge-purple {
  display: inline-block;
  background: #825de6;
  color: #fff !important;
  padding: 3px 10px 2px 10px;
  font-size: 11px;
  font-weight: 550;
  border-radius: 3px;
  text-align: center;
}

.badge-dark {
  display: inline-block;
  background: #666;
  color: #fff !important;
  padding: 3px 15px 2px 15px;
  font-size: 11px;
  font-weight: 550;
  border-radius: 3px;
  text-align: center;
}

.badge-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #666;
  color: #fff !important;

  width: 20px;
  height: 17px;

  font-size: 10px !important;
  font-weight: 550;
  border-radius: 3px;
}

.badge-gray {
  display: inline-block;
  background: #888;
  color: #fff !important;
  padding: 3px 10px 2px 10px;
  font-size: 11px;
  font-weight: 550;
  border-radius: 3px;
  text-align: center;
}

.badge-hover:hover, .badge-hover:active {
  background: #825de6;
  color: #fff !important;
}

.rounded-circle {
  padding: 2px;
  border: 1px solid rgba(0, 0, 0, 0.3);
}

/* ----------------------------------------------------
   Soft HR line
---------------------------------------------------- */
/* Simple and soft */
hr {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
  margin: 10px 0;
}

/* Extra soft (Modern UI) */
/* hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.6),
    transparent
  );
  margin: 28px 0;
} */

/* Dark & friendly */
/* hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin: 24px 0;
} */

/* ----------------------------------------------------
   Confirm Dialog
---------------------------------------------------- */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.confirm-overlay.hidden {
    display: none;
}

.confirm-dialog {
    background: #fff;
    width: 92%;
    max-width: 520px;
    padding: 32px 28px;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: scaleIn .18s ease-out;
}

.confirm-dialog h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111;
}

.confirm-dialog p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 26px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.confirm-actions button {
    flex: 1;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-secondary {
    background: #f2f2f2;
    color: #111;
}

.btn-secondary:hover {
    background: #111 !important;
}

.btn-primary {
    background: #6336e3;
    color: #fff;
}

.btn-primary:hover {
    background: #111 !important;
}

/* animation */
@keyframes scaleIn {
    from {
        transform: scale(.96);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ----------------------------------------------------
   Modal Dialog
---------------------------------------------------- */
#taskModal2 .modal-dialog {
    max-width: 90vw;
    width: 90vw;
    height: 90vh;
    margin: 5vh auto 0;
    border-radius: 26px;
}

#taskModal2 .modal-content {
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
}

#taskModal2 .modal-body {
    height: calc(100% - 56px); /* header/footer safe */
    overflow-y: auto;
}

/* Site-wide */
.modal-content {
    border-radius: 24px;
    overflow: hidden;
}

/* ----------------------------------------------------
   Miscalleneous
---------------------------------------------------- */
#liveClock {
  font-size: 13px;
  color: #999;
  margin-top: 10px;
}

.input-table {
  width: 150px;
}

.input-table-2 {
  width: 200px;
}

th {
    text-align: left !important;
    font-size: 12px !important;
    font-weight: 550 !important;
    text-transform: capitalize !important;
    padding: 0 !important;
    color: #222 !important;
}

.var_thumb {
  width: 50px;
  border-radius: 6px;
}

/* ----------------------------------------------------
   Dropzone Drag & Drop Upload
---------------------------------------------------- */
.dm-upload-avatar {
    border: 2px dashed #ccc;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.dm-upload-avatar.dragover {
    border-color: #815de6;
    background: rgba(98, 44, 253, 0.05);
}

.preview-area {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.preview-area img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.progress-wrap {
    margin-top: 15px;
    background: #eee;
    height: 6px;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #815de6;
    transition: width 0.2s ease;
}

/* ----------------------------------------------------
   Drag & Re-order UX
---------------------------------------------------- */
.preview-area {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preview-item {
    position: relative;
    cursor: grab;
}

.preview-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.preview-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.delete-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4d4f;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
}

.preview-item.main {
    outline: 2px solid #815de6;
    border-radius: 8px;
}

.main-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #815de6;
    opacity: .9;
    color: #fff;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    display: none;
    z-index: 2;
}

.preview-item.main .main-badge {
    display: inline-block;
}

.preview-item.no-delete .delete-btn {
    opacity: 0;
    pointer-events: none;
    cursor: not-allowed;
}

/* ----------------------------------------------------
   Highlight Search Keywords (Animated)
---------------------------------------------------- */
.product-item__body mark {
    background: linear-gradient(
        120deg,
        rgba(145, 58, 255, 0.25),
        rgba(145, 58, 255, 0.12)
    );
    /* color: #fff; */
    /* box-shadow: inset 0 -1px 0 rgba(145, 58, 255, 0.35); */
}

@keyframes markFadeIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ----------------------------------------------------
   Lazy Loading
---------------------------------------------------- */
.bkg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .3s ease;
}

.bkg-image.img-loaded {
    opacity: 1;
}

.bkg-image.img-error {
    background-image: url("img/no-image.jpg");
    opacity: 1;
}

/* ------------------------------------------------
   Lazy Image Fade-In (CLEAN)
------------------------------------------------ */
img.lazy-img {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity .45s ease, transform .45s ease;
}

img.lazy-img.img-loaded {
    opacity: 1;
    transform: scale(1);
}

img.lazy-img.img-error {
    opacity: 1;
    filter: grayscale(1);
}

/* Optional grid fade while searching */
.product-page-list.is-loading {
    opacity: 0.4;
    transition: opacity .25s ease;
}

/* ------------------------------------------------
   Product Thumbnail Uniform Height
------------------------------------------------ */
.product-item__image {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.product-item__image .like-icon {
    z-index: 99;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 550;
    text-transform: uppercase;
}

.draft-badge {
    background: #ffc107;
    color: #fff;
}

/* Desktop */
@media (min-width: 992px) {
    .product-item__image {
        height: 260px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .product-item__image {
        height: 220px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .product-item__image {
        height: 180px;
    }
}

/* Image behavior */
.product-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* fills box, crops nicely */
    object-position: center;
    display: block;
}

/* ----------------------------------------------------
   Toast
---------------------------------------------------- */
#toast-container {
  position: fixed;
  bottom: 30px;             /* distance from bottom */
  left: 50%;                /* center horizontally */
  transform: translateX(-50%);  /* perfect left-right centering */
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;

  animation: toastIn 0.45s cubic-bezier(.21,1.02,.73,1),
             toastOut 0.35s ease-in forwards;
  animation-delay: 0s, 3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); /* slide UP from below */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px); /* slide DOWN */
  }
}

/* ----------------------------------------------------
   Cart
---------------------------------------------------- */
.link-line {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(15,23,31,0.04);
  font-size: 13px;
}

.faint-bar {
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg,#f4f6f8,#f0f3f6);
  margin: 12px 0;
}

.link-line .label {
  font-weight: normal;
  color: #888;
}

.link-line .value {
  font-weight: 600 !important;
  color: #111;
}