/* ImmoPromoteur Pro Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.4);
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.8);
}

/* Glassmorphism & Cards */
.glass-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Smooth transitions */
.transition-all-ease {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulse indicator animation */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

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

/* Creatable Combobox dropdown styles */
.creatable-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Custom input focus glow */
.input-glow:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Drag and drop reordering feedback */
.dragging {
  opacity: 0.4;
  transform: scale(0.98);
}

.drag-over {
  border-top: 2px solid #3b82f6 !important;
}

/* Print / PDF generation styles */
@media print {
  body {
    background-color: white !important;
    color: black !important;
  }

  aside, 
  nav, 
  .no-print,
  #toast-container,
  .pwa-install-banner,
  button:not(.print-include) {
    display: none !important;
  }

  main {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  .print-page-break {
    page-break-after: always;
  }

  .shadow-sm, .shadow, .shadow-md, .shadow-lg, .shadow-xl {
    box-shadow: none !important;
  }

  .border {
    border-color: #cbd5e1 !important;
  }
}

/* Badges for Macro Categories */
.badge-foncier {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.dark .badge-foncier {
  background-color: rgba(146, 64, 14, 0.25);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-construction {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.dark .badge-construction {
  background-color: rgba(30, 64, 175, 0.25);
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.3);
}

.badge-administratif {
  background-color: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}
.dark .badge-administratif {
  background-color: rgba(55, 48, 163, 0.25);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.3);
}

.badge-logistique {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.dark .badge-logistique {
  background-color: rgba(22, 101, 52, 0.25);
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.3);
}

.badge-commercialisation {
  background-color: #fce7f3;
  color: #9d174d;
  border: 1px solid #fbcfe8;
}
.dark .badge-commercialisation {
  background-color: rgba(157, 23, 77, 0.25);
  color: #fbcfe8;
  border-color: rgba(236, 72, 153, 0.3);
}

.badge-divers {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.dark .badge-divers {
  background-color: rgba(71, 85, 105, 0.25);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}
