/* =====================================================================
   ADAMAJA ENTERPRISE OPERATING SYSTEM (EOS) — CSS: APP.CSS
   Deep Obsidian Navy Glass Aesthetic & Physical Micro-Interactions
   100% Visual Parity to todo-adamaja-store & DESIGN.md Master Spec
   ===================================================================== */

:root {
  /* Canvas & Obsidian Surfaces */
  --bg-deep: #050811;              /* Deepest Navy Obsidian */
  --bg-base: #090e1c;              /* Rich Navy Base */
  --bg-surface-1: #0e1628;         /* Navy Slate Surface 1 (Cards, Modules) */
  --bg-surface-2: #141f36;         /* Elevated Surface 2 (Hover, Modals, Dropdowns) */
  --bg-surface-3: #1a2845;         /* Active / Focus Surface 3 (Selection, Active Tabs) */

  /* Glassmorphism Tokens */
  --glass-bg: rgba(14, 22, 40, 0.68);
  --glass-bg-hover: rgba(20, 31, 54, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(59, 130, 246, 0.35);
  --glass-highlight: rgba(255, 255, 255, 0.16); /* 1px Top specular shine */

  /* Typography Colors */
  --text-primary: #f8fafc;         /* Slate 50: High-contrast headings, currency, data */
  --text-secondary: #94a3b8;       /* Slate 400: Input labels, table headers, metadata */
  --text-muted: #64748b;           /* Slate 500: Placeholders, secondary icons */

  /* Semantic Accent Tokens */
  --accent-blue: #3b82f6;          /* Primary CTA, Focus Ring, Aktif */
  --accent-blue-hover: #60a5fa;
  --accent-cyan: #06b6d4;          /* Filter aktif, info telemetri */
  --accent-emerald: #10b981;       /* Net Profit, QC Verified, Status Fresh */
  --accent-amber: #f59e0b;         /* Warning, Aging Stock 4-6 Hari */
  --accent-rose: #f43f5e;          /* Critical, Aging Stock >=7 Hari, Sold */
  --accent-purple: #a855f7;        /* Tag konten khusus, milestone */

  /* Status / Priority Badges */
  --priority-urgent-bg: rgba(244, 63, 94, 0.12);
  --priority-urgent-border: rgba(244, 63, 94, 0.35);
  --priority-urgent-text: #fb7185;

  --priority-high-bg: rgba(245, 158, 11, 0.14);
  --priority-high-border: rgba(245, 158, 11, 0.40);
  --priority-high-text: #fbbf24;

  --priority-medium-bg: rgba(6, 182, 212, 0.12);
  --priority-medium-border: rgba(6, 182, 212, 0.35);
  --priority-medium-text: #22d3ee;

  --priority-low-bg: rgba(16, 185, 129, 0.12);
  --priority-low-border: rgba(16, 185, 129, 0.35);
  --priority-low-text: #34d399;

  /* Stock Aging Badges (PRD & DESIGN.md) */
  --status-fresh-bg: rgba(16, 185, 129, 0.12);
  --status-fresh-border: rgba(16, 185, 129, 0.35);
  --status-fresh-text: #34d399;

  --status-warning-bg: rgba(245, 158, 11, 0.14);
  --status-warning-border: rgba(245, 158, 11, 0.40);
  --status-warning-text: #fbbf24;

  --status-critical-bg: rgba(244, 63, 94, 0.12);
  --status-critical-border: rgba(244, 63, 94, 0.35);
  --status-critical-text: #fb7185;
}

/* =====================================================================
   BASE BODY & AMBIENT RADIAL GLOW MESH
   ===================================================================== */
body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(at 15% 15%, rgba(37, 99, 235, 0.12) 0px, transparent 50%),
    radial-gradient(at 85% 25%, rgba(6, 182, 212, 0.08) 0px, transparent 45%),
    radial-gradient(at 50% 85%, rgba(139, 92, 246, 0.07) 0px, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* =====================================================================
   5PX ULTRA-SLIM CUSTOM SCROLLBARS
   ===================================================================== */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

/* =====================================================================
   MONOSPACE & TABULAR NUMERICS (STRICT ZERO-DRIFT STANDARD)
   ===================================================================== */
.font-mono-tabular,
.tabular-nums {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* =====================================================================
   GLASS PANELS & TOP SPECULAR SHINE HIGHLIGHT
   ===================================================================== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

/* 1px Top Specular Line Highlight */
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Interactive Glass Card */
.glass-card {
  background: rgba(14, 22, 40, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45), 0 0 16px -2px rgba(59, 130, 246, 0.22);
}

/* Grid & Table Row Items */
.data-row {
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.data-row:hover {
  background: var(--glass-bg-hover) !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* =====================================================================
   BOUNCY SPRING CHECKBOX (cubic-bezier(0.34, 1.56, 0.64, 1))
   ===================================================================== */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  background: rgba(14, 22, 40, 0.7);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
}

.custom-checkbox:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.06);
}

.custom-checkbox:checked {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
}

.custom-checkbox:checked::after {
  content: '';
  width: 4.5px;
  height: 8.5px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
  display: block;
}

/* =====================================================================
   32X32PX GLASS PILL ICON BUTTONS (.btn-icon)
   ===================================================================== */
.btn-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.18s ease;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-icon-edit:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.btn-icon-duplicate:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.25);
}

