/* =========================================================
   Project Base
   ========================================================= */

/* Fonts */
:root {
  /* Brand */
  --brand-primary: #009688;
  --brand-primary-600: #1f746a;
  --brand-primary-700: #123a35;
  --brand-secondary: #6dccdd;
  --brand-secondary-600: #54b5c6;
  --brand-secondary-700: #3aa1b1;
  --brand-secondary-light: #00BAC7;
  --brand-text-dark: hsl(180, 33%, 2%);
  /* UI tokens */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-lg: 0 30px 35px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.15);
  /* Form icon paddings */
  --icon-size: 44px;
  --icon-gap: 12px;
  /* Carousel indicator */
  --ind-w: 56px;
  --ind-h: 6px;
  --ind-gap: 10px;
}



html,
body {
  height: 100%;
}

body,
input,
textarea,
select,
select option {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: "Merriweather Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin-bottom: 10px;
}



/* Auth height helper */
.auth-min-vh {
  min-height: 100vh;
}

/* Background */
.lgnbg {
  background: url(../images/custom/lognbg.jpg) no-repeat top center;
  background-size: cover;
  animation: bg-pan 15s linear infinite alternate;
}

@keyframes bg-pan {
  0% {
    background-position: center top;
  }

  100% {
    background-position: right bottom;
  }
}



/* =========================================================
   Buttons & Links (brand)
   ========================================================= */
.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  font-weight: 600;
}



  .btn-primary:hover,
  .btn-primary:focus {
    background-color: var(--brand-primary-600);
    border-color: var(--brand-primary-600);
  }

  .btn-primary:active {
    background-color: var(--brand-primary-700) !important;
    border-color: var(--brand-primary-700) !important;
  }

.btn-secondary {
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
  color: var(--brand-text-dark);
  font-weight: 600;
}

  .btn-secondary:hover,
  .btn-secondary:focus {
    background-color: var(--brand-secondary-600);
    border-color: var(--brand-secondary-600);
    color: #fff;
  }

  .btn-secondary:active {
    background-color: var(--brand-secondary-700) !important;
    border-color: var(--brand-secondary-700) !important;
  }

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

  .link-primary:hover {
    color: var(--brand-primary-600) !important;
  }

/* =========================================================
   Left: Hero / Carousel
   ========================================================= */
.hero {
  width: 100%;
  height: 100%;
}

.carousel-inner > .carousel-item {
  height: 100%;
}

/* Keep images controlled but responsive */
.carousel-item img {
  max-height: clamp(400px, 60vh, 700px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Custom line indicators with progress bar */
.carousel-indicators.custom-indicators {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  gap: var(--ind-gap);
  align-items: center;
}

  .carousel-indicators.custom-indicators [data-bs-target] {
    width: var(--ind-w);
    height: var(--ind-h);
    padding: 0;
    border: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
  }

    .carousel-indicators.custom-indicators [data-bs-target].active {
      background: rgba(255, 255, 255, 0.8);
    }

    .carousel-indicators.custom-indicators [data-bs-target] .bar {
      position: absolute;
      inset: 0 auto 0 0;
      width: 0%;
      background: var(--brand-primary);
      transition: width 0s linear;
      /* JS sets duration */
    }

    .carousel-indicators.custom-indicators [data-bs-target]:hover .bar {
      opacity: 0.9;
    }

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .carousel-item {
    padding-bottom: 50px;
  }

    .carousel-item img {
      max-height: 300px;
    }

  .cus-d-none {
    display: none !important;
  }

  .navbar-vertical {
    padding: 3px !important;
  }
}

@media (max-width: 1580px) {
  .carousel-item img {
    max-height: 400px;
  }
}

/* =========================================================
   Right: Glass panel & Auth card
   ========================================================= */
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}

