body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Pusatkan secara vertikal */
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

h2 {
    font-size: 17px;
    font-weight: 400;
}

header span {
    font-size: 14px;
}
.container {
    background: #fff;
    padding: 5px 20px 65px 20px;
    border-radius: 0;
    width: 90%;
    max-width: 600px;
    margin: 0 auto; /* Pusatkan tanpa margin atas berlebih */
}

.button-wrapper {
    display: flex;
    justify-content: left; /* Pusatkan tombol secara horizontal */
    margin: 5px 0px 30px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 330px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}
.modal-content h3 {
    margin: 0 0 15px;
}
.modal-content p {
    font-size: 14px;
    color: #000;
    margin: 0 0 5px;
}
.modal-content .close {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}
/* Input Styles */
input[type="number"], select {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
input[type="number"]:focus, select:focus {
    border-color: #8d8d8d;
    box-shadow: 0 6px 12px rgba(0, 93, 255, 0.2);
    outline: none;
}

/* Button Styles */
button {
    padding: 6px 10px;
    background: #408ea2;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
button:hover {
    background: #833900;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.share-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}
.share-button {
    padding: 8px 15px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 0.9em;
}
.share-button.whatsapp {
    background-color: #008932;
}
.share-button.whatsapp:hover {
    background: linear-gradient(135deg, #00c91b, #005a1c);
}
.share-button.facebook {
    background-color: #3b5998;
}
/* Additional Styles for Print Button */
.print-button {
    background-color: #408ea2;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 14px;
    text-align: center;
}

.print-button:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
}

/* Clear History Button */
.clear-history button {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 25px;
}
.clear-history button:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
}

.result {
    margin-top: 20px;
    font-size: 1.2em;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.history {
    margin-top: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.history-item {
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}
footer {
    background-color: #fff;
    color: #000000;
    padding: 1px 20px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 0px;
}
.footer-bottom {
    margin-top: 0px;
    font-size: 14px;
}

.currency-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Jarak antar elemen */
}

.currency-selector select {
    padding: 8px;
    font-size: 13px;
    border-radius: 4px;
}

.currency-selector .arrow {
    font-size: 20px;
    padding: 0 10px;
    margin-bottom: 15px;
}


@media (max-width: 768px) {
    body {
        justify-content: flex-start;
    }
    
    header {
        width: 100%;
        max-width: none;
        border-radius: 0;
        margin-bottom: 0;
        justify-content: space-around;
        padding: 10px 15px; /* Sesuaikan padding di layar kecil */
    }
    
    .container {
        padding: 0px 15px 50px; /* Kurangi padding agar lebih proporsional */
    }
}