/* ==========================================================================
   PROBID & ARTVAULT DESIGN SYSTEM FOR MINITMA INDUSTRIAL AUCTIONS
   Refined, Compact, Professional B2B E-Auction Typography & UI Elements
   ========================================================================== */

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

:root {
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Probid / ArtVault Signature Palette */
  --primary-blue: #1a6ef5;
  --primary-dark: #0f172a;
  --primary-navy: #0b132b;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --bg-soft: #f8fafc;
  --border-subtle: #e2e8f0;
}

html {
  font-size: 14px; /* Reduced from default 16px to give a crisp, proportional SaaS balance */
}

body {
  font-family: var(--font-body);
  color: #1e293b;
  background-color: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-size: 13px;
  line-height: 1.5;
}

/* Headings: Proportional, Compact & Sharp */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.text-white {
  color: #ffffff !important;
}

.text-slate-900 {
  color: #0f172a !important;
}

.font-mono-numbers {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}

/* Official Minitma Logo Styling (Compact & Balanced) */
.minitma-logo-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2b7fff 0%, #0066ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 3px 10px rgba(0, 102, 255, 0.25);
  flex-shrink: 0;
  user-select: none;
}

.minitma-brand-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.04em;
  color: #0b132b;
  line-height: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Sticky Catalog Filter Sidebar: Stays fixed while right products column scrolls */
@media (min-width: 1024px) {
  .sidebar-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 5rem !important; /* 80px: 64px navbar + 16px breathing gap */
    max-height: calc(100vh - 6rem) !important;
    overflow-y: auto !important;
    align-self: start !important;
    overscroll-behavior: contain;
  }
}

/* Probid-style Compact Auction Card */
.probid-auction-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.probid-auction-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
}

.probid-auction-card .card-thumb-wrap {
  position: relative;
  height: 190px;
  background: #0f172a;
  overflow: hidden;
}

.probid-auction-card .card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.probid-auction-card:hover .card-thumb-img {
  transform: scale(1.04);
}

/* Floating Countdown Timer Overlay (Compact & Crisp) */
.probid-countdown-pill {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 10px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.probid-countdown-pill.urgent {
  background: rgba(220, 38, 38, 0.92);
  border-color: rgba(254, 202, 202, 0.35);
  animation: urgent-pulse 1.8s infinite;
}

@keyframes urgent-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
}

/* Badge styles */
.badge-category-chip {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-live-pulse {
  background: #dc2626;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-live-pulse::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #ffffff;
  animation: live-ping 1.5s infinite;
}

@keyframes live-ping {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

/* Glassmorphism Panel */
.glass-surface {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-dark-surface {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero background glow */
.hero-gradient-mesh {
  background-color: #0b132b;
  background-image: 
    radial-gradient(at 15% 20%, rgba(26, 110, 245, 0.22) 0px, transparent 50%),
    radial-gradient(at 85% 25%, rgba(6, 182, 212, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(99, 102, 241, 0.12) 0px, transparent 50%);
}

/* Print Invoice & Gate Pass */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-area, #printable-area * {
    visibility: visible;
  }
  #printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 24px;
    background: white;
    box-shadow: none !important;
  }
  .no-print {
    display: none !important;
  }
}

/* ==========================================================================
   ARTVAULT COLLAPSIBLE DASHBOARD SIDEBAR & DOCK LAYOUT SYSTEM
   ========================================================================== */
.dashboard-layout-container {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
}

.dashboard-sidebar {
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}

.dashboard-sidebar.expanded {
  width: 260px;
  min-width: 260px;
}

.dashboard-sidebar.collapsed {
  width: 76px;
  min-width: 76px;
}

.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  transition: all 0.18s ease;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}

.dashboard-nav-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.dashboard-nav-item.active {
  background-color: #eff6ff;
  color: #1a6ef5;
  font-weight: 700;
}

.dashboard-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background-color: #1a6ef5;
}

.dashboard-sidebar.collapsed .nav-text,
.dashboard-sidebar.collapsed .nav-badge,
.dashboard-sidebar.collapsed .sidebar-user-details,
.dashboard-sidebar.collapsed .sidebar-brand-name {
  display: none !important;
}

.dashboard-sidebar.collapsed .dashboard-nav-item {
  justify-content: center;
  padding: 10px 0;
}

.dashboard-main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
}

.dashboard-topbar {
  height: 60px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 30;
}

/* Tooltip on collapsed item hover */
.dashboard-sidebar.collapsed .has-tooltip {
  position: relative;
}

.dashboard-sidebar.collapsed .has-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
