/* Custom Styling for Component Availability Management System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --neutral: #64748b;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Monospace font for IDs and Quantities */
.font-mono-code {
  font-family: var(--font-mono);
}

/* Status Badges */
.badge-available {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.badge-partially {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.badge-unavailable {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.badge-pending {
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Glassmorphism accents */
.glass-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Mobile Touch-friendly Stepper */
.stepper-btn {
  user-select: none;
  touch-action: manipulation;
  transition: all 0.15s ease;
}
.stepper-btn:active {
  transform: scale(0.92);
}

/* Floating Persona Switcher */
.persona-switcher {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Status Radio Tile Active States */
.status-tile {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.status-tile.active-available {
  background-color: #ecfdf5;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}
.status-tile.active-partially {
  background-color: #fffbeb;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}
.status-tile.active-unavailable {
  background-color: #fef2f2;
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

/* Pulse animation for pending alerts */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.animate-pulse-subtle {
  animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Print Optimization for Reports */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .no-print,
  #admin-sidebar,
  #top-header,
  .persona-switcher,
  #toast-container,
  button:not(.print-keep) {
    display: none !important;
  }
  .print-full {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  table {
    border-collapse: collapse !important;
    width: 100% !important;
  }
  th, td {
    border: 1px solid #cbd5e1 !important;
    padding: 6px 10px !important;
  }
}
