/* ============================================================
   Whirlpool IMS — Glossy Design System v3.0
   Glass morphism + Animations + Premium Polish + VIBRANT
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Brand Colors */
  --wp-blue:         #003087;
  --wp-blue-light:   #1a4aa8;
  --wp-blue-mid:     #0047b3;
  --wp-blue-dark:    #001244;
  --wp-blue-glow:    rgba(0,78,210,.22);
  --wp-red:          #e31837;
  --wp-pink:         #ec4899;
  --wp-orange:       #f97316;

  /* Vibrant Accent Colors */
  --violet:          #7c3aed;
  --cyan:            #06b6d4;
  --emerald:         #10b981;
  --rose:            #f43f5e;
  --amber:           #f59e0b;
  --indigo:          #6366f1;

  /* Gradients */
  --grad-blue:    linear-gradient(135deg, #003087 0%, #0047b3 60%, #0066cc 100%);
  --grad-sidebar: linear-gradient(180deg, #001040 0%, #001f6e 45%, #002280 100%);
  --grad-accent:  linear-gradient(135deg, #e31837 0%, #ff4560 100%);
  --grad-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --grad-amber:   linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --grad-purple:  linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
  --grad-teal:    linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  --grad-pink:    linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
  --grad-violet:  linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  --grad-cyan:    linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  --grad-rose:    linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  --grad-glass:   linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 100%);
  --grad-rainbow: linear-gradient(90deg, #e31837, #f59e0b, #10b981, #06b6d4, #6366f1, #7c3aed, #ec4899);

  /* Surface & BG */
  --wp-bg:         #eef2fc;
  --wp-surface:    #ffffff;
  --wp-surface-2:  #f5f7ff;
  --wp-glass:      rgba(255,255,255,.65);
  --wp-glass-dark: rgba(255,255,255,.08);

  /* Borders */
  --wp-border:       rgba(99,117,178,.18);
  --wp-border-hover: rgba(0,48,135,.28);
  --wp-glass-border: rgba(255,255,255,.35);

  /* Text */
  --wp-text-primary:   #0d1733;
  --wp-text-secondary: #4a5a80;
  --wp-text-muted:     #8898bb;

  /* Layout */
  --wp-sidebar-w: 268px;
  --wp-topbar-h:  62px;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Shadows */
  --s-xs:   0 1px 3px rgba(0,30,100,.06), 0 1px 2px rgba(0,30,100,.04);
  --s-sm:   0 2px 8px rgba(0,30,100,.08), 0 1px 3px rgba(0,30,100,.05);
  --s-md:   0 6px 20px rgba(0,30,100,.10), 0 2px 8px rgba(0,30,100,.06);
  --s-lg:   0 12px 40px rgba(0,30,100,.14), 0 4px 16px rgba(0,30,100,.08);
  --s-xl:   0 20px 60px rgba(0,30,100,.18), 0 8px 24px rgba(0,30,100,.10);
  --s-blue: 0 8px 30px rgba(0,71,179,.30), 0 2px 8px rgba(0,71,179,.18);
  --s-glow: 0 0 0 3px rgba(0,78,210,.16);

  /* Transitions */
  --t-fast: all .15s cubic-bezier(.4,0,.2,1);
  --t:      all .25s cubic-bezier(.4,0,.2,1);
  --t-slow: all .4s cubic-bezier(.4,0,.2,1);

  /* Animations */
  --spring: cubic-bezier(.34,1.56,.64,1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ============================================================
   PAGE LOADING & TRANSITIONS
   ============================================================ */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--wp-bg);
  color: var(--wp-text-primary);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: fadeIn .6s ease-out;
}
/* Animated colorful grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(124,58,237,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6,182,212,.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(236,72,153,.05) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 60%, rgba(16,185,129,.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: gradient-shift 15s ease infinite;
  background-size: 200% 200%;
}

/* ============================================================
   SCROLLBAR — COLORFUL
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--wp-blue), var(--wp-purple));
  border-radius: 10px;
  transition: all .3s;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #3b82f6, #8b5cf6); }

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:none; }
}
@keyframes fadeInDown {
  from { opacity:0; transform:translateY(-10px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
@keyframes slideInLeft {
  from { opacity:0; transform:translateX(-20px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes scaleIn {
  from { opacity:0; transform:scale(.94); }
  to   { opacity:1; transform:scale(1); }
}
@keyframes pulse-ring {
  0%   { box-shadow:0 0 0 0 rgba(0,78,210,.4); }
  70%  { box-shadow:0 0 0 8px rgba(0,78,210,0); }
  100% { box-shadow:0 0 0 0 rgba(0,78,210,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%,100% { transform:translateY(0); }
  50%      { transform:translateY(-5px); }
}
@keyframes spin-slow {
  from { transform:rotate(0deg); }
  to   { transform:rotate(360deg); }
}
@keyframes count-up {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes gradient-shift {
  0%   { background-position:0% 50%; }
  50%  { background-position:100% 50%; }
  100% { background-position:0% 50%; }
}
@keyframes rainbow-border {
  0%   { border-color: #e31837; }
  16%  { border-color: #f59e0b; }
  33%  { border-color: #10b981; }
  50%  { border-color: #06b6d4; }
  66%  { border-color: #6366f1; }
  83%  { border-color: #7c3aed; }
  100% { border-color: #e31837; }
}
@keyframes gradient-text {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes badge-pop {
  0%   { transform:scale(0); }
  70%  { transform:scale(1.2); }
  100% { transform:scale(1); }
}
@keyframes toast-slide {
  from { opacity:0; transform:translateX(100%); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes logo-float {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-3px) rotate(1deg); }
}
@keyframes card-glow {
  0%,100% { box-shadow: var(--s-sm); }
  50% { box-shadow: var(--s-md), 0 0 20px rgba(0,48,135,.1); }
}
@keyframes btn-glow {
  0%,100% { box-shadow: 0 3px 12px rgba(0,71,179,.35); }
  50% { box-shadow: 0 6px 24px rgba(0,71,179,.5); }
}
@keyframes slideInRight {
  from { opacity:0; transform:translateX(20px); }
  to { opacity:1; transform:translateX(0); }
}
@keyframes scaleUp {
  from { opacity:0; transform:scale(.9); }
  to { opacity:1; transform:scale(1); }
}

/* ============================================================
   TOPBAR
   ============================================================ */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--wp-topbar-h);
  background: var(--grad-sidebar);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  z-index: 1050;
  transition: var(--t);
  box-shadow: 0 2px 16px rgba(0,16,64,.25);
}

