
.gold-price-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    width: -webkit-fill-available;
}

.gold-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.gold-price-value {
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

.gold-price-test {
    width: -webkit-fill-available;
}

.refresh-price-btn {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
    width: auto;
}

/* Ukuran layar mobile */
@media only screen and (max-width: 768px) {
    .refresh-price-btn {
        font-size: 12px;
        padding: 6px;
    }
    .gold-price-value {
        font-size: 16px;
        font-weight: 500;
        color: #333;
    }
}
.refresh-price-btn:hover {
    background: #45a049;
}

.gold-price-info {
    color: #666;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Loading state */
.gold-price-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.loading-spinner {
    margin-left: 10px;
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.gold-price-error {
    color: #f44336;
    padding: 20px;
    text-align: center;
}

.gold-price-error .refresh-price-btn {
    position: static;
    transform: none;
    margin-top: 12px;
    display: inline-flex;
}

.zakat-calculator input,
.zakat-calculator select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.zakat-calculator label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.zakat-calculator button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.zakat-calculator button:hover {
    opacity: 0.9;
}
.hitung-btn {
    background-color: #4CAF50;
}

.reset-btn {
    background-color: #f44336;
}

.update-date {
    text-align: right;
}