/* eDoctor PWA — Install & Push Prompt UI */
:root {
  --edpwa-accent:  #1A6FBF;
  --edpwa-text:    #0B1220;
  --edpwa-muted:   rgba(11,18,32,.6);
  --edpwa-surface: #ffffff;
  --edpwa-shadow:  0 8px 32px rgba(11,18,32,.18), 0 2px 8px rgba(11,18,32,.10);
  --edpwa-radius:  18px;
}

/* Backdrop */
.edpwa-prompt {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 env(safe-area-inset-bottom, 12px) 0;
  background: rgba(11,18,32,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: edpwa-fadein .22s ease both;
}

.edpwa-prompt[hidden] { display: none !important; }

@keyframes edpwa-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Card */
.edpwa-prompt__card {
  width: 100%;
  max-width: 480px;
  margin: 0 12px 12px;
  background: var(--edpwa-surface);
  border-radius: var(--edpwa-radius);
  box-shadow: var(--edpwa-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: edpwa-slidein .26s cubic-bezier(.22,1,.36,1) both;
}

@keyframes edpwa-slidein {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Icon */
.edpwa-prompt__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 0;
  font-size: 42px;
  line-height: 1;
}

.edpwa-prompt__icon img {
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* Body */
.edpwa-prompt__body {
  padding: 14px 24px 10px;
  text-align: center;
  color: var(--edpwa-text);
}

.edpwa-prompt__title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.edpwa-prompt__desc {
  margin: 0;
  font-size: 14px;
  color: var(--edpwa-muted);
  line-height: 1.5;
}

/* Actions */
.edpwa-prompt__actions {
  display: flex;
  gap: 10px;
  padding: 14px 24px 22px;
}

.edpwa-prompt__btn {
  flex: 1;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s ease, opacity .15s ease;
  line-height: 1;
}

.edpwa-prompt__btn--primary {
  background: var(--edpwa-accent);
  color: #fff;
}

.edpwa-prompt__btn--primary:hover  { opacity: .88; }
.edpwa-prompt__btn--primary:active { opacity: .76; }

.edpwa-prompt__btn--ghost {
  background: rgba(11,18,32,.07);
  color: var(--edpwa-text);
}

.edpwa-prompt__btn--ghost:hover  { background: rgba(11,18,32,.12); }
.edpwa-prompt__btn--ghost:active { background: rgba(11,18,32,.18); }

/* Push variant */
.edpwa-prompt--push .edpwa-prompt__card {
  border-top: 3px solid var(--edpwa-accent);
}

/* Safe area on iOS */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .edpwa-prompt {
    padding-bottom: max(env(safe-area-inset-bottom), 12px);
  }
}