/* Card */
.auth-card {
  position: relative;
  z-index: 2;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

  /* Form fields */
  .auth-card .form-control {
    height: 50px;
    padding-left: calc(var(--icon-size) + var(--icon-gap));
    padding-right: calc(var(--icon-size) + var(--icon-gap));
  }

  /* Form fields */
  .auth-card.regCls .form-control {
    height: 50px;
    padding-left: 10px;
    padding-right: 10px
  }

.form-control::placeholder {
  color: rgba(17, 24, 39, 0.5) !important;
  /* Softer than text */
}

/* Leading icon & trailing eye button positioned inside input */
.auth-card .input-group {
  position: relative;
}

.auth-card .input-group-text {
  position: absolute;
  top: 3px;
  left: 3px;
  width: var(--icon-size);
  height: var(--icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--brand-primary);
  background: transparent;
  border: 0;
  border-right: 1px solid #ccc;
  z-index: 10;
  pointer-events: none;
  /* don't steal focus */
}

.btn-pass-eye,
#togglePass.btn,
.auth-card .input-group > .btn.btn-outline-secondary {
  position: absolute !important;
  top: 3px;
  right: 3px;
  width: var(--icon-size);
  height: var(--icon-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--brand-primary);
  background: transparent;
  border: 0;
  z-index: 10;
}

/* Muted text helper */
.text-muted-70 {
  color: rgba(17, 24, 39, 0.7) !important;
}

.text-muted {
  color: rgba(17, 24, 39, 0.4) !important;
}

/* =========================================================
   Dashboard (shared styles you had below)
   ========================================================= */
.card-kpi .kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .06);
  color: var(--brand-primary);
  font-size: 1.1rem;
}

  .card-kpi .kpi-icon.kpi-primary {
    background: rgba(155, 30, 31, .10);
    color: var(--brand-primary);
  }

  .card-kpi .kpi-icon.kpi-secondary {
    background: rgba(109, 204, 221, .15);
    color: var(--brand-secondary);
  }

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.progress-thin {
  height: 6px;
}

.table th,
.table td {
  white-space: nowrap;
}

.table thead th {
  font-weight: 600;
}

.table td:focus {
  background-color: hsl(251, 100%, 55%) !important;
}

@media (max-width: 991.98px) {
  .card .card-header .card-title {
    margin-bottom: .25rem;
  }
}

/* =========================================================
   Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .carousel-indicators.custom-indicators [data-bs-target] .bar {
    transition-duration: 0s !important;
  }
}


/* ----------------- Dashboard ------------------- */

.dashnavbg {
  background: linear-gradient(-135deg, #0c2e47 30%, hwb(205 9% 48%) 100%);
  box-shadow: 15px 0px 25px 0px rgba(0, 0, 0, 0.4);
}

.icnsize {
  font-size: 35px;
}

.navbar-vertical {
  border-radius: 0px 0px 25px 0px;
  border: 0px !important;
}

  .navbar-vertical.navbar-expand-lg .navbar-nav .nav-link {
    font-weight: 500;
  }


.thead-light {
  background-color: hwb(203 92% 0%);
}

  .thead-light th {
    color: var(--brand-secondary-light) !important;
  }

@media (min-width: 992px) {
  .navbar-vertical.navbar-expand-lg {
    min-width: 18rem;
  }

    .navbar-vertical.navbar-expand-lg ~ main {
      margin-left: 18rem;
    }
}

.bg-sales-dash {
  background: linear-gradient(-180deg, #0c2e47 30%, hwb(205 9% 48%) 100%);
}

#eventSelect {
  border-radius: 50px;
  padding: 8px 15px;
  border: solid 1px #00BAC7 !important;
}

/* -------------------- Events -------------- */
/* General form fields (input, textarea, select) */
.form-control,
.form-select,
textarea {
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  border: solid 1px #ccc;
  box-shadow: none;
  transition: all 0.2s ease;
  background-color: #fff;
}

  .form-control::placeholder,
  textarea::placeholder {
    color: #b9b0aa;
    opacity: 0.85;
  }

  .form-control:hover,
  .form-select:hover,
  textarea:hover {
    border-color: #d5c8c2;
  }

  .form-control:focus,
  .form-select:focus,
  textarea:focus {
    border-color: #b68a83;
    box-shadow: 0 0 0 4px rgba(182, 138, 131, 0.15);
    outline: none;
  }

/* Textarea refinement */
textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* Radio & checkbox */
.form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25rem;
  border: 2px solid #cbbfba;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

  .form-check-input:checked {
    background-color: #a92b26;
    /* theme red */
    border-color: #a92b26;
  }

  .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(169, 43, 38, 0.2);
  }

  /* Radio refinement */
  .form-check-input[type="radio"] {
    border-radius: 50%;
  }

