
/* ===== APP / MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    /* Mencegah seleksi teks yang mengganggu di aplikasi */
    body {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Kembalikan seleksi untuk input dan text area */
    input, textarea {
        -webkit-user-select: text;
        user-select: text;
    }

    /* Sembunyikan scrollbar tapi tetap bisa scroll */
    ::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }

    /* Tombol lebih mudah ditekan */
    .btn, .nav-item, .card {
        cursor: pointer;
        transition: transform 0.1s;
    }
    
    .btn:active, .card:active {
        transform: scale(0.98);
    }
}

/* Notification Permission Modal (Native-like) */
.notif-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Standard dim */
    backdrop-filter: blur(2px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.notif-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.notif-modal {
    background: #ffffff; /* Always white for native look */
    width: 270px; /* Standard iOS/Android alert width */
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: scale(1.1);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.notif-modal-backdrop.active .notif-modal {
    transform: scale(1);
}

.notif-content {
    padding: 20px 16px;
}

.notif-modal h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
}

.notif-modal p {
    font-size: 13px;
    color: #000;
    margin: 0;
    line-height: 1.4;
}

.notif-actions {
    display: flex;
    border-top: 1px solid #dbdbdf; /* iOS separator color */
}

.notif-actions button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 17px;
    cursor: pointer;
    border-right: 1px solid #dbdbdf;
    color: #007AFF; /* iOS Blue */
    font-weight: 400;
    -webkit-tap-highlight-color: rgba(0,0,0,0.05);
}

.notif-actions button:last-child {
    border-right: none;
    font-weight: 600; /* Bold for primary action */
}

.notif-actions button:active {
    background-color: #f0f0f0;
}

/* Dark mode adjustment for native modal if needed, 
   but usually system dialogs are distinct. 
   We'll keep it light to mimic the photo user shared. */
