body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

h1 {
    color: #1c1e21;
    margin-bottom: 10px;
}

p {
    color: #606770;
    margin-bottom: 25px;
}

#pp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#phone-number {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

#phone-number:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 2px #e7f3ff;
}

#submit-btn {
    background-color: #1877f2;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

#submit-btn:hover {
    background-color: #166fe5;
}

#submit-btn:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

#result-container {
    margin-top: 30px;
}

#profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    object-fit: cover;
}

/* === TAMBAHKAN KODE DI BAWAH INI === */
.button-style {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.2s;
}

.button-style:hover {
    background-color: #218838;
}
/* === AKHIR BAGIAN TAMBAHAN === */

#api-data {
    background-color: #f7f7f7;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

.hidden {
    display: none;
}

#error-message {
    margin-top: 20px;
    color: #fa383e;
    background-color: #ffebe6;
    border: 1px solid #fa383e;
    padding: 10px;
    border-radius: 6px;
}

#loading {
    margin-top: 30px;
}
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #1877f2;
    animation: spin 1s ease infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