#topbar::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
}

/* Brand */
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.topbar-brand svg { width: 26px; height: 26px; }

.topbar-brand-text { display: flex; flex-direction: column; line-height: 1; }
.topbar-brand-text .brand-name { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.topbar-brand-text .brand-sub  { color: rgba(255,255,255,.4); font-size: 10px; text-transform: uppercase; letter-spacing: 1.1px; margin-top: 2px; }

.topbar-logo {
  transition: var(--t);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
.topbar-brand:hover .topbar-logo {
  transform: rotate(-5deg) scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-left: 8px;
}

.bc-sep { font-size: 9px; opacity: .4; }
.bc-current { color: rgba(255,255,255,.85); font-weight: 600; }

.topbar-spacer { flex: 1; }

/* Search */
.topbar-search { position: relative; width: 220px; }

.topbar-search input {
  width: 100%;
  padding: 7px 14px 7px 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  font-size: 13px;
  background: rgba(255,255,255,.08);
  color: #fff;
  outline: none;
  transition: var(--t-fast);
  font-family: inherit;
}

.topbar-search input:focus {
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.14);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}

.topbar-search input::placeholder { color: rgba(255,255,255,.4); }
.topbar-search .search-icon { position: absolute; left: 12px; top: 50%; transform:translateY(-50%); color: rgba(255,255,255,.45); font-size: 12px; pointer-events: none; }

/* Topbar icon buttons */
.topbar-btn {
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 15px;
  cursor: pointer;
  position: relative;
  transition: var(--t-fast);
  text-decoration: none;
}

.topbar-btn:hover { background: rgba(255,255,255,.1); color: #fff; transform: scale(1.06); }

.topbar-notif-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 7px; height: 7px;
  background: var(--wp-red);
  border-radius: 50%;
  border: 2px solid #001040;
  animation: pulse-ring 2s infinite;
}

/* Avatar button */
.topbar-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 22px;
  cursor: pointer;
  transition: var(--t-fast);
}

.topbar-avatar-btn:hover {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

.topbar-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,48,135,.3);
}

.topbar-user-name { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.9); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   TOP NAV BAR (horizontal menu below topbar)
   ============================================================ */
#topnav {
  position: fixed;
  top: var(--wp-topbar-h);
  left: 0;
  right: 0;
  min-height: 44px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--wp-border);
  z-index: 1040;
  box-shadow: 0 2px 8px rgba(0,30,100,.04);
  overflow: visible;
  border-top: 1px solid rgba(255,255,255,.8);
}
#topnav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
}

.topnav-scroll {
  min-height: 44px;
  overflow-x: auto;
  padding: 0 20px;
}

.topnav-scroll::-webkit-scrollbar { height: 0; }

.topnav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.topnav-item { list-style: none; }

.topnav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 44px;
  color: var(--wp-text-secondary);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: var(--t-fast);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.topnav-link i { font-size: 12px; color: var(--wp-text-muted); }

.topnav-link:hover {
  color: var(--wp-blue);
  background: rgba(0,48,135,.03);
}
.topnav-link:hover i { color: var(--wp-blue); }

.topnav-link.active {
  color: var(--wp-blue);
  border-bottom-color: var(--wp-blue);
  font-weight: 600;
}
.topnav-link.active i { color: var(--wp-blue); }

.topnav-chevron { font-size: 9px; transition: transform .2s; }
.topnav-dropdown:hover .topnav-chevron { transform: rotate(180deg); }

/* Dropdowns */
.topnav-dropdown { position: relative; }

