.text-underline-hover {
  text-decoration: none;
  cursor: pointer;
}

.text-underline-hover:hover {
  text-decoration: underline;
}
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-5 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
}
.whitespace-pre-line {
  white-space: pre-line;
}
.readonly{
  background-color: #f6f6f6;
}
#listData .table-responsive{
  min-height: 77vh;
}

@media screen and (max-width: 1023px) {
  h6.product-category-title {
    font-size: 12px;
    line-height: 20px;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1199px) {
  h6.product-category-title {
    font-size: 14px;
    line-height: 20px;
  }
}

.responsive-iframe {
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.h-full-topbar {
  height: calc(100dvh - 80px);
}

.scriptnote pre{
  background-color: rgba(2, 2, 2, 0.776) !important;
  color: #fff;
  margin-top: 5px !important;
  margin-bottom: 0 !important;
  padding: 10px;
  width: 100%;
  white-space: normal !important;
}
h1.main-display-amount{
  font-size: 3rem !important;
  line-height: 2px;
  font-weight: normal;
}
h5.main-display-trxid{
  font-size: 0.9rem !important;
  line-height: 2px;
  font-weight: normal;
}
.modal table h2{
  line-height: 2px;
}
.nowrap {
  white-space: nowrap;
}
.form-card {
  border: 1px solid #e3e6f0;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.form-card-header {
  background-color: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
}

.form-title {
  color: #5a5c69 !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ql-toolbar.ql-snow + .ql-container.ql-snow{
  border-radius: 0px 0px 10px 10px !important;
}

.border-bottom-field{
  border: none !important;
  border-bottom: 1px solid #e3e6f0 !important;
  box-shadow: none !important;
  border-radius: 0px !important;
  text-align: left !important;
}
.title-blog-list{
  line-height: 22px !important;
}

/* Glassy navbar */
.glass-navbar {
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid transparent !important;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.glass-navbar.is-scrolled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(246, 248, 255, 0.75) 100%) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ===== macOS Glossy SideBar ===== */
.sidebar-bg {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.8),
    0 2px 16px rgba(0, 0, 0, 0.08) !important;
  position: relative;
}

/* Glossy Sidebar Menu Items */
.sidebar-bg .nav-link,
.sidebar-bg .menu-link,
.sidebar-bg .sidebar-item a {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 8px !important;
  margin: 4px 8px !important;
  padding: 10px 12px !important;
  color: #6a4295 !important;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* border: 1px solid #667eea !important; */
}

.sidebar-bg .nav-link:hover,
.sidebar-bg .menu-link:hover,
.sidebar-bg .sidebar-item a:hover {
  background: linear-gradient(135deg, rgba(119, 46, 215, 0.3) 0%, rgba(76, 40, 112, 0.3) 100%) !important;
  border-color: rgba(177, 102, 234, 0.3) !important;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(56, 30, 85, 0.2);
}

.sidebar-bg .menu-inner > .menu-item.active > .menu-link,
.sidebar-bg .menu-inner > .menu-item.active > .nav-link {
  background: linear-gradient(135deg, #8663c4 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 
    0 2px 5px rgba(102, 126, 234, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Submenu styling */
.sidebar-bg .menu-item .menu-item {
  margin-left: 0 !important;
}

.sidebar-bg .menu-item .menu-link {
  padding-left: 12px !important;
}
.menu-sub .menu-item .menu-link {
  border: 1px solid transparent !important;
  border-bottom: 1px solid #e3e6f0 !important;
}

.sidebar-bg ul li {
  list-style: none !important;
}

/* Remove submenu list style dots */
.layout-wrapper:not(.layout-horizontal) .menu-vertical .menu-inner>.menu-item>.menu-sub>.menu-item>.menu-link::before {
  display: none !important;
  content: none !important;
}

/* Submenu active state - softer gradient without shadow */
.sidebar-bg .menu-sub .active .menu-item .menu-link,
.sidebar-bg .menu-sub .active .menu-link {
  background: linear-gradient(135deg, rgba(134, 99, 196, 0.3) 0%, rgba(118, 75, 162, 0.4) 100%) !important;
  border-color: rgba(102, 126, 234, 0.1) !important;
  box-shadow: none !important;
}

.sidebar-bg .nav-link.active::before,
.sidebar-bg .menu-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  border-radius: 0 2px 2px 0;
}

/* ===== macOS Glossy Login Card ===== */
.authentication-bg {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.8),
    0 2px 16px rgba(0, 0, 0, 0.08) !important;
  position: relative;
}

.authentication-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  pointer-events: none;
}

/* Enhanced Form Elements */
.authentication-bg .form-control {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(102, 126, 234, 0.2) !important;
  color: #1a202c !important;
  font-weight: 500;
  border-radius: 12px !important;
  padding: 12px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ===== Reusable page surface & glass card ===== */
.page-surface {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(134, 99, 196, 0.02) 45%, rgba(102, 126, 234, 0.01) 100%);
  border-radius: 18px;
  overflow: hidden;
}

.page-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(134, 99, 196, 0.03), transparent 42%),
    radial-gradient(circle at 75% 35%, rgba(102, 126, 234, 0.02), transparent 40%),
    radial-gradient(circle at 35% 80%, rgba(79, 209, 197, 0.02), transparent 42%);
  pointer-events: none;
  z-index: 0;
}

