@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* ---- Variabel Warna (Konsisten) ---- */
:root {
    --color-blue: #0D47A1;
    --color-gold: #d4af37;
    --color-bg: #f0f2f5;
    --color-aman: #28a745;
    --color-jebakan: #dc3545;
    --color-netral: #6c757d;
    --phone-frame-color: #222; /* Warna bingkai HP */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    width: 100%;
    background-color: var(--color-blue);
    color: white;
    padding: 20px;
    text-align: center;
}

main {
    width: 100%;
    max-width: 400px; /* Lebar HP */
    padding: 20px;
    
    /* Kita pusatkan HP-nya */
    display: flex;
    justify-content: center;
}

/* ======== GAYA BINGKAI HP BARU ======== */
.phone-frame {
    width: 380px; /* Lebar luar HP */
    height: 760px; /* Tinggi luar HP */
    background-color: var(--phone-frame-color);
    border-radius: 40px; /* Sudut HP yang melengkung */
    padding: 15px; /* Ini adalah 'bezel' HP */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 15px; /* Pas di padding */
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background-color: var(--phone-frame-color);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}
/* ======== AKHIR GAYA BINGKAI HP ======== */


/* ---- Kontainer HP (Lama) -> Sekarang jadi Layar HP ---- */
.simulator-container {
    /* HAPUS border, box-shadow, dll. */
    background-color: #ffffff; /* Latar putih HP */
    border-radius: 25px; /* Sudut dalam layar */
    overflow: hidden;
    height: 100%; /* Penuhi bingkai */
    width: 100%;
    position: relative; /* Agar notch bisa 'di atas' */
}

.phone-screen {
    position: relative;
    height: 100%; /* Tinggi HP */
    background-color: #f5f5f5; /* Wallpaper HP */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Kita 'potong' padding atas agar pas di bawah notch */
    padding-top: 40px; 
    box-sizing: border-box;
}

/* ---- Logika Layar (Screen) ---- */
.screen {
    display: none; /* Sembunyikan semua layar by default */
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.screen.active {
    display: flex; /* Tampilkan layar yang aktif */
}

/* ---- Layar Awal (App Icons) ---- */
.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background-color: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 10px;
    width: 100px;
    transition: transform 0.2s;
}
.app-icon:hover {
    transform: scale(1.05);
}
.app-icon .icon {
    font-size: 2.5rem;
    line-height: 1;
}
.app-icon span {
    font-size: 0.9rem;
    margin-top: 5px;
}
.instruction {
    text-align: center;
    color: #555;
    margin-top: 20px;
    font-style: italic;
}

/* ---- Pop-up Izin ---- */
.permission-popup {
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 25px;
    width: 90%;
    text-align: center;
    /* Tambahkan ini agar pop-up di atas wallpaper */
    position: relative; 
    z-index: 5;
}
.app-icon-small {
    font-size: 1.5rem;
    line-height: 1;
}
.permission-popup strong {
    display: block;
    font-size: 1.1rem;
    margin: 10px 0;
}
.permission-popup p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}
.button-group {
    display: flex;
    justify-content: space-around;
}
.btn-deny, .btn-allow {
    border: none;
    background: none;
    color: var(--color-blue);
    font-weight: 700;
    font-size: 1rem;
    padding: 10px;
    cursor: pointer;
}
.btn-deny {
    color: var(--color-netral);
}

/* ---- Layar Feedback ---- */
.feedback-box {
    text-align: center;
}
.feedback-box h2 {
    font-size: 1.5rem;
}
.feedback-box h2.aman { color: var(--color-aman); }
.feedback-box h2.jebakan { color: var(--color-jebakan); }
.feedback-box h2.netral { color: var(--color-netral); }

.modal-button {
    background-color: var(--color-blue);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 10px;
    text-decoration: none;
}
