/* Popup pemasangan Agenda Guru pada perangkat seluler */
.agenda-pwa-install[hidden],
.agenda-pwa-install-fab[hidden] {
    display: none !important;
}

.agenda-pwa-install {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(5, 20, 38, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.agenda-pwa-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    animation: agendaPwaEnter .28s ease-out;
}

@keyframes agendaPwaEnter {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.agenda-pwa-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 22px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #0b2b4c 0%, #154c79 58%, #087ea4 100%);
}

.agenda-pwa-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.agenda-pwa-title {
    margin: 0 0 4px;
    font-size: 1.26rem;
    font-weight: 800;
    line-height: 1.2;
}

.agenda-pwa-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: .91rem;
    line-height: 1.45;
}

.agenda-pwa-close {
    position: absolute;
    top: 10px;
    right: 11px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, .22);
    font-size: 23px;
    line-height: 30px;
    cursor: pointer;
}

.agenda-pwa-body {
    padding: 20px 22px 22px;
}

.agenda-pwa-benefits {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    color: #334155;
    font-size: .94rem;
}

.agenda-pwa-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.agenda-pwa-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    color: #ffffff;
    background: #16a34a;
    font-size: 12px;
    font-weight: 800;
}

.agenda-pwa-guide {
    margin: 0 0 15px;
    padding: 12px 14px;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    color: #0c4a6e;
    background: #f0f9ff;
    font-size: .88rem;
    line-height: 1.5;
}

.agenda-pwa-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.agenda-pwa-primary,
.agenda-pwa-secondary {
    min-height: 46px;
    border-radius: 11px;
    font-weight: 700;
    cursor: pointer;
}

.agenda-pwa-primary {
    border: 1px solid #0b5ed7;
    color: #ffffff;
    background: #0b5ed7;
    box-shadow: 0 8px 18px rgba(11, 94, 215, .25);
}

.agenda-pwa-primary:disabled {
    cursor: wait;
    opacity: .7;
}

.agenda-pwa-secondary {
    padding-inline: 16px;
    border: 1px solid #cbd5e1;
    color: #475569;
    background: #ffffff;
}

.agenda-pwa-note {
    margin: 12px 0 0;
    color: #64748b;
    font-size: .76rem;
    line-height: 1.45;
    text-align: center;
}

.agenda-pwa-install-fab {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 10010;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 15px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: #0b5ed7;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    font-weight: 700;
}

@media (max-width: 420px) {
    .agenda-pwa-install { padding: 12px; align-items: flex-end; }
    .agenda-pwa-card { max-width: none; border-radius: 20px 20px 14px 14px; }
    .agenda-pwa-hero { padding: 20px 18px 17px; }
    .agenda-pwa-body { padding: 18px; }
    .agenda-pwa-icon { width: 64px; height: 64px; flex-basis: 64px; }
    .agenda-pwa-actions { grid-template-columns: 1fr; }
    .agenda-pwa-secondary { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
    .agenda-pwa-card { animation: none; }
}
