:root {
    --primary-pink: #fce4ec;
    --dark-pink: #f06292;
    --text-color: #5a3e4d;
    --card-bg: #ffffff;
}

/* 1. Background Settings */
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Guna min-height supaya lebih selamat */
    background-color: #fce4ec;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="80">❤️</text></svg>');
    background-size: 80px 80px; 
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    overflow: hidden;
}

/* 2. Glassmorphism Container */
.container {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px 25px;
    border-radius: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    text-align: center;
    width: 85%;
    max-width: 380px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Paksa semua content dalam kotak ke tengah */
}

.page {
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* 3. Input & Buttons */
.input-style {
    width: 85%;
    padding: 12px;
    border: 2px solid var(--primary-pink);
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    outline: none;
}

.btn-group {
    display: flex;
    justify-content: center;
    align-items: center; /* Pastikan butang duduk tengah */
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.btn {
    background-color: var(--dark-pink);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(240, 98, 146, 0.2);
    min-width: 120px;
}

.btn:hover {
    transform: scale(1.05);
    background-color: #e91e63;
}

.btn-no { 
    background-color: #90a4ae; 
}

/* 4. Modal Settings */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 30px;
    width: 85%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 2px solid var(--primary-pink);
}

/* 5. Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =============================================
   RESPONSIVE DESIGN (KHAS UNTUK PHONE) 
   =============================================
*/
@media (max-width: 600px) {
    body {
        background-size: 40px 40px; 
    }

    .container {
        width: 85%;
        max-width: 310px;
        padding: 35px 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .btn-group {
        flex-direction: column; /* Butang susun atas bawah */
        gap: 12px;
    }

    .btn {
        width: 100%; /* Butang memanjang penuh dalam kotak */
        max-width: 220px;
        padding: 12px;
    }
}