/* position:fixed so overflow-x:auto on .topnav-scroll doesn't clip the menu */
.topnav-dropdown-menu {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 220px;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--wp-border);
  border-radius: var(--r-sm);
  box-shadow: var(--s-lg);
  padding: 6px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all .2s ease;
  z-index: 1060;
  pointer-events: none;
}

/* menu is moved to <body> by JS, so use class directly on menu element */
.topnav-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.topnav-dropdown.open .topnav-chevron { transform: rotate(180deg); }

.topnav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--wp-text-secondary);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 400;
  transition: var(--t-fast);
}

.topnav-dropdown-item i { font-size: 11px; color: var(--wp-text-muted); width: 16px; text-align: center; }

.topnav-dropdown-item:hover {
  background: rgba(0,48,135,.05);
  color: var(--wp-blue);
}
.topnav-dropdown-item:hover i { color: var(--wp-blue); }

.topnav-dropdown-item.active {
  background: rgba(0,48,135,.07);
  color: var(--wp-blue);
  font-weight: 500;
}
.topnav-dropdown-item.active i { color: var(--wp-blue); }

.topnav-badge-count {
  background: var(--grad-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(227,24,55,.3);
  animation: badge-pop .4s var(--spring);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
#main-content {
  padding-top: calc(var(--wp-topbar-h) + 44px);
  min-height: 100vh;
  position: relative;
}

.content-body {
  padding: 26px 28px 56px;
  animation: fadeInUp .5s cubic-bezier(.4,0,.2,1) both;
}

/* Page Header */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 21px;
  font-weight: 800;
  background: linear-gradient(135deg, #003087, #6366f1, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient-text 4s linear infinite;
  letter-spacing: -.4px;
  line-height: 1.2;
}

.page-subtitle { font-size: 13px; color: var(--wp-text-muted); margin-top: 3px; }

/* ============================================================
   STAT CARDS — Glassmorphism + Animation
   ============================================================ */
.stat-card {
  background: var(--wp-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: var(--r-lg);
  padding: 20px;
  border: 1px solid var(--wp-glass-border);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--t);
  box-shadow: var(--s-sm);
  position: relative;
  overflow: hidden;
  animation: fadeInUp .4s ease both;
}

/* Glossy inner highlight */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.5), transparent);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  pointer-events: none;
}

/* Subtle colored bottom accent */
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--stat-color, var(--grad-blue));
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  opacity: 0;
  transition: opacity .3s;
}

.stat-card:hover {
  box-shadow: var(--s-md);
  transform: translateY(-3px) scale(1.01) perspective(1000px) rotateX(1deg);
  border-color: rgba(255,255,255,.6);
}

/* Stagger animation for stat cards */
.stat-card:nth-child(1) { animation-delay: .1s; }
.stat-card:nth-child(2) { animation-delay: .2s; }
.stat-card:nth-child(3) { animation-delay: .3s; }
.stat-card:nth-child(4) { animation-delay: .4s; }

.stat-card:hover::after { opacity: 1; }

.stat-icon {
  width: 50px; height: 50px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  position: relative;
  transition: var(--t);
}

/* Icon glossy effect */
.stat-icon::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: rgba(255,255,255,.35);
  border-radius: var(--r) var(--r) 0 0;
}

.stat-card:hover .stat-icon { transform: scale(1.08) rotate(-3deg); }

