/* ============================================================
   TYKTT QUICKWAVE — base2.html Specific Styles
   Premium dark sidebar navigation + glassmorphism cards
   ============================================================ */

/* ── Navbar ── */
.qw-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0 0;
  min-height: 64px;
  transition: box-shadow 250ms ease;
}

.qw-navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.qw-navbar .container {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Brand / Logo */
.qw-navbar-brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Desktop nav links */
.qw-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.qw-nav-links .nav-item {
  position: relative;
}

.qw-nav-links .nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px !important;
  font-weight: 500;
  color: #475569 !important;
  padding: 7px 13px !important;
  border-radius: 8px;
  letter-spacing: 0.01em;
  transition: color 150ms ease, background 150ms ease;
  white-space: nowrap;
  line-height: 1.4 !important;
}

.qw-nav-links .nav-link:hover {
  color: var(--custom-color) !important;
  background: var(--color-indigo-50, #eef2ff);
}

.qw-nav-links .nav-link.active-link {
  color: var(--custom-color) !important;
  background: var(--color-indigo-50, #eef2ff);
  font-weight: 600;
}

/* Wallet chip */
.qw-wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  transition: background 150ms ease, box-shadow 150ms ease;
}
.qw-wallet-chip:hover {
  background: #e0e7ff;
  color: var(--custom-color);
  box-shadow: 0 2px 8px rgba(99,102,241,.15);
}

/* Logout link */
.qw-logout-link {
  font-size: 13.5px !important;
  font-weight: 500;
  color: #ef4444 !important;
  padding: 7px 13px !important;
  border-radius: 8px;
  transition: background 150ms ease;
}
.qw-logout-link:hover {
  background: #fef2f2;
  color: #dc2626 !important;
}

/* Mobile hamburger */
.qw-hamburger {
  background: transparent;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
  color: #334155;
  font-size: 16px;
}
.qw-hamburger:hover {
  border-color: var(--custom-color);
  color: var(--custom-color);
  background: #eef2ff;
}

/* ── Offcanvas Mobile Menu ── */
.off_body {
  background: #0f172a !important;
}

.offcanvas-body {
  overflow-y: auto;
  max-height: 100vh;
  padding-bottom: 2rem;
  background: #0f172a;
}

.offcanvas-header {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 1rem 1.25rem;
}

.offcanvas-header .btn-close {
  filter: invert(1) brightness(2);
  opacity: 0.6;
}
.offcanvas-header .btn-close:hover {
  opacity: 1;
}

/* Mobile nav items */
.small_nav_li {
  border-radius: 10px !important;
  transition: background 150ms ease;
}

.small_nav_li:hover {
  background-color: rgba(99, 102, 241, 0.15) !important;
  border-radius: 10px !important;
}

.small_nav_li .nav-link {
  color: #cbd5e1 !important;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 12px !important;
  letter-spacing: 0.01em;
  font-family: 'Inter', sans-serif;
  transition: color 150ms ease;
}
.small_nav_li:hover .nav-link {
  color: #fff !important;
}

.small_nav_li .nav-link i,
.small_nav_li .nav-link .fas {
  width: 20px;
  text-align: center;
  opacity: 0.7;
}

/* Mobile offcanvas wallet */
.qw-mobile-wallet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  text-decoration: none;
}

/* ── Page Content Area ── */
.qw-page-content {
  min-height: calc(100vh - 64px);
}

/* ── Generic Card ── */
.qw-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(226,232,240,0.7);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.qw-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

/* Stat cards */
.qw-stat-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(226,232,240,0.7);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.navbar ul li a {
  font-size: 0.875rem !important;
}

/* ── nav_item backward compat override ── */
.nav_item {
  font-size: 13.5px !important;
  font-weight: 500;
  line-height: 1.4 !important;
  letter-spacing: 0.01em !important;
}

@media (max-width: 767.98px) {
  .nav_item { font-size: 15px !important; }
}

/* ── Mobile wallet hover ── */
.qw-mobile-wallet:hover {
  background: rgba(99,102,241,.15);
  color: #f8fafc;
}

/* ── Dropdown menu polish ── */
.dropdown-menu {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 32px rgba(15,23,42,.10) !important;
  padding: 6px !important;
  font-family: 'Inter', sans-serif;
}

.dropdown-item {
  border-radius: 8px !important;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  padding: 8px 14px !important;
  transition: background 150ms ease, color 150ms ease;
}

.dropdown-item:hover {
  background: #eef2ff !important;
  color: var(--custom-color, #4f46e5) !important;
}

.dropdown-item.text-danger:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

/* ── Scrolled navbar shadow ── */
.nav-scrolled,
#qwMainNav.nav-scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.08) !important;
}

/* ── Badge on nav items ── */
.qw-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--custom-color, #4f46e5);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ── Skip-to-content accessibility link ── */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--custom-color, #4f46e5);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 10px 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 150ms ease;
}

.skip-to-content:focus {
  top: 0;
}

/* ── Page transitions ── */
.qw-page-content {
  animation: qw-fadein 200ms ease forwards;
}

@keyframes qw-fadein {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive offcanvas width ── */
@media (max-width: 767.98px) {
  .offcanvas.offcanvas-start {
    width: min(320px, 88vw) !important;
  }
}

