/* Food Forest Project Portal - Custom Stylesheet */
@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 {
  --primary-forest: #1b4332;
  --primary-forest-dark: #081c15;
  --forest-emerald: #2d6a4f;
  --forest-leaf: #40916c;
  --forest-light: #74c69d;
  --forest-mint: #b7e4c7;
  --forest-pale: #d8f3dc;
  --accent-amber: #d97706;
  --accent-amber-light: #fef3c7;
  --accent-soil: #78350f;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

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

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

.glass-nav {
  background: rgba(27, 67, 50, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Gantt Chart Styles */
.gantt-container {
  overflow-x: auto;
  position: relative;
  border-radius: 0.75rem;
  background: #ffffff;
}

.gantt-grid-header {
  display: flex;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.gantt-day-col {
  min-width: 48px;
  max-width: 48px;
  text-align: center;
  border-right: 1px solid #f1f5f9;
  font-size: 0.75rem;
}

.gantt-day-col.today {
  background-color: rgba(45, 106, 79, 0.08);
  font-weight: 700;
  color: #2d6a4f;
}

.gantt-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  min-height: 44px;
  position: relative;
  transition: background-color 0.15s ease;
}

.gantt-row:hover {
  background-color: #f8fafc;
}

.gantt-task-info {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  position: sticky;
  left: 0;
  background: #ffffff;
  z-index: 10;
  border-right: 2px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
}

.gantt-timeline-area {
  position: relative;
  flex: 1;
  min-height: 44px;
}

.gantt-bar {
  position: absolute;
  height: 24px;
  top: 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: white;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gantt-bar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  z-index: 15;
}

.gantt-bar-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 6px 0 0 6px;
  pointer-events: none;
}

.gantt-milestone-marker {
  position: absolute;
  top: 13px;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  background: #d97706;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 12;
}

.gantt-milestone-marker:hover {
  transform: rotate(45deg) scale(1.2);
}

.gantt-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #ef4444;
  z-index: 18;
  pointer-events: none;
}

.gantt-today-badge {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  background: #ef4444;
  color: white;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 9999px;
  font-weight: 700;
  z-index: 19;
}

/* Dependency SVG overlay */
.gantt-dependency-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
}

/* Mobile Simulator Shell */
.mobile-device-shell {
  width: 390px;
  height: 780px;
  background: #0f172a;
  border-radius: 46px;
  padding: 14px;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.4), 0 0 0 2px #334155;
  position: relative;
  display: flex;
  flex-direction: column;
}

.mobile-notch {
  width: 140px;
  height: 24px;
  background: #0f172a;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-camera-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid #475569;
}

.mobile-screen {
  background: #f8fafc;
  flex: 1;
  border-radius: 34px;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Animations */
@keyframes pulseSubtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-pulse-subtle {
  animation: pulseSubtle 2.5s infinite ease-in-out;
}

/* Badges and Chips */
.badge-aunkur {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-pushpa {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-field {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-consultant {
  background-color: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

/* Print optimizations for reporting */
@media print {
  header, nav, .no-print, #personaSwitcher, #mobileSimulatorToggle {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .glass-panel, .gantt-container {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }
}

/* Kanban Drag & Drop Styles */
.kanban-col.drag-over {
  border: 2px dashed #166534 !important;
  background-color: rgba(240, 253, 244, 0.85) !important;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.15) !important;
}

.kanban-card[draggable="true"] {
  cursor: grab;
}

.kanban-card[draggable="true"]:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.45;
  transform: scale(0.98);
}
