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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    /* Gradien hijau khas sesuai screenshot */
    background: linear-gradient(180deg, #42b883 0%, #35989a 100%);
    color: #333;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#app-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 70px; 
    position: relative;
}

/* SISTEM HALAMAN / TAB */
.view-section {
    display: none;
    height: 100%;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.view-section.active { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- HALAMAN HOME --- */
.logo-container {
    text-align: center;
    margin-top: 15vh;
    color: white;
}

.game-logo { width: 120px; border-radius: 15px; margin-bottom: 15px; }
.game-title { letter-spacing: 4px; font-weight: 800; font-size: 1.5rem; }

.menu-buttons {
    width: 80%;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    border-radius: 30px;
    border: none;
    background-color: white;
    color: #111;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.action-icons {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    color: white;
    font-size: 1.5rem;
}

.gift-icon { position: relative; }
.badge {
    position: absolute;
    top: -5px; right: -10px;
    background: white; color: #42b883;
    font-size: 0.7rem; font-weight: bold;
    padding: 2px 6px; border-radius: 50%;
}

/* Profil Card di Home */
.profile-card {
    background-color: white;
    width: 90%;
    border-radius: 30px 30px 10px 10px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    bottom: 20px;
}

.avatar { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; }
.profile-info h2 { font-size: 1.1rem; color: #111; }
.profile-info p { font-size: 0.9rem; color: #666; font-weight: bold; }
.flag { margin-left: auto; font-size: 1.5rem; }

/* --- HEADER GLOBAL (Chat, Teman, Dll) --- */
.top-header {
    width: 100%;
    color: white;
    padding: 20px;
    position: relative;
}
.top-header h2 { font-size: 1.8rem; font-weight: 800; }

/* --- KARTU KONTEN PUTIH (Chat, Teman, Pengaturan) --- */
.content-card {
    background-color: white;
    width: 100%;
    flex: 1;
    border-radius: 30px 30px 0 0;
    padding: 20px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.search-bar {
    background: #f0f0f0;
    padding: 10px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    margin-bottom: 20px;
}
.search-bar input {
    border: none; background: transparent; width: 100%; outline: none; font-size: 1rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.avatar-small { width: 50px; height: 50px; border-radius: 50%; }
.item-info h3 { font-size: 1rem; color: #111; }
.item-info p { font-size: 0.85rem; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

/* Tombol Melayang (+ Pesan / Tambah Teman) */
.btn-floating {
    background: black;
    color: white;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- PENGATURAN --- */
.settings-card { overflow-y: auto; }
.section-title { font-size: 0.9rem; color: #888; margin-bottom: 10px; }
.mt-20 { margin-top: 20px; }
.setting-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid #f0f0f0;
}
.setting-value { background: #f0f0f0; padding: 5px 15px; border-radius: 15px; font-weight: bold; }
.setting-text { color: #888; font-size: 0.9rem; }
.btn-store {
    background: black; color: white; width: 100%; padding: 12px;
    border-radius: 20px; font-weight: bold; border: none; font-size: 1rem;
}
.color-circle { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #42b883, #35989a); }

/* --- NAVIGASI BAWAH --- */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background-color: #e3e8e7;
    display: flex;
    justify-content: space-around;
    padding: 15px 0 20px 0;
    border-radius: 30px 30px 0 0;
    z-index: 1000;
}

.nav-item {
    background: none; border: none; font-size: 1.5rem; color: #a0a0a0; transition: 0.3s;
}
.nav-item.active { color: #111; transform: scale(1.1); }