.btn-icon-delete:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fb7185;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

.btn-icon-view:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.btn-icon:active {
  transform: scale(0.95);
}

/* =====================================================================
   BUTTONS: PRIMARY, GLASS & DESTRUCTIVE
   ===================================================================== */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 16px;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
  transition: all 0.18s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 8px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.18s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-glass:active {
  transform: translateY(0);
}

.btn-danger {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 16px;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
  transition: all 0.18s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
  transform: translateY(-1px);
}

/* =====================================================================
   FORM INPUTS & SELECTS
   ===================================================================== */
.input-glass {
  background: rgba(10, 15, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 8px 12px;
  outline: none;
  font-size: 13.5px;
  transition: all 0.18s ease;
  width: 100%;
  box-sizing: border-box;
}
.input-glass:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: rgba(10, 15, 29, 0.95);
}
.input-glass::placeholder {
  color: var(--text-muted);
}

/* Custom Select Dropdown with SVG Chevron */
select.input-glass,
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem 1rem;
  padding-right: 2.25rem !important;
  cursor: pointer;
}
select.input-glass option,
.custom-select option {
  background: #0f172a;
  color: #f8fafc;
  padding: 8px 12px;
}

/* Dedicated Pipeline Status Select (Obsidian Glass Theme) */
.select-pipeline-status {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: rgba(11, 18, 33, 0.92) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 9l4-4 4 4m0 6l-4 4-4-4'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.5rem center !important;
  background-size: 0.85rem 0.85rem !important;
  padding-right: 1.8rem !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.select-pipeline-status:hover {
  filter: brightness(1.15);
}
.select-pipeline-status:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
.select-pipeline-status option {
  background-color: #0b1221 !important;
  color: #f1f5f9 !important;
  padding: 8px 12px !important;
}

/* =====================================================================
   MODAL SPRING SCALE TRANSITION & BACKDROP
   ===================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 1rem;
  box-sizing: border-box;
}

.modal-backdrop.open {
  opacity: 1 !important;
  visibility: visible !important;
}

.modal-content {
  background: #0f172a;
  background-image: linear-gradient(180deg, #131d33 0%, #0d1527 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 35px rgba(59, 130, 246, 0.15);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  max-width: 95vw;
  transform: scale(0.97);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.modal-backdrop.open .modal-content {
  transform: scale(1);
}

/* =====================================================================
   SLIDING NAVIGATION DRAWER (LEFT SIDEBAR & SLIDE-OVERS)
   ===================================================================== */
.sidebar-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.sidebar-backdrop.open,
.drawer-backdrop.open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Left Sliding Drawer (Navigation Sidebar) */
.sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  z-index: 8500;
  background: rgba(10, 15, 29, 0.94);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 60%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.1) 0px, transparent 50%),
    linear-gradient(180deg, #0e1628 0%, #080d1a 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.34, 1.25, 0.64, 1), box-shadow 0.28s ease;
  will-change: transform;
  display: flex;
  flex-direction: column;
}

.sidebar-drawer.open {
  transform: translateX(0) !important;
  box-shadow: 10px 0 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.15);
}

/* Right Slide-Over Drawer (Scripting Drawer, Account Detail, etc.) */
.drawer-slide-right {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 460px;
  max-width: 90vw;
  z-index: 8600;
  background: #0d1527;
  background-image: linear-gradient(180deg, #111b30 0%, #090e1c 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(59, 130, 246, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.34, 1.25, 0.64, 1), box-shadow 0.28s ease;
  will-change: transform;
  display: flex;
  flex-direction: column;
}

.drawer-slide-right.open {
  transform: translateX(0) !important;
}

/* Navigation Drawer Items */
.nav-drawer-item {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  color: var(--text-secondary);
}

.nav-drawer-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transform: translateX(3px);
}