/* Labels */
.form-label,
.form-check-label {
  font-weight: 400;
  font-size: 0.92rem;
  color: #666;
}


.btn.hgtbtn {
  height: 50px;
}

.bg-sales-dash .btn-group-sm .btn {
  padding: 10px 10px;
}

.badge {
  line-height: normal;
}

/* ---------------- Promopter event ------------------ */
.prm_img_evn {
  width: 70px;
}

  .prm_img_evn img {
    max-width: 100%;
    border-radius: 5px;
  }

.ql-editor {
  background: #ffffff !important;
  color: #000;
}

.cmw-50 {
  max-width: 80px;
}


.modal-header {
  background-color: hsl(0, 0%, 94%) !important;
}

.modal-body {
  padding-top: 20p;
  padding-bottom: 20px;
}

.accordion-body {
  background-color: #fff;
}

.modal-backdrop.show {
  opacity: 0.8 !important;
  background: rgba(0, 0, 0, 0.80) !important;
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}

.table-sm > :not(caption) > * > *, .table-sm > thead th {
  padding: .5rem 0.5rem;
}


/* --- Default â‰¥992px (Vertical) --- */
.steps-vertical {
  position: relative;
  margin-top: 40px;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}

.step-item {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 40px;
}

  .step-item p {
    margin: 0px;
  }

  .step-item::after {
    content: "";
    position: absolute;
    top: 42px;
    left: 20px;
    width: 2px;
    height: calc(100% - 32px);
    border-left: 1px dashed #B42324;
  }

  .step-item:last-child::after {
    display: none;
  }

.step-icon {
  background: #B42324;
  color: #fff;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.step-item.inactive .step-icon {
  background: hsl(0, 100%, 92%);
  color: #333;
}

.step-item.active .step-icon {
  box-shadow: 0px 10px 10px 0px #720e0e33;
}

.step-item.inactive {
  color: #999;
}

.step-content {
  margin-left: 12px;
  padding-top: 10px;
}

  .step-content h3 {
    margin: 0;
    font-weight: 600;
  }

.step-item.active h3 {
  font-weight: 700;
  color: #000;
}

/* --- Responsive <992px (Horizontal Stepper) --- */
@media (max-width: 991.98px) {
  .steps-vertical {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 10px;
    padding: 0px;
  }

  .step-item {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    flex: 1;
    padding-bottom: 10px;
  }

    .step-item::after {
      content: "";
      position: absolute;
      top: 20px; /* align with icon center */
      left: 50%;
      width: 100%;
      height: 2px;
      border-top: 1px dashed #B42324;
      z-index: 0;
    }

    .step-item:last-child::after {
      display: none;
    }

  .step-icon {
    margin-bottom: 6px;
  }

  .step-content {
    margin-left: 0;
    text-align: center;
    padding: 5px 10px;
  }

    .step-content h3 {
      font-size: 0.8rem;
    }

    .step-content p {
      font-size: 11px;
    }

  .hdrlog_reg {
    width: 100%;
    display: inline-block !important;
    text-align: center;
  }
}

/* =========================================================
   Fix dropdown clipping in responsive tables
   ========================================================= */
.table-responsive {
    overflow-x: auto;
    overflow-y: visible;
}

.table-responsive:has(.dropdown-menu.show) {
    overflow: visible;
}

/* Required field indicator */
.required:after {
    content: " *";
    color: var(--bs-danger);
    font-weight: 600;
}
