/*
|--------------------------------------------------------------------------
| QuickTicketJA Native-App PWA Enhancements CSS
|--------------------------------------------------------------------------
| Save as: /assets/css/quickticketja-pwa-native.css
*/

.qt-app-splash{
    position:fixed;
    inset:0;
    z-index:200000;
    background:
        radial-gradient(700px 380px at 15% 10%,rgba(253,184,39,.20),transparent 62%),
        radial-gradient(760px 440px at 92% 0%,rgba(13,110,253,.28),transparent 64%),
        #ffffff;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:22px;
    transition:.28s ease;
}

.qt-app-splash.qt-splash-hide{
    opacity:0;
    visibility:hidden;
}

.qt-splash-card{
    text-align:center;
}

.qt-splash-logo{
    width:110px;
    height:110px;
    border-radius:32px;
    margin:0 auto 18px;
    background:linear-gradient(135deg,#0d6efd,#0b5ed7);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:36px;
    font-weight:1000;
    box-shadow:0 24px 50px rgba(13,110,253,.28);
    overflow:hidden;
}

.qt-splash-logo img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.qt-splash-title{
    font-size:28px;
    line-height:1;
    font-weight:1000;
    letter-spacing:-.035em;
}

.qt-splash-title span{color:#000}
.qt-splash-title b{color:#FDB827}
.qt-splash-title em{color:#008751;font-style:normal}

.qt-splash-subtitle{
    margin-top:8px;
    color:#64748b;
    font-size:13px;
    font-weight:850;
}

.qt-splash-loader{
    width:180px;
    height:8px;
    background:#e2e8f0;
    border-radius:999px;
    overflow:hidden;
    margin:18px auto 0;
}

.qt-splash-loader span{
    display:block;
    width:45%;
    height:100%;
    background:#0d6efd;
    border-radius:999px;
    animation:qtSplashLoad 1s ease-in-out infinite alternate;
}

@keyframes qtSplashLoad{
    from{transform:translateX(-10%)}
    to{transform:translateX(135%)}
}

.qt-camera-prompt,
.qt-push-prompt{
    position:fixed;
    left:14px;
    right:14px;
    bottom:14px;
    z-index:150000;
    width:min(100% - 28px,520px);
    margin:auto;
    background:#fff;
    border:1px solid rgba(15,23,42,.10);
    border-radius:24px;
    padding:16px;
    box-shadow:0 24px 70px rgba(15,23,42,.24);
}

.qt-camera-prompt strong,
.qt-push-prompt strong{
    display:block;
    color:#0f172a;
    font-size:17px;
    font-weight:1000;
}

.qt-camera-prompt p,
.qt-push-prompt p{
    color:#64748b;
    font-size:13px;
    line-height:1.45;
    font-weight:750;
    margin:5px 0 12px;
}

.qt-camera-prompt button,
.qt-push-prompt button{
    border:0;
    border-radius:14px;
    min-height:42px;
    padding:10px 14px;
    font-weight:1000;
    cursor:pointer;
}

.qt-camera-prompt button,
.qt-push-prompt button:first-child{
    background:#0d6efd;
    color:#fff;
}

.qt-push-prompt button:last-child{
    background:#f1f5f9;
    color:#0f172a;
    margin-left:6px;
}

.qt-offline-queue-badge{
    position:fixed;
    left:14px;
    bottom:14px;
    z-index:140000;
    display:none;
    border-radius:999px;
    background:#f59e0b;
    color:#111827;
    box-shadow:0 14px 34px rgba(245,158,11,.28);
    padding:10px 13px;
    font-size:12px;
    font-weight:1000;
}

.qt-offline-queue-badge.active{
    display:block;
}

.qt-mini-toast{
    position:fixed;
    left:50%;
    bottom:24px;
    transform:translateX(-50%) translateY(20px);
    z-index:160000;
    opacity:0;
    visibility:hidden;
    background:#0f172a;
    color:#fff;
    border-radius:999px;
    padding:11px 15px;
    font-size:13px;
    font-weight:900;
    transition:.2s ease;
    box-shadow:0 16px 34px rgba(15,23,42,.24);
}

.qt-mini-toast.active{
    opacity:1;
    visibility:visible;
    transform:translateX(-50%) translateY(0);
}

.qt-is-installed-app body{
    overscroll-behavior-y:contain;
}

@media(max-width:520px){
    .qt-push-prompt div:last-child{
        display:grid;
        gap:8px;
    }

    .qt-push-prompt button:last-child{
        margin-left:0;
    }
}