.page-surface > * {
  position: relative;
  z-index: 1;
}

.glass-card {
  background: rgba(255, 255, 255, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    0 10px 28px rgba(102, 126, 234, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-radius: 16px;
}

.glass-card .table {
  margin-bottom: 0;
}

.authentication-bg .form-control:focus {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(102, 126, 234, 0.6) !important;
  box-shadow: 
    0 0 0 3px rgba(102, 126, 234, 0.1),
    0 4px 12px rgba(102, 126, 234, 0.15) !important;
  transform: translateY(-1px);
}

.authentication-bg .form-control::placeholder {
  color: transparent !important;
}

.authentication-bg .form-control:focus::placeholder {
  color: rgba(113, 128, 150, 0.6) !important;
}

.authentication-bg label {
  color: #667eea !important;
  font-weight: 600;
  font-size: 0.875rem;
  position: absolute;
  top: 50%;
  left: 1rem;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  transform: translateY(-50%);
}

.authentication-bg .form-floating > label {
  top: 50%;
  left: 0.25rem;
  transform: translateY(-50%);
}

.authentication-bg .form-floating > .form-control:focus ~ label,
.authentication-bg .form-floating > .form-control:not(:placeholder-shown) ~ label {
  top: -8px;
  left: 0.25rem;
  font-size: 0.75rem;
  transform: translateY(0);
}

.authentication-bg .input-group-text {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(102, 126, 234, 0.2) !important;
  border-left: none !important;
  border-radius: 0 12px 12px 0 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #667eea !important;
}

.authentication-bg .input-group-text:hover {
  background: rgba(255, 255, 255, 0.85) !important;
  transform: scale(1.05);
}

.authentication-bg .input-group .form-control {
  border-right: none !important;
  border-radius: 12px 0 0 12px !important;
}

.authentication-bg label {
  color: #2d3748 !important;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Glossy Buttons */
.authentication-bg .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  box-shadow: 
    0 4px 15px 0 rgba(102, 126, 234, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.12) !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: 12px !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.authentication-bg .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.authentication-bg .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px 0 rgba(102, 126, 234, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

.authentication-bg .btn-primary:hover::before {
  left: 100%;
}

.authentication-bg .btn-primary:active {
  transform: translateY(0);
}

.authentication-bg .btn-outline-primary {
  background: rgba(102, 126, 234, 0.08) !important;
  border: 2px solid rgba(102, 126, 234, 0.3) !important;
  color: #667eea !important;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 12px !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.authentication-bg .btn-outline-primary:hover {
  background: rgba(102, 126, 234, 0.15) !important;
  border-color: #667eea !important;
  color: #5568d3 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

/* OTHER CUZTOMIZATION */
.app-brand .layout-menu-toggle svg {
  color: #261a4b !important;
}
.w-px-175 {
  width: 175px !important;
}
.sidebar-bg .active .menu-toggle::after {
  color: #ffffff !important;
}

.bg-menu-theme .menu-item.active:not(.open)>.menu-link:not(.menu-toggle)::before {
  color: #6a4295 !important;
}