/* ========================================================
   LeadPulse - Executive & iOS Optimized Stylesheet
   ======================================================== */

/* Prevent iOS Rubber Banding / Overscroll glitches */
html, body {
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
}

/* iOS Safe Area Inset Support (Notch, Dynamic Island, Home Bar) */
.ios-header {
  padding-top: max(0.75rem, env(safe-area-inset-top));
}

.ios-fab-container {
  padding-bottom: env(safe-area-inset-bottom);
}

.ios-modal-footer {
  padding-bottom: max(0.875rem, env(safe-area-inset-bottom));
}

/* CRITICAL IPHONE SAFARI FIX:
   iOS Safari automatically zooms in if input font-size is below 16px.
   Enforcing 16px font-size prevents unwanted zooming on tap. */
@media screen and (max-width: 640px) {
  .ios-input, input, select, textarea {
    font-size: 16px !important;
  }
}

/* No scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Native-like Bottom Sheet / Modal animations */
@media screen and (max-width: 639px) {
  .ios-modal {
    animation: slideUpMobile 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@media screen and (min-width: 640px) {
  .ios-modal {
    animation: popUpDesktop 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes slideUpMobile {
  from {
    transform: translateY(100%);
    opacity: 0.8;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes popUpDesktop {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Executive Card Aesthetics */
.lead-card {
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.lead-card:active {
  transform: scale(0.985);
  background-color: #f8fafc;
}

/* Owner Status Button Interaction */
.owner-btn {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 38px;
  height: 34px;
}

.owner-btn:active {
  transform: scale(0.85);
}

/* Met State (Green Tick ✔) */
.owner-btn.is-met {
  background-color: #ecfdf5;
  color: #059669;
  border-color: #6ee7b7;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15);
}

/* Not Met State (Red Cross ✖) */
.owner-btn.is-not-met {
  background-color: #fef2f2;
  color: #e11d48;
  border-color: #fca5a5;
  box-shadow: 0 1px 3px rgba(244, 63, 94, 0.15);
}

/* Pending State (?) */
.owner-btn.is-pending {
  background-color: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}