.stat-icon.blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color:#fff; --stat-color:linear-gradient(90deg,#3b82f6,#1d4ed8); box-shadow:0 4px 16px rgba(59,130,246,.35); }
.stat-icon.green  { background: linear-gradient(135deg, #22c55e, #16a34a); color:#fff; --stat-color:linear-gradient(90deg,#22c55e,#16a34a); box-shadow:0 4px 16px rgba(34,197,94,.35); }
.stat-icon.amber  { background: linear-gradient(135deg, #f59e0b, #d97706); color:#fff; --stat-color:linear-gradient(90deg,#f59e0b,#d97706); box-shadow:0 4px 16px rgba(245,158,11,.35); }
.stat-icon.red    { background: linear-gradient(135deg, #f87171, #dc2626); color:#fff; --stat-color:linear-gradient(90deg,#f87171,#dc2626); box-shadow:0 4px 16px rgba(220,38,38,.35); }
.stat-icon.purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); color:#fff; --stat-color:linear-gradient(90deg,#a78bfa,#7c3aed); box-shadow:0 4px 16px rgba(124,58,237,.35); }
.stat-icon.teal   { background: linear-gradient(135deg, #2dd4bf, #0d9488); color:#fff; --stat-color:linear-gradient(90deg,#2dd4bf,#0d9488); box-shadow:0 4px 16px rgba(45,212,191,.35); }
.stat-icon.indigo { background: linear-gradient(135deg, #818cf8, #4338ca); color:#fff; --stat-color:linear-gradient(90deg,#818cf8,#4338ca); box-shadow:0 4px 16px rgba(99,102,241,.35); }
.stat-icon.pink   { background: linear-gradient(135deg, #f472b6, #be185d); color:#fff; --stat-color:linear-gradient(90deg,#f472b6,#be185d); box-shadow:0 4px 16px rgba(244,114,182,.35); }
.stat-icon.cyan   { background: linear-gradient(135deg, #06b6d4, #0284c7); color:#fff; --stat-color:linear-gradient(90deg,#06b6d4,#0284c7); box-shadow:0 4px 16px rgba(6,182,212,.35); }
.stat-icon.violet { background: linear-gradient(135deg, #7c3aed, #5b21b6); color:#fff; --stat-color:linear-gradient(90deg,#7c3aed,#5b21b6); box-shadow:0 4px 16px rgba(124,58,237,.35); }
.stat-icon.rose   { background: linear-gradient(135deg, #f43f5e, #e11d48); color:#fff; --stat-color:linear-gradient(90deg,#f43f5e,#e11d48); box-shadow:0 4px 16px rgba(244,63,94,.35); }

.stat-info .stat-label { font-size: 11px; color: var(--wp-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .7px; margin-bottom: 3px; }
.stat-info .stat-value { font-size: 28px; font-weight: 800; color: var(--wp-text-primary); letter-spacing: -.6px; line-height: 1; animation: count-up .5s ease both; }
.stat-info .stat-meta  { font-size: 12px; color: var(--wp-text-muted); margin-top: 4px; }
.stat-info .stat-up   { color: #16a34a; font-weight: 600; }
.stat-info .stat-down { color: #dc2626; font-weight: 600; }

/* ============================================================
   CARDS — Glass morphism
   ============================================================ */
.wp-card {
  background: var(--wp-glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: var(--r-lg);
  border: 1px solid var(--wp-glass-border);
  box-shadow: var(--s-sm);
  overflow: hidden;
  position: relative;
  transition: var(--t);
  animation: scaleIn .35s ease both;
}

/* Glossy top strip */
.wp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  pointer-events: none;
}

.wp-card:hover { box-shadow: var(--s-md); animation: card-glow 2s ease-in-out infinite; }

.wp-card .card-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(99,117,178,.1);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.3));
}

.wp-card .card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--wp-text-primary);
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wp-card .card-title i { color: var(--wp-blue); }
.wp-card .card-body   { padding: 20px; }

.wp-card .card-footer {
  padding: 12px 20px;
  background: rgba(255,255,255,.4);
  border-top: 1px solid rgba(99,117,178,.08);
}

/* ============================================================
   TABLES
   ============================================================ */
.wp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.wp-table thead th {
  padding: 11px 16px;
  background: linear-gradient(180deg, rgba(248,250,255,.9), rgba(240,245,255,.7));
  color: var(--wp-text-muted);
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .8px;
  border-bottom: 1px solid rgba(99,117,178,.12);
  white-space: nowrap;
  user-select: none;
}

.wp-table thead th:hover { color: var(--wp-blue); cursor: pointer; }

.wp-table tbody tr { transition: var(--t-fast); }

.wp-table tbody tr:hover { background: rgba(0,48,135,.03); }

.wp-table tbody td {
  padding: 13px 16px;
  vertical-align: middle;
  color: var(--wp-text-primary);
  border-bottom: 1px solid rgba(99,117,178,.07);
}

.wp-table tbody tr:last-child td { border-bottom: none; }

/* Row click ripple */
.wp-table tbody tr:active { background: rgba(0,48,135,.06); }

/* ============================================================
   BADGES — Glossy pills + VIBRANT
   ============================================================ */
.wp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.wp-badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: rgba(255,255,255,.3);
  border-radius: 20px 20px 0 0;
}

.wp-badge i { font-size: 7px; }

.wp-badge.pending    { background: linear-gradient(135deg,#fef3c7,#fde68a); color:#854d0e; border:1px solid rgba(251,191,36,.3); }
.wp-badge.approved   { background: linear-gradient(135deg,#d1fae5,#a7f3d0); color:#065f46; border:1px solid rgba(16,185,129,.25); box-shadow: 0 2px 8px rgba(16,185,129,.2); }
.wp-badge.rejected   { background: linear-gradient(135deg,#fee2e2,#fecaca); color:#7f1d1d; border:1px solid rgba(248,113,113,.25); box-shadow: 0 2px 8px rgba(239,68,68,.2); }
.wp-badge.dispatched { background: linear-gradient(135deg,#dbeafe,#bfdbfe); color:#1e3a5f; border:1px solid rgba(59,130,246,.25); box-shadow: 0 2px 8px rgba(59,130,246,.2); }
.wp-badge.delivered  { background: linear-gradient(135deg,#d1fae5,#a7f3d0); color:#065f46; border:1px solid rgba(16,185,129,.25); box-shadow: 0 2px 8px rgba(16,185,129,.2); }
.wp-badge.in-transit { background: linear-gradient(135deg,#ede9fe,#ddd6fe); color:#4c1d95; border:1px solid rgba(139,92,246,.25); box-shadow: 0 2px 8px rgba(139,92,246,.2); }
.wp-badge.in-stock   { background: linear-gradient(135deg,#d1fae5,#a7f3d0); color:#065f46; border:1px solid rgba(16,185,129,.25); box-shadow: 0 2px 8px rgba(16,185,129,.2); }
.wp-badge.low-stock  { background: linear-gradient(135deg,#fef3c7,#fde68a); color:#854d0e; border:1px solid rgba(251,191,36,.3); box-shadow: 0 2px 8px rgba(245,158,11,.2); }
.wp-badge.out-stock  { background: linear-gradient(135deg,#fee2e2,#fecaca); color:#7f1d1d; border:1px solid rgba(248,113,113,.25); box-shadow: 0 2px 8px rgba(239,68,68,.2); }
.wp-badge.info       { background: linear-gradient(135deg,#dbeafe,#bfdbfe); color:#1e3a5f; border:1px solid rgba(59,130,246,.25); box-shadow: 0 2px 8px rgba(59,130,246,.2); }
.wp-badge.draft      { background: linear-gradient(135deg,#f3f4f6,#e5e7eb); color:#374151; border:1px solid rgba(156,163,175,.25); }
.wp-badge.received   { background: linear-gradient(135deg,#d1fae5,#a7f3d0); color:#065f46; border:1px solid rgba(16,185,129,.25); box-shadow: 0 2px 8px rgba(16,185,129,.2); }

/* Animated gradient badges */
.wp-badge.rainbow {
  background: var(--grad-rainbow);
  background-size: 200% auto;
  animation: gradient-text 3s linear infinite;
  color: #fff;
  border: none;
}

.wp-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* ============================================================
   BUTTONS — Glossy with animations + VIBRANT
   ============================================================ */
.btn-wp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

/* Shimmer on hover */
.btn-wp::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .4s;
}

.btn-wp:hover::before { left: 100%; }

.btn-wp:focus-visible { outline: 2px solid var(--wp-blue); outline-offset: 2px; }
.btn-wp:active { transform: scale(.97); }

/* Primary */
.btn-wp-primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0,71,179,.35), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-wp-primary:hover { background: linear-gradient(135deg,#1a4aa8 0%,#0066cc 100%); color:#fff; box-shadow: var(--s-blue); transform: translateY(-2px); animation: btn-glow 1.5s ease-in-out infinite; }

/* Outline */
.btn-wp-outline {
  background: rgba(0,48,135,.04);
  color: var(--wp-blue);
  border: 1.5px solid rgba(0,48,135,.25);
}
.btn-wp-outline:hover { background: var(--wp-blue); color: #fff; border-color: var(--wp-blue); transform: translateY(-1px); }

/* Ghost */
.btn-wp-ghost {
  background: rgba(255,255,255,.7);
  color: var(--wp-text-secondary);
  border: 1px solid var(--wp-border);
  backdrop-filter: blur(8px);
}
.btn-wp-ghost:hover { background: #fff; color: var(--wp-text-primary); border-color: var(--wp-border-hover); box-shadow: var(--s-sm); }

/* Danger */
.btn-wp-danger { background: var(--grad-accent); color: #fff; box-shadow: 0 3px 12px rgba(227,24,55,.35), inset 0 1px 0 rgba(255,255,255,.15); }
.btn-wp-danger:hover { background: linear-gradient(135deg,#c00e2e,#e31837); color:#fff; transform: translateY(-1px); }

/* Success */
.btn-wp-success { background: var(--grad-success); color: #fff; box-shadow: 0 3px 12px rgba(16,185,129,.35), inset 0 1px 0 rgba(255,255,255,.15); }
.btn-wp-success:hover { background: linear-gradient(135deg,#047857,#059669); color:#fff; transform: translateY(-1px); }

/* NEW: Vibrant Color Buttons */
.btn-wp-violet { background: var(--grad-violet); color: #fff; box-shadow: 0 3px 12px rgba(124,58,237,.35); }
.btn-wp-violet:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,58,237,.4); color:#fff; }

.btn-wp-cyan { background: var(--grad-cyan); color: #fff; box-shadow: 0 3px 12px rgba(6,182,212,.35); }
.btn-wp-cyan:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(6,182,212,.4); color:#fff; }

.btn-wp-rose { background: var(--grad-rose); color: #fff; box-shadow: 0 3px 12px rgba(244,63,94,.35); }
.btn-wp-rose:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(244,63,94,.4); color:#fff; }

.btn-wp-pink { background: var(--grad-pink); color: #fff; box-shadow: 0 3px 12px rgba(236,72,153,.35); }
.btn-wp-pink:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(236,72,153,.4); color:#fff; }

.btn-wp-sm  { padding: 6px 13px; font-size: 12px; }
.btn-wp-xs  { padding: 4px 9px;  font-size: 11.5px; }
.btn-wp-lg  { padding: 12px 24px; font-size: 14px; }
.btn-wp-icon { width: 36px; height: 36px; padding: 0; justify-content: center; }

/* ============================================================
   ACTION BUTTONS (table row) — COLORFUL
   ============================================================ */
.action-group { display: flex; align-items: center; gap: 4px; }

.action-btn {
  width: 30px; height: 30px;
  border: none;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: var(--t-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.action-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: rgba(255,255,255,.3);
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

.action-btn.view   { background: linear-gradient(135deg,#818cf8,#6366f1); color:#fff; box-shadow: 0 2px 8px rgba(99,102,241,.3); }
.action-btn.edit   { background: linear-gradient(135deg,#fbbf24,#f59e0b); color:#7c2d12; box-shadow: 0 2px 8px rgba(245,158,11,.3); }
.action-btn.delete { background: linear-gradient(135deg,#f87171,#ef4444); color:#fff; box-shadow: 0 2px 8px rgba(239,68,68,.3); }
.action-btn.approve{ background: linear-gradient(135deg,#34d399,#10b981); color:#fff; box-shadow: 0 2px 8px rgba(16,185,129,.3); }
.action-btn.ship   { background: linear-gradient(135deg,#22d3ee,#06b6d4); color:#fff; box-shadow: 0 2px 8px rgba(6,182,212,.3); }
.action-btn.print  { background: linear-gradient(135deg,#c084fc,#7c3aed); color:#fff; box-shadow: 0 2px 8px rgba(124,58,237,.3); }
.action-btn.download { background: linear-gradient(135deg,#fb923c,#f97316); color:#fff; box-shadow: 0 2px 8px rgba(249,115,22,.3); }

.action-btn:hover { transform: scale(1.15) translateY(-2px); filter: brightness(1.1); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.action-btn:active { transform: scale(.95); }

/* ============================================================
   FORMS — Glassmorphism inputs
   ============================================================ */
.wp-form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wp-text-secondary);
  margin-bottom: 5px;
}

.wp-form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--wp-border);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--wp-text-primary);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  outline: none;
  transition: var(--t-fast);
  font-family: inherit;
  line-height: 1.4;
}

.wp-form-control:hover { border-color: rgba(0,48,135,.2); background: rgba(255,255,255,.9); }

.wp-form-control:focus {
  border-color: var(--wp-blue);
  background: #fff;
  box-shadow: var(--s-glow);
}

.wp-form-control.is-invalid { border-color: #dc2626; }
.wp-form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.wp-form-control::placeholder { color: var(--wp-text-muted); }
select.wp-form-control { cursor: pointer; }
textarea.wp-form-control { resize: vertical; min-height: 80px; }

.wp-input-group { position: relative; }
.wp-input-group .input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--wp-text-muted); font-size: 13px; pointer-events: none; }
.wp-input-group .wp-form-control { padding-left: 35px; }

/* ============================================================
   MODALS — Glass effect
   ============================================================ */
.wp-modal .modal-content {
  border: none;
  border-radius: var(--r-xl);
  box-shadow: var(--s-xl);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--wp-glass-border);
  overflow: hidden;
  animation: scaleIn .25s var(--spring) both;
}

.wp-modal .modal-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(99,117,178,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.4));
}

.wp-modal .modal-title { font-size: 15px; font-weight: 700; color: var(--wp-text-primary); display: flex; align-items: center; gap: 9px; }
.wp-modal .modal-title i { color: var(--wp-blue); }
.wp-modal .modal-body  { padding: 20px 24px; }
.wp-modal .modal-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(99,117,178,.08);
  background: rgba(255,255,255,.4);
}

/* ============================================================
   ALERTS — Glossy
   ============================================================ */
.wp-alert {
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

.wp-alert::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,.6);
}

.wp-alert i { margin-top: 1px; flex-shrink: 0; }

.wp-alert.success { background: linear-gradient(135deg,rgba(220,252,231,.9),rgba(187,247,208,.7)); border-color: rgba(34,197,94,.2); color: #14532d; }
.wp-alert.danger  { background: linear-gradient(135deg,rgba(254,226,226,.9),rgba(254,202,202,.7)); border-color: rgba(248,113,113,.2); color: #7f1d1d; }
.wp-alert.warning { background: linear-gradient(135deg,rgba(254,249,195,.9),rgba(253,230,138,.7)); border-color: rgba(251,191,36,.25); color: #78350f; }
.wp-alert.info    { background: linear-gradient(135deg,rgba(219,234,254,.9),rgba(191,219,254,.7)); border-color: rgba(59,130,246,.2); color: #1e3a5f; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 52px 24px; color: var(--wp-text-muted); }
.empty-state i { font-size: 42px; opacity: .2; display: block; margin-bottom: 14px; animation: float 3s ease-in-out infinite; }
.empty-state p { font-size: 13.5px; }

/* ============================================================
   MODERN GLOSSY ENHANCEMENTS
   ============================================================ */

/* Smooth page transitions */
body { animation: fadeIn .6s ease-out; }

/* Enhanced glassmorphism with more depth */
.wp-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, transparent 50%);
  border-radius: var(--r-lg);
  pointer-events: none;
  z-index: 0;
}

.wp-card > * { position: relative; z-index: 1; }

/* Glossy button shine effect */
.btn-wp::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255,255,255,.12) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
  pointer-events: none;
}

/* Enhanced stat card hover */
.stat-card:hover .stat-icon {
  transform: scale(1.12) rotate(-5deg);
  filter: brightness(1.1);
}

/* Animated table rows */
.wp-table tbody tr {
  animation: slideInRight .3s ease both;
}

.wp-table tbody tr:nth-child(1) { animation-delay: .05s; }
.wp-table tbody tr:nth-child(2) { animation-delay: .1s; }
.wp-table tbody tr:nth-child(3) { animation-delay: .15s; }
.wp-table tbody tr:nth-child(4) { animation-delay: .2s; }
.wp-table tbody tr:nth-child(5) { animation-delay: .25s; }
.wp-table tbody tr:nth-child(6) { animation-delay: .3s; }
.wp-table tbody tr:nth-child(7) { animation-delay: .35s; }
.wp-table tbody tr:nth-child(8) { animation-delay: .4s; }

/* Smooth dropdown animations */
.dropdown-menu {
  transform: translateY(-4px);
  transition: all .2s cubic-bezier(.4,0,.2,1);
}

.dropdown-menu.show {
  transform: translateY(0);
}

/* Glossy badges with pulse */
.wp-badge {
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.wp-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* Enhanced action buttons */
.action-btn {
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.action-btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Focus ring animation */
:focus-visible {
  animation: pulse-ring .6s ease-out;
}

/* Loading state */
.loading {
  position: relative;
  pointer-events: none;
  opacity: .7;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--wp-border);
  border-top-color: var(--wp-blue);
  border-radius: 50%;
  animation: spin-slow .6s linear infinite;
}

/* Scroll-triggered animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   TIMELINE — COLORFUL
   ============================================================ */
.order-timeline { display: flex; align-items: center; }
.tl-step { display: flex; flex-direction: column; align-items: center; flex: 1; }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--wp-border); background: var(--wp-surface); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--wp-text-muted); z-index: 1; transition: var(--t); }
.tl-step.done .tl-dot  { background: var(--grad-success); border-color: #16a34a; color: #fff; box-shadow: 0 0 12px rgba(22,163,74,.4); }
.tl-step.active .tl-dot { background: var(--grad-blue); border-color: var(--wp-blue); color: #fff; box-shadow: 0 0 0 4px rgba(0,48,135,.15), 0 0 12px rgba(0,48,135,.3); }
.tl-label { font-size: 10px; color: var(--wp-text-muted); margin-top: 5px; text-align: center; }
.tl-step.done .tl-label, .tl-step.active .tl-label { color: var(--wp-text-secondary); font-weight: 500; }
.tl-line { flex: 1; height: 3px; background: var(--wp-border); margin-top: -16px; transition: background .4s; border-radius: 2px; }
.tl-line.done { background: var(--grad-success); box-shadow: 0 0 8px rgba(16,185,129,.3); }

/* Colorful timeline variants */
.tl-step.done:nth-child(1) .tl-dot { background: var(--grad-blue); border-color: #3b82f6; box-shadow: 0 0 12px rgba(59,130,246,.4); }
.tl-step.done:nth-child(2) .tl-dot { background: var(--grad-purple); border-color: #8b5cf6; box-shadow: 0 0 12px rgba(139,92,246,.4); }
.tl-step.done:nth-child(3) .tl-dot { background: var(--grad-cyan); border-color: #06b6d4; box-shadow: 0 0 12px rgba(6,182,212,.4); }
.tl-step.done:nth-child(4) .tl-dot { background: var(--grad-emerald); border-color: #10b981; box-shadow: 0 0 12px rgba(16,185,129,.4); }

/* ============================================================
   GLOBAL SEARCH RESULTS
   ============================================================ */
#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--wp-border);
  border-radius: var(--r);
  box-shadow: var(--s-lg);
  overflow: hidden;
  z-index: 1060;
  animation: fadeInDown .2s ease both;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--wp-text-primary);
  transition: var(--t-fast);
  border-bottom: 1px solid rgba(99,117,178,.06);
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover {
  background: rgba(0,48,135,.04);
  color: var(--wp-blue);
}

.search-result-item .ms-auto { transition: var(--t-fast); }
.search-result-item:hover .ms-auto { transform: translateX(3px); color: var(--wp-blue); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .topnav-scroll { padding: 0 12px; }
  .content-body { padding: 18px 16px 40px; }
}

@media (max-width: 576px) {
  .page-header { flex-direction: column; align-items: stretch; }
  .topbar-search { display: none; }
}

/* ============================================================
   LOGIN PAGE — Premium glass design + COLORFUL
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(145deg, #001040 0%, #002280 50%, #003087 100%);
  position: relative;
  overflow: hidden;
}

/* Animated colorful background blobs */
.login-page::before {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,.3) 0%, transparent 65%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(236,72,153,.25) 0%, transparent 65%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

/* Rainbow animated border on login-right */
.login-right {
  width: 460px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 56px;
  position: relative;
  z-index: 1;
  box-shadow: -20px 0 60px rgba(0,0,0,.15);
}

/* Animated rainbow border */
.login-right::before {
  content: '';
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 3px;
  background: var(--grad-rainbow);
  background-size: 200% 200%;
  animation: gradient-text 3s linear infinite;
  border-radius: 3px;
}

/* Colorful feature icons */
.login-feat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
  transition: var(--t);
}

.login-feat:nth-child(1) .login-feat-icon { background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(99,102,241,.1)); color: #818cf8; }
.login-feat:nth-child(2) .login-feat-icon { background: linear-gradient(135deg, rgba(16,185,129,.2), rgba(16,185,129,.1)); color: #10b981; }
.login-feat:nth-child(3) .login-feat-icon { background: linear-gradient(135deg, rgba(6,182,212,.2), rgba(6,182,212,.1)); color: #06b6d4; }

.login-feat:hover .login-feat-icon { transform: scale(1.08) rotate(-5deg); }

.login-feat-title { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.login-feat-desc  { font-size: 12px; opacity: .58; line-height: 1.45; }

.pass-toggle {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--wp-text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
  transition: var(--t-fast);
}

.pass-toggle:hover { color: var(--wp-blue); transform: translateY(-50%) scale(1.1); }

@media (max-width: 768px) {
  .login-left  { display: none; }
  .login-right { width: 100%; padding: 40px 24px; }
}

/* ============================================================
   DROPDOWN polish + COLORFUL
   ============================================================ */
.dropdown-menu {
  border: 1px solid var(--wp-border);
  border-radius: var(--r-lg);
  box-shadow: var(--s-lg);
  padding: 6px;
  font-size: 13px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  animation: fadeInDown .2s ease both;
}

.dropdown-item {
  border-radius: var(--r-sm);
  padding: 8px 12px;
  color: var(--wp-text-primary);
  transition: var(--t-fast);
  font-weight: 500;
}

.dropdown-item:hover { background: rgba(99,102,241,.08); color: #6366f1; }
.dropdown-divider { border-color: rgba(99,117,178,.12); margin: 4px 0; }

/* Colorful dropdown items with icons */
.dropdown-item i { transition: var(--t-fast); }
.dropdown-item:hover i { transform: scale(1.2); }

/* ============================================================
   DATATABLES polish + COLORFUL
   ============================================================ */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border: 1.5px solid var(--wp-border);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--wp-text-primary);
  background: rgba(255,255,255,.8);
  outline: none;
  transition: var(--t-fast);
  backdrop-filter: blur(8px);
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.dataTables_wrapper .dataTables_info { font-size: 12px; color: var(--wp-text-muted); }

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--r-sm) !important;
  border: none !important;
  padding: 5px 11px !important;
  font-size: 12.5px !important;
  color: var(--wp-text-secondary) !important;
  transition: var(--t-fast) !important;
  font-weight: 500 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(99,102,241,.1) !important;
  color: #6366f1 !important;
  box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #6366f1, #7c3aed) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(99,102,241,.3) !important;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-primary-wp   { color: var(--wp-blue) !important; }
.text-muted-wp     { color: var(--wp-text-muted) !important; }
.text-secondary-wp { color: var(--wp-text-secondary) !important; }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-16 { font-size: 16px; }

.cursor-pointer { cursor: pointer; }

.glass-card {
  background: var(--wp-glass);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--wp-glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--s-sm);
}

/* ============================================================
   PRODUCT THUMBNAIL — COLORFUL
   ============================================================ */
.product-thumb {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: linear-gradient(135deg,#e0e7ff,#c7d2fe);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--wp-border);
  box-shadow: var(--s-xs);
  transition: var(--t-fast);
}

.product-thumb:hover {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 4px 12px rgba(99,102,241,.3);
}

/* Toast container */
#toast-container {
  position: fixed;
  top: 72px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 300px;
  max-width: 380px;
}

.toast-item {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--s-lg);
  border: 1px solid var(--wp-glass-border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  animation: toast-slide .3s var(--spring) both;
}

.toast-item.success { border-left: 4px solid #22c55e; background: linear-gradient(90deg, rgba(34,197,94,.08), rgba(255,255,255,.92)); }
.toast-item.danger  { border-left: 4px solid #ef4444; background: linear-gradient(90deg, rgba(239,68,68,.08), rgba(255,255,255,.92)); }
.toast-item.warning { border-left: 4px solid #f59e0b; background: linear-gradient(90deg, rgba(245,158,11,.08), rgba(255,255,255,.92)); }
.toast-item.info    { border-left: 4px solid #3b82f6; background: linear-gradient(90deg, rgba(59,130,246,.08), rgba(255,255,255,.92)); }

/* Loading shimmer */
.shimmer {
  background: linear-gradient(90deg, #f0f4ff 0%, #e0e8ff 50%, #f0f4ff 100%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
}

/* Stagger animation delays for rows */
.wp-table tbody tr:nth-child(1) { animation-delay: .05s; }
.wp-table tbody tr:nth-child(2) { animation-delay: .10s; }
.wp-table tbody tr:nth-child(3) { animation-delay: .15s; }
.wp-table tbody tr:nth-child(4) { animation-delay: .20s; }
.wp-table tbody tr:nth-child(5) { animation-delay: .25s; }

/* Focus visible ring */
:focus-visible {
  outline: 2px solid rgba(0,78,210,.5);
  outline-offset: 2px;
  border-radius: 4px;
}
