/* Custom styles for Construction CRM */
:root {
  --primary-navy: #0f172a;
  --accent-amber: #f59e0b;
  --accent-blue: #2563eb;
  --accent-emerald: #10b981;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
}

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

/* Kanban column styling */
.kanban-column {
  min-width: 290px;
  max-width: 290px;
}

/* Card hover transitions */
.hover-card {
  transition: all 0.2s ease-in-out;
}
.hover-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Simulated Mobile Phone Frame */
.phone-mockup {
  border: 12px solid #1e293b;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: #ffffff;
}

.zalo-bubble {
  background: #e9f3ff;
  border-radius: 12px;
  border-top-left-radius: 2px;
  border-left: 3px solid #0068ff;
}

.watermark-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
}

/* Fix native dropdown option colors on Windows */
select option {
  background-color: #0f172a !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 6px 10px;
}

/* =========================================================
   SCROLLING & MOBILE PWA OPTIMIZATIONS
   ========================================================= */

/* Ensure smooth mouse-wheel & touch scrolling across all desktop & mobile browsers */
html {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  overflow-y: visible !important;
  min-height: 100vh;
}

/* Mobile-only touch and bounce optimizations (avoids locking desktop mouse wheel) */
@media (max-width: 768px) {
  html, body {
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }
}

/* iPhone Notch / Dynamic Island Safe Area */
.safe-top {
  padding-top: max(env(safe-area-inset-top, 0px), 8px);
}

/* iPhone Bottom Home Indicator Bar Safe Area */
.safe-bottom {
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 10px);
}

/* Hide scrollbar for smooth horizontal swipeable chips */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Prevent auto-zooming on iOS Safari when tapping inputs */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Mobile Nav Active Animation */
.mobile-nav-btn {
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.15s ease-in-out;
}
.mobile-nav-btn:active {
  transform: scale(0.92);
}