.nav-drawer-item.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0.04) 100%);
  border-color: rgba(59, 130, 246, 0.45);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 20px -2px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-drawer-item.active .nav-item-icon {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  color: #60a5fa;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

/* Tab Pane Transition Animation */
.tab-pane {
  animation: fade-in-up 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================================
   FLOATING TOAST NOTIFICATION SYSTEM
   ===================================================================== */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(14, 22, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55), 0 0 16px rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slide-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all 0.25s ease;
}

@keyframes slide-in {
  from {
    transform: translateX(100%) scale(0.92);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

.toast.toast-success {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55), 0 0 16px rgba(16, 185, 129, 0.2);
}
.toast.toast-error {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55), 0 0 16px rgba(244, 63, 94, 0.2);
}
.toast.toast-warning {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55), 0 0 16px rgba(245, 158, 11, 0.2);
}
.toast.toast-info {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55), 0 0 16px rgba(59, 130, 246, 0.2);
}

/* =====================================================================
   SKELETON SHIMMER LOADING STATES (2.2s Infinite Gradient Pulse)
   ===================================================================== */
@keyframes shimmer-pulse {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.07) 25%,
    rgba(56, 189, 248, 0.09) 50%,
    rgba(255, 255, 255, 0.07) 75%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 250% 100%;
  animation: shimmer-pulse 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  display: inline-block;
}

.skeleton-card {
  background: rgba(14, 22, 40, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.25);
}

.skeleton-pill {
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-line {
  border-radius: 0.375rem;
}

/* =====================================================================
   STATUS, AGING, PRIORITY & MONOSPACE BADGES
   ===================================================================== */
.badge-urgent {
  background: var(--priority-urgent-bg);
  border: 1px solid var(--priority-urgent-border);
  color: var(--priority-urgent-text);
}

.badge-high {
  background: var(--priority-high-bg);
  border: 1px solid var(--priority-high-border);
  color: var(--priority-high-text);
}

.badge-medium {
  background: var(--priority-medium-bg);
  border: 1px solid var(--priority-medium-border);
  color: var(--priority-medium-text);
}

.badge-low {
  background: var(--priority-low-bg);
  border: 1px solid var(--priority-low-border);
  color: var(--priority-low-text);
}

/* Stock Aging Badges (Fresh, Normal, Critical) */
.badge-aging-fresh {
  background: var(--status-fresh-bg);
  border: 1px solid var(--status-fresh-border);
  color: var(--status-fresh-text);
}

.badge-aging-warning {
  background: var(--status-warning-bg);
  border: 1px solid var(--status-warning-border);
  color: var(--status-warning-text);
}

.badge-aging-critical {
  background: var(--status-critical-bg);
  border: 1px solid var(--status-critical-border);
  color: var(--status-critical-text);
}

/* Monospace SKU Code Badge */
.badge-sku {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
}

/* Currency Value Badge */
.badge-currency {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Keyboard Shortcut Chip */
kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-width: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Progress Track & Fill */
.progress-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  height: 6px;
}
.progress-track-sm {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  height: 4px;
  width: 48px;
  display: inline-block;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
  border-radius: 9999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Canvas Confetti Fixed Container */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

/* =====================================================================
   KANBAN BOARD STYLES
   ===================================================================== */
.kanban-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  min-height: 520px;
}

.kanban-col {
  flex: 0 0 280px;
  width: 280px;
  background: rgba(14, 22, 40, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kanban-col-header {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-col-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  gap: 0.75rem;
  display: flex;
  flex-direction: column;
}

/* =====================================================================
   MOBILE RESPONSIVE MEDIA QUERIES (<640px Stacked Cards)
   ===================================================================== */
@media (max-width: 640px) {
  /* Layout Padding Adjustments */
  .p-6, .p-8 {
    padding: 1rem !important;
  }
  
  .glass-panel {
    border-radius: 12px;
  }

  /* Full Width Modal on Small Screens */
  .modal-backdrop {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .modal-content {
    max-width: 100vw;
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 90vh;
  }

  /* Stack Tables to Cards on Mobile */
  .responsive-table thead {
    display: none;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .responsive-table tr {
    margin-bottom: 0.75rem;
    background: rgba(14, 22, 40, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 0.75rem;
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: right;
  }

  .responsive-table td:last-child {
    border-bottom: none;
    padding-top: 0.6rem;
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-align: left;
    margin-right: 0.5rem;
  }

  /* Kanban Stack on Small Viewport */
  .kanban-board {
    flex-direction: column;
    overflow-x: visible;
  }

  .kanban-col {
    flex: 1 1 auto;
    width: 100%;
  }

  /* Drawer Full Width on Mobile */
  .drawer-slide-right {
    width: 100vw;
    max-width: 100vw;
  }

  /* Floating Toast Full-Width on Mobile */
  #toast-container {
    top: auto;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }
  .toast {
    min-width: auto;
    max-width: 100%;
  }
}
