/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  color: #14477e !important;
  /*text-transform: lowercase;*/
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}

/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks>* {
  display: block !important;
}

.demo-inline-spacing>* {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing>* {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg>* {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing-lg.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl>* {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}

.demo-vertical-spacing-xl.demo-only-element> :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}

.layout-demo-placeholder img {
  width: 900px;
}

.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/* Widget container fixed */
#whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

/* Circle button */
#whatsapp-button {
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, background-color 0.3s;
}

#whatsapp-button img {
  width: 30px;
  height: 30px;
}

#whatsapp-button:hover {
  transform: scale(1.1);
  background-color: #128C7E;
}

/* Popup message */
#whatsapp-popup {
  display: none;
  position: absolute;
  bottom: 70px;
  right: 0;
  background-color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  width: 220px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Popup text */
#whatsapp-popup p {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #333;
}

/* Start chat button */
#whatsapp-popup a {
  display: inline-block;
  background-color: #25D366;
  color: #fff;
  padding: 6px 12px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.3s;
}

#whatsapp-popup a:hover {
  background-color: #128C7E;
}

/* Mobile adjustments */
@media screen and (max-width: 600px) {
  #whatsapp-popup {
    width: 180px;
    bottom: 70px;
  }

  #whatsapp-popup p {
    font-size: 13px;
  }

  #whatsapp-popup a {
    font-size: 13px;
    padding: 5px 10px;
  }
}

@media only screen and (max-width:640px) {

  .dataTables_wrapper .dataTables_length {
    float: left !important;
  }

  .dataTables_wrapper .dataTables_filter {
    float: right !important;
    margin-top: 0 !important;
  }

  .dataTables_wrapper .dataTables_length label,
  .dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
  }
}

@media only screen and (max-width:479px) {

  #accountTab .card-body,
  #passwordTab .card-body {
    padding-left: 0;
    padding-right: 0;
  }

  .dataTables_wrapper .dataTables_length label,
  .dataTables_wrapper .dataTables_filter label {
    font-size: 13px;
    gap: 1px;
  }

  .dataTables_wrapper .dataTables_length label select {
    width: 43px;
  }

  .dataTables_wrapper .dataTables_filter label input {
    width: 15vh;
  }

}

@media only screen and (max-width:359px) {

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    float: none !important;
  }

  .dataTables_wrapper .dataTables_filter {
    margin-top: 5px !important;
  }

  .accountNavTab li:last-child a {
    padding-left: 1vh;
    padding-right: 1vh;
  }

}

.coupon-card {
  background: linear-gradient(135deg, #ffffff, #f7f9fc);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: 0.3s ease;
}

.coupon-card:hover {
  transform: translateY(-4px);
}

/* .coupon-expired {
        opacity: 0.6;
        filter: grayscale(80%);
        font-size: 0.8rem;
        color: #e9f1ff;
    } */

.coupon-header {
  padding: 16px;
  background: linear-gradient(135deg, #14477e, #2575fc);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.discount-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
}

.coupon-body {
  padding: 16px;
}

.coupon-progress {
  height: 8px;
  border-radius: 10px;
}

.coupon-progress .progress-bar {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  transition: width 0.6s ease;
}

.coupon-code {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #0d6efd;
  background: #f1f6ff;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  line-height: 1.2;
}

.coupon-expired .used-by {
  opacity: 1 !important;
  filter: none !important;
}

.coupon-expired .used-users {
  opacity: 1 !important;
  filter: none !important;
}

.coupon-expired .user-chip {
  background: #ffffff;
  color: #1e3a8a;
  border: 1px solid #dbeafe;
  font-weight: 600;
}


.used-by {
  margin-top: 10px;
}

.used-users {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.user-chip {
  background: #eef2ff;
  color: #3f51b5;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

@media(max-width: 576px) {
  .coupon-card {
    border-radius: 14px;
  }

  .coupon-code {
    font-size: 1rem;
  }
}