/* assets/css/app.css */
/* Precision in Motion - High Performance Light Theme Design 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&display=swap');

:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-focus: #6366f1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-primary: #6366f1;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-rose: #e11d48;
  --accent-amber: #d97706;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* 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;
}

/* Card & Surface utility */
.glass-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
}

.glass-panel-hover {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-panel-hover:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* Priority Badges - Clean High Contrast Light Palette */
.glow-badge-urgent {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  font-weight: 700;
}

.glow-badge-high {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
  font-weight: 700;
}

.glow-badge-medium {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
  font-weight: 700;
}

.glow-badge-low {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-weight: 700;
}

/* Kanban Drag & Drop Styles */
.kanban-column {
  min-height: calc(100vh - 280px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.kanban-column.drag-over {
  background-color: #eef2ff !important;
  border-color: #818cf8 !important;
}

.kanban-card {
  cursor: grab;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, opacity 0.2s ease;
}
.kanban-card:active {
  cursor: grabbing;
}
.kanban-card.dragging {
  opacity: 0.45;
  transform: scale(0.98);
}

/* Pulse animation for review requested */
@keyframes review-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(217, 119, 6, 0);
  }
}
.pulse-review {
  animation: review-pulse 2s infinite;
}

/* Drawer transitions */
.drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-panel {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -10px 0 35px -5px rgba(15, 23, 42, 0.12);
}
.drawer-panel.open {
  transform: translateX(0);
}

/* Calendar grid */
.calendar-day-cell {
  min-height: 110px;
  background-color: #ffffff;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.calendar-day-cell:hover {
  background-color: #f8fafc;
}
.calendar-day-cell.today {
  border-top: 3px solid #6366f1;
  background-color: #f5f3ff;
}

/* Form controls focus helper */
input:focus, select:focus, textarea:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* Print styling for PDF Reports */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print, header, aside, .drawer-panel, .drawer-backdrop, #toast-container {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .glass-panel {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
}
