/* ---------------- boatPack.css ----------------
   UkSeas Desktop-to-Phone Handoff & Boat Pack Dialog / Banners
------------------------------------------------------ */

/* Phone Onboarding Confirmation Banner */
.phone-onboarding-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 1500;
  background: var(--bg-card, rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(12px);
  border: 1px solid #10b981;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md, 8px);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 600px);
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-onboarding-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.onboarding-banner-icon {
  font-size: 20px;
  color: #10b981;
  flex-shrink: 0;
}

.onboarding-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.onboarding-banner-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.onboarding-banner-sub {
  font-size: 11px;
  color: #94a3b8;
}

.onboarding-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-banner-action {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-banner-action:hover {
  background: #0369a1;
}

.btn-banner-dismiss {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}

.btn-banner-dismiss:hover {
  color: #ffffff;
}

/* Desktop QR Code Card in Send-to-Phone Modal */
.qr-container-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  width: fit-content;
  margin: 0 auto;
}

.qr-code-svg-wrap {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-svg-wrap svg {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.qr-scan-hint {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

/* Pack Details Summary Box */
.pack-summary-box {
  background: var(--bg-surface, rgba(30, 41, 59, 0.5));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pack-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.pack-summary-label {
  color: #94a3b8;
  font-weight: 600;
}

.pack-summary-val {
  color: #ffffff;
  font-weight: 700;
}

.pack-sites-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.pack-site-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

/* Copy Link & WhatsApp Button row */
.pack-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.btn-whatsapp-share {
  background: #15803d;
  color: #ffffff;
  border: 1px solid #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-whatsapp-share:hover {
  background: #166534;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.btn-copy-pack-link {
  background: var(--bg-surface, rgba(30, 41, 59, 0.8));
  color: var(--text-main, #ffffff);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-pack-link:hover {
  background: var(--bg-hover, #334155);
  border-color: #38bdf8;
}

/* Sector Boundary Glow Effect */
.sector-boundary-glow {
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.65));
  animation: boundaryGlow 3s ease-in-out infinite alternate;
}

@keyframes boundaryGlow {
  0% { stroke-opacity: 0.6; fill-opacity: 0.03; }
  100% { stroke-opacity: 1.0; fill-opacity: 0.08; }
}

/* Header Live Offshore Connection Status Pill */
.header-connection-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  background: var(--bg-surface, rgba(15, 23, 42, 0.6));
  color: var(--text-muted, #94a3b8);
  cursor: default;
  white-space: nowrap;
}

.header-connection-pill.online {
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.header-connection-pill.online .conn-dot {
  color: #22c55e;
}

.header-connection-pill.offline {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.header-connection-pill.offline .conn-dot {
  color: #f59e0b;
  animation: connPulse 2s infinite;
}

/* Light Theme Overrides for Offshore Connection Status Pill */
[data-theme="light"] .header-connection-pill {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-muted, #475569);
}

[data-theme="light"] .header-connection-pill.online {
  background: rgba(240, 253, 244, 0.95);
  border-color: rgba(34, 197, 94, 0.45);
  color: #15803d;
}

[data-theme="light"] .header-connection-pill.online .conn-dot {
  color: #16a34a;
}

[data-theme="light"] .header-connection-pill.offline {
  background: rgba(254, 243, 199, 0.95);
  border-color: rgba(245, 158, 11, 0.5);
  color: #b45309;
}

[data-theme="light"] .header-connection-pill.offline .conn-dot {
  color: #d97706;
}

[data-theme="light"] .phone-onboarding-banner {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 20px rgba(16, 185, 129, 0.15);
  color: #0f172a;
}

[data-theme="light"] .pack-summary-box {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-copy-pack-link {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-copy-pack-link:hover {
  background: #f1f5f9;
  border-color: #0284c7;
}

@keyframes connPulse {
  0% { opacity: 0.5; }
  50% { opacity: 1.0; }
  100% { opacity: 0.5; }
}

@media (max-width: 768px) {
  .header-connection-pill {
    padding: 3px 6px;
    font-size: 10px;
  }
}
