/* ============================================
   PWA Professional Install Dialog (Choice: Install Sekarang vs Nanti Saja)
   Brand Blue: #0052CC / #003D99
   ============================================ */

.pwa-mandatory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pwa-mandatory-overlay.show {
    opacity: 1;
    visibility: visible;
}

.pwa-mandatory-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    animation: pwaPopupSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
}

@keyframes pwaPopupSlide {
    0% {
        transform: translateY(20px) scale(0.96);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.pwa-mandatory-header {
    background: linear-gradient(135deg, #0052CC 0%, #003D99 100%);
    padding: 24px 20px 20px;
    text-align: center;
    position: relative;
}

.pwa-mandatory-icon {
    width: 68px;
    height: 68px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.pwa-mandatory-title {
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}

.pwa-mandatory-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    margin: 0;
}

.pwa-mandatory-body {
    padding: 20px 20px 14px;
}

.pwa-mandatory-message {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
    margin: 0 0 14px 0;
    text-align: center;
}

.pwa-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
}

.pwa-features-list li {
    padding: 6px 0;
    font-size: 12.5px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwa-features-list li:last-child {
    border-bottom: none;
}

.pwa-feature-check {
    color: #10b981;
    font-weight: 700;
    font-size: 13px;
}

/* Action Button Container */
.pwa-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 20px 20px;
}

.pwa-btn-install {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(135deg, #0052CC 0%, #003D99 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 82, 204, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.pwa-btn-install:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 82, 204, 0.4);
}

.pwa-btn-install:active {
    transform: scale(0.98);
}

.pwa-btn-install svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.pwa-btn-later {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 18px;
    background: transparent;
    color: #64748B;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.pwa-btn-later:hover,
.pwa-btn-later:active {
    color: #334155;
    background: #f1f5f9;
}
