/**
 * Juroo Legal Suite - PWA Installation Banner & Guide Stylesheet
 * Modeled on PPX PWA Engine
 */

/* PWA Floating Install Notification Banner */
.pwa-install-banner {
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  left: 14px;
  right: 14px;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(135deg, #07152d, #0f274c);
  color: #ffffff;
  border: 1px solid rgba(214, 166, 58, 0.45);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(7, 21, 45, 0.45);
  z-index: 9999;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.pwa-install-banner.visible {
  opacity: 1;
  transform: translateY(0);
}
.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pwa-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pwa-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pwa-app-info {
  flex: 1;
  min-width: 0;
}
.pwa-app-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pwa-app-title span {
  background: var(--gold, #d6a63a);
  color: #07152d;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}
.pwa-app-desc {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.3;
}
.pwa-app-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-install-pwa {
  background: linear-gradient(135deg, var(--gold, #d6a63a), var(--gold2, #efc762));
  color: #07152d;
  border: none;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(214, 166, 58, 0.4);
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-install-pwa:hover {
  filter: brightness(1.05);
}
.btn-install-pwa:active {
  transform: scale(0.95);
}
.btn-dismiss-pwa {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-dismiss-pwa:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

@media (min-width: 1025px) {
  .pwa-install-banner {
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 400px;
  }
}

/* Modal Backdrops for iOS / Guide */
.pwa-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pwa-modal-card {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  padding: 24px 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.pwa-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.pwa-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pwa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #334155;
}
.pwa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #07152d;
  color: #d6a63a;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Dashboard PWA Card (Lawyer & Client Dashboards) */
.operator-pwa-dash-card {
  background: linear-gradient(135deg, #07152d, #0f274c);
  border: 1px solid rgba(214, 166, 58, 0.45);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(7, 21, 45, 0.15);
  color: #ffffff;
  animation: fadeInPwa 0.3s ease-out;
}
@keyframes fadeInPwa {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.pwa-dash-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pwa-dash-icon-box {
  flex-shrink: 0;
  background: #ffffff;
  padding: 4px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwa-dash-icon-box img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: block;
}
.pwa-dash-details {
  flex: 1;
  min-width: 240px;
}
.pwa-dash-tag {
  display: inline-block;
  background: var(--gold, #d6a63a);
  color: #07152d;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.pwa-dash-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-pwa-dash-install {
  background: linear-gradient(135deg, var(--gold, #d6a63a), var(--gold2, #efc762));
  color: #07152d;
  border: none;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(214, 166, 58, 0.4);
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.btn-pwa-dash-install:active {
  transform: scale(0.96);
}
.btn-pwa-dash-dismiss {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-pwa-dash-dismiss:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